18 lines
633 B
Plaintext
18 lines
633 B
Plaintext
- model_class = Section
|
|
.page-header= title :show, @section
|
|
|
|
dl.dl-horizontal.show-list
|
|
dt= model_class.human_attribute_name(:title)
|
|
dd= @section.title
|
|
dt= model_class.human_attribute_name(:path)
|
|
dd= @section.path.to_json
|
|
dt= Supplier.model_name.human
|
|
dd= link_to @section.supplier.name, [:admin, @section.supplier]
|
|
|
|
.form-actions
|
|
= link_to t("helpers.links.back"), admin_sections_path, class: 'btn'
|
|
'
|
|
= link_to t('helpers.links.edit'), [:edit, :admin, @section], class: 'btn'
|
|
'
|
|
= link_to t("helpers.links.destroy"), [:admin, @section], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|