From 459288f8e305eecce4e9942f7e8bb218af2dc072 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Fri, 2 Oct 2015 15:27:38 +0200 Subject: [PATCH] update waiter templates --- .../waiter/app/templates/product_categories.emblem | 4 ++-- app/assets/javascripts/waiter/app/templates/section.emblem | 2 +- app/assets/javascripts/waiter/app/templates/sections.emblem | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/waiter/app/templates/product_categories.emblem b/app/assets/javascripts/waiter/app/templates/product_categories.emblem index b19622a6..0f637f3e 100644 --- a/app/assets/javascripts/waiter/app/templates/product_categories.emblem +++ b/app/assets/javascripts/waiter/app/templates/product_categories.emblem @@ -1,9 +1,9 @@ -each product_category in controller +each model as |product_category| if product_category.products h5= product_category.name hr ul.product_category-products - each product in product_category.products + each product_category.products as |product| li a{action "addProduct" product } href="#" = product.name diff --git a/app/assets/javascripts/waiter/app/templates/section.emblem b/app/assets/javascripts/waiter/app/templates/section.emblem index 3472b409..6abb3fff 100644 --- a/app/assets/javascripts/waiter/app/templates/section.emblem +++ b/app/assets/javascripts/waiter/app/templates/section.emblem @@ -1,6 +1,6 @@ .row .section-tables.small-12.medium-6.large-4.columns - each table in tables + each tables as |table| = link-to 'table' table class="panel section-table" = table.number .small-12.medium-6.large-4.columns= render 'product_categories' diff --git a/app/assets/javascripts/waiter/app/templates/sections.emblem b/app/assets/javascripts/waiter/app/templates/sections.emblem index b76488fa..c2b7e027 100644 --- a/app/assets/javascripts/waiter/app/templates/sections.emblem +++ b/app/assets/javascripts/waiter/app/templates/sections.emblem @@ -1,6 +1,6 @@ dl.sub-nav dt= t 'model.section' - each section in controller + each model as |section| view App.SectionHeaderView context=section else dd No available sections