Add push buttons and support inactive products
This commit is contained in:
@@ -4,13 +4,16 @@ if editMode
|
||||
= input value=product.name placeholder=namePlaceholder action="save"
|
||||
= errors product.errors.name
|
||||
.small-3.columns.price
|
||||
= edit-currency value=product.price validatePresence=true action="save"
|
||||
= 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
|
||||
a.rollback-product-action{action "rollbackProduct"}: span
|
||||
a.destroy-product-action{action "destroyProduct" product}: span
|
||||
a.save-product-action{action "save"}: span
|
||||
.row
|
||||
.small-4.large-2.columns= t 'attributes.product.active'
|
||||
.small-8.large-10.columns: view boolean-switch value=product.active
|
||||
.row.menu-product-container
|
||||
.medium-4.small-6.columns
|
||||
= view "upload-file" name="image" accept="image/*" file=product.image
|
||||
@@ -27,5 +30,5 @@ else
|
||||
= errors product.errors.price includeAttribute="product"
|
||||
.small-3.columns: span= code_filter_display
|
||||
.small-3.columns
|
||||
span.fa.fa-edit{action "makeEditable"}
|
||||
a.edit-product-action{action "makeEditable"}: span
|
||||
/img src=product.image_src
|
||||
|
||||
Reference in New Issue
Block a user