big refactor for test and admin namespace
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
- model_class = Order
|
||||
.page-header= title :show, @order
|
||||
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:state)
|
||||
dd= @order.state
|
||||
- if @order.supplier.present?
|
||||
dt= Supplier.model_name.human
|
||||
dd= link_to @order.supplier.name, [:admin, @order.supplier]
|
||||
|
||||
.form-actions
|
||||
= link_to t("helpers.links.back"), admin_orders_path, class: 'btn'
|
||||
'
|
||||
= link_to t('helpers.links.edit'), [:edit, :admin, @order], class: 'btn'
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), [:admin, @order], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|
||||
Reference in New Issue
Block a user