Files
mozo-backend/app/views/suppliers/products/show.html.slim
T
2014-08-27 17:14:56 +02:00

28 lines
731 B
Plaintext

- model_class = Product
.page-header= title :show, @product
- if @product.image.present?
.display-panel= image_tag @product.image.url(:medium)
.display-row
.display-label
span data-t='attributes.product.name'
.display-field
span= @product.name
.display-row
.display-label
span data-t='attributes.product.code'
.display-field
span= @product.code
.display-row
.display-label
span data-t='attributes.product.price'
.display-field
span=currency @product.price
.display-row
.display-label
span data-t='models.plural.product_category'
.display-field
span= @product.category_links(namespace: :suppliers)
= supplier_form_actions :index, :edit, :destroy, object: @product, for: :products