table management fixes
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
- model_class = Section
|
||||
.page-header= title :show, @section
|
||||
.page-header
|
||||
h1 data-t='section.show.title'
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:title)
|
||||
dt data-t='attributes.section.title' = model_class.human_attribute_name(:title)
|
||||
dd= @section.title
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:width)
|
||||
dt data-t='attributes.section.width' = model_class.human_attribute_name(:width)
|
||||
dd= @section.width
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:height)
|
||||
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'
|
||||
= 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'
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, @section], class: 'btn', data: {t: 'helpers.links.edit'}
|
||||
'
|
||||
= link_to t('supplier.section.manage_tables'), [:manage_tables, :suppliers, @section], class: [:btn, 'btn-warning']
|
||||
= 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'), [:tables_view, :suppliers, @section], class: [:btn, 'btn-info']
|
||||
= 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("helpers.links.destroy"), [:suppliers, @section], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|
||||
= link_to t("helpers.links.destroy"), [:suppliers, @section], method: :delete, data: {confirm: are_you_sure?, t: 'helpers.links.destroy'}, class: 'btn btn-danger'
|
||||
|
||||
Reference in New Issue
Block a user