Files
mozo-backend/app/assets/javascripts/supplier/app/templates/menu.emblem
T

22 lines
1.0 KiB
Plaintext

= menu-time-preview
.row: .small-12.columns
.products-menu-filters-container
= input value=product_code_filter type="search" placeholder=product_code_filter_placeholder
h2.main-section-header Menu
each sorted_product_categories as |product_category|
.row.product_category-container: .small-12.columns
.product_category-header
if (can "manage" "menu")
a.move{action "moveProductCategory" product_category} href="#"
span.title= product_category.name
span.availability= product_category.availability_text
if (can "manage" "menu")
a.edit-product-category-button{action "editProductCategory" product_category} href="#": span
a.add-product-product_category-button{action "addProduct" product_category} href="#": span
each product_category.sorted_products as |product|
= menu-product product=product code_filter=product_code_filter
if (can "manage" "menu")
.row
.small-12.columns
a.new-product_category-button{action "newProductCategory"} href="#" = t 'product_category.new_button'