Better menu product editing for supplier

This commit is contained in:
2014-11-28 15:37:52 +01:00
parent 3c5e9e7441
commit 22c8e27aa7
6 changed files with 33 additions and 8 deletions
@@ -1,12 +1,12 @@
if editMode
.row.menu-product-container
.row
.small-3.columns.name
= input value=product.name
= input value=product.name placeholder=namePlaceholder
= errors product.errors.name
.small-3.columns.price
= edit-currency value=product.price validatePresence=true
= errors product.errors.price
.small-3.columns.code= input value=product.code
.small-3.columns.code= input value=product.code placeholder=codePlaceholder
.small-3.columns.actions
a.rollback-product-action{action "rollbackProduct"}: span
a.destroy-product-action{action "destroyProduct" product}: span
@@ -15,10 +15,10 @@ if editMode
.medium-4.small-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="Description"
.medium-4.small-6.columns= textarea value=product.description placeholder=descriptionPlaceholder
else
if showProduct
.row.menu-product-container
.row
.small-3.columns
span= product.name
= errors product.errors.name includeAttribute="product"