Better suppliers menu

This commit is contained in:
2015-03-24 16:04:19 +01:00
parent e720d6b31c
commit b329d2d6d9
7 changed files with 70 additions and 38 deletions
@@ -1,24 +1,26 @@
if editMode
.row
.small-3.columns.name
.small-6.medium-3.columns.name
= input value=product.name placeholder=namePlaceholder action="save"
= errors product.errors.name
.small-3.columns.price
= edit-currency value=product.price action="save"
= errors product.errors.price
.small-3.columns.code= input value=product.code placeholder=codePlaceholder
.small-3.columns.actions
.small-6.medium-3.columns.actions
a.rollback-product-action{action "rollbackProduct"}: span
a.destroy-product-action{action "destroyProduct" product}: span
a.save-product-action{action "save"}: span
.small-6.medium-3.columns.price
= edit-currency value=product.price action="save"
= errors product.errors.price
.small-6.medium-3.columns.code= input value=product.code placeholder=codePlaceholder
.row
.small-4.large-2.columns= t 'attributes.product.active'
.small-8.large-10.columns: view boolean-switch value=product.active
.small-3.columns= t 'attributes.product.active'
.small-9.columns: view boolean-switch value=product.active
.row.menu-product-container
.medium-4.small-6.columns
.small-12.medium-6.columns
= descriptionPlaceholder
= textarea value=product.description placeholder=descriptionPlaceholder
.small-12.medium-6.columns
= view "upload-file" name="image" accept="image/*" file=product.image
.medium-4.small-6.columns: img src=product.image_src
.medium-4.small-6.columns= textarea value=product.description placeholder=descriptionPlaceholder
img src=product.image_src
else
if showProduct
.row