20 lines
712 B
Plaintext
20 lines
712 B
Plaintext
- model_class = Product
|
|
.page-header= title :show, @product
|
|
|
|
dl.dl-horizontal.show-list
|
|
dt= model_class.human_attribute_name(:name)
|
|
dd= @product.name
|
|
dt= model_class.human_attribute_name(:code)
|
|
dd= @product.code
|
|
dt= model_class.human_attribute_name(:price)
|
|
dd=currency @product.price
|
|
dt= ProductCategory.model_name.human_plural
|
|
dd= @product.category_links(namespace: :suppliers)
|
|
|
|
.form-actions
|
|
= link_to t("helpers.links.back"), suppliers_products_path, class: 'btn'
|
|
'
|
|
= link_to t('helpers.links.edit'), [:edit, :suppliers, @product], class: 'btn'
|
|
'
|
|
= link_to t("helpers.links.destroy"), [:suppliers, @product], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|