big refactor for test and admin namespace

This commit is contained in:
2012-12-04 18:45:18 +01:00
parent 7d64ab2022
commit d8eef4a047
85 changed files with 1403 additions and 1272 deletions
+20
View File
@@ -0,0 +1,20 @@
- 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= @product.price
- if @product.supplier.present?
dt= Supplier.model_name.human
dd= link_to @product.supplier.name, [:admin, @product.supplier]
.form-actions
= link_to t("helpers.links.back"), admin_products_path, class: 'btn'
'
= link_to t('helpers.links.edit'), [:edit, :admin, @product], class: 'btn'
'
= link_to t("helpers.links.destroy"), [:admin, @product], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'