Files
mozo-backend/app/views/suppliers/sections/show.html.slim
T
2013-03-09 14:18:21 +01:00

25 lines
1.3 KiB
Plaintext

- model_class = Section
.page-header
h1 data-t='section.show.title'
dl.dl-horizontal.show-list
dt data-t='attributes.section.title' = model_class.human_attribute_name(:title)
dd= @section.title
dl.dl-horizontal.show-list
dt data-t='attributes.section.width' = model_class.human_attribute_name(:width)
dd= @section.width
dl.dl-horizontal.show-list
dt data-t='attributes.section.height' = model_class.human_attribute_name(:height)
dd= @section.height
.form-actions
= link_to t("helpers.links.back"), suppliers_sections_path, class: 'btn', data: {t: 'helpers.links.back'}
'
= link_to t('helpers.links.edit'), [:edit, :suppliers, @section], class: 'btn', data: {t: 'helpers.links.edit'}
'
= link_to t('supplier.section.manage_tables.link'), [:manage_tables, :suppliers, @section], class: 'btn btn-warning', data: {t: 'section.manage_tables.link'}
'
= link_to t('supplier.section.tables_view.link'), [:tables_view, :suppliers, @section], class: 'btn btn-info', data: {t: 'section.tables_view.link'}
'
= link_to t('supplier.tables.qr_codes.link'), qr_codes_suppliers_tables_path(section_id: @section.id), class: 'btn btn-info', data: {t: 'tables.qr_codes.link'}
'
= link_to t("helpers.links.destroy"), [:suppliers, @section], method: :delete, data: {confirm: are_you_sure?, t: 'helpers.links.destroy'}, class: 'btn btn-danger'