Files
mozo-backend/app/views/suppliers/tables/show.html.slim
T
2012-08-28 20:08:13 +02:00

17 lines
594 B
Plaintext

- model_class = Table
.page-header= title :show, @table
dl.dl-horizontal.show-list
dt= model_class.human_attribute_name(:number)
dd= @table.number
- if @table.section.present?
dt= Section.model_name.human
dd= link_to @table.section.title, [:suppliers, @table.section]
.form-actions
= link_to t("helpers.links.back"), suppliers_tables_path, class: 'btn'
'
= link_to t('helpers.links.edit'), [:edit, :suppliers, @table], class: 'btn'
'
= link_to t("helpers.links.destroy"), [:suppliers, @table], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'