New iteration style for ember supplier

This commit is contained in:
2015-08-13 14:16:29 +02:00
parent 206ee00127
commit 8ce95f72e9
21 changed files with 35 additions and 35 deletions
@@ -15,11 +15,11 @@ if list.closed_at
= button-mark-list-helped content=list = button-mark-list-helped content=list
= button-close-list content=list = button-close-list content=list
.user-info-container .user-info-container
each user in list.users each list.users as |user|
=user.avatar_tag = user.avatar_tag
if list.sorted_orders if list.sorted_orders
.list-orders-container .list-orders-container
each order in list.sorted_orders each list.sorted_orders as |order|
.list-order-container class=order.state .list-order-container class=order.state
= order.display = order.display
span.currency= currency order.total span.currency= currency order.total
@@ -1,5 +1,5 @@
td.user-info.show-for-large-up td.user-info.show-for-large-up
each user in view.content.users each view.content.users as |user|
= user.avatar_tag = user.avatar_tag
td.status-icons td.status-icons
if view.content.needs_help if view.content.needs_help
@@ -1,5 +1,5 @@
td.user-info.show-for-large-up td.user-info.show-for-large-up
each user in view.content.list.users each view.content.list.users as |user|
= user.avatar_tag = user.avatar_tag
td.status-icons td.status-icons
if view.content.active if view.content.active
@@ -1,2 +1,2 @@
each locale in locales each locales as |locale|
view "language-switcher-button" locale=locale view "language-switcher-button" locale=locale
@@ -21,7 +21,7 @@ if editMode
.small-12.medium-6.columns .small-12.medium-6.columns
= view "upload-file" name="image" accept="image/*" file=product.image = view "upload-file" name="image" accept="image/*" file=product.image
img src=product.image_src img src=product.image_src
each product_variant in product.product_variants each product.product_variants as |product_variant|
.row .row
.small-1.columns   .small-1.columns  
.small-8.medium-5.large-4.columns= input value=product_variant.name .small-8.medium-5.large-4.columns= input value=product_variant.name
@@ -1,7 +1,7 @@
dl.sections-header-container.sub-nav dl.sections-header-container.sub-nav
dd data-section="all": a.section-header-title{action "setSection"} href="" = t 'sections_header.all_sections' dd data-section="all": a.section-header-title{action "setSection"} href="" = t 'sections_header.all_sections'
each s in sections each sections as |section|
dd data-section=s.id dd data-section=section.id
a.section-header-title{action "setSection" s} href="#" = s.title a.section-header-title{action "setSection" section} href="#" = section.title
/= link-to "section" s.id class="section-jumper" /= link-to "section" section.id class="section-jumper"
span.fa.fa-chevron-circle-right span.fa.fa-chevron-circle-right
@@ -1,4 +1,4 @@
if other_suppliers if other_suppliers
ul.button-group.stack-for-small.round ul.button-group.stack-for-small.round
each supplier in other_suppliers each other_suppliers as |supplier|
li: a.warning.button{action "switchTo" supplier}= t 'suppliers_switcher.switch_to_button' supplier li: a.warning.button{action "switchTo" supplier}= t 'suppliers_switcher.switch_to_button' supplier
@@ -11,7 +11,7 @@
th.colorbox= t 'attributes.employee.color' th.colorbox= t 'attributes.employee.color'
th.actions=t 'helpers.actions.title' th.actions=t 'helpers.actions.title'
tbody tbody
each employee in employees each employees as |employee|
tr tr
td: link-to 'employee' employee: span= employee.name td: link-to 'employee' employee: span= employee.name
td.email td.email
@@ -31,8 +31,8 @@
th.currency=t 'active_lists.price' th.currency=t 'active_lists.price'
th.actions th.actions
tbody tbody
each list in active_lists each active_lists as |list|
= view "active-list" contentBinding="list" = view "active-list" content=list
.page-header .page-header
if active_orders.length if active_orders.length
h3.dashboard-orders-header{action "toggleDashboardOrders"} h3.dashboard-orders-header{action "toggleDashboardOrders"}
@@ -57,5 +57,5 @@
th.time th.time
th.actions th.actions
tbody tbody
each order in active_orders each active_orders as |order|
= view "active-order" contentBinding="order" = view "active-order" content=order
@@ -13,7 +13,7 @@
th.currentcy=t 'attributes.list.price' th.currentcy=t 'attributes.list.price'
th.timestamp=t 'attributes.list.created_at' th.timestamp=t 'attributes.list.created_at'
tbody tbody
each list in sorted_lists each sorted_lists as |list|
tr tr
td.state td.state
link-to 'list' list.id link-to 'list' list.id
@@ -3,7 +3,7 @@
.products-menu-filters-container .products-menu-filters-container
= input value=product_code_filter type="search" placeholder=product_code_filter_placeholder = input value=product_code_filter type="search" placeholder=product_code_filter_placeholder
h2 Menu h2 Menu
each product_category in sorted_product_categories each sorted_product_categories as |product_category|
.row.product_category-container: .small-12.columns .row.product_category-container: .small-12.columns
.product_category-header .product_category-header
can "manage" "menu" can "manage" "menu"
@@ -13,7 +13,7 @@ each product_category in sorted_product_categories
can "manage" "menu" can "manage" "menu"
a.edit-product-category-button{action "editProductCategory" product_category} href="#": span a.edit-product-category-button{action "editProductCategory" product_category} href="#": span
a.add-product-product_category-button{action "addProduct" product_category} href="#": span a.add-product-product_category-button{action "addProduct" product_category} href="#": span
each product in product_category.sorted_products each product_category.sorted_products as |product|
= menu-product product=product code_filter=product_code_filter = menu-product product=product code_filter=product_code_filter
can "manage" "menu" can "manage" "menu"
.row .row
@@ -2,7 +2,7 @@ if svg_element.isLoading
span.fa.fa-2x.fa-spinner.fa-spin span.fa.fa-2x.fa-spinner.fa-spin
else else
ul.add-section-element-list ul.add-section-element-list
each svg_element in svg_elements each svg_elements as |svg_element|
li: a{action "addSectionElement" svg_element}= svg svg_element.svg width=svg_element.box_width height=svg_element.box_height li: a{action "addSectionElement" svg_element}= svg svg_element.svg width=svg_element.box_width height=svg_element.box_height
hr hr
button.modal-close{action "close"}=t 'section.add_section.modal.close_button' button.modal-close{action "close"}=t 'section.add_section.modal.close_button'
@@ -21,7 +21,7 @@ if isNotSelf
.form-label= t 'attributes.employee.color' .form-label= t 'attributes.employee.color'
.form-field.full .form-field.full
span.current-color= colorbox model.color span.current-color= colorbox model.color
each color in colors each colors as |color|
a{action "setColor" color}= colorbox color a{action "setColor" color}= colorbox color
hr hr
button.modal-close{action "close"}=t 'employee.modal.close_button' button.modal-close{action "close"}=t 'employee.modal.close_button'
@@ -3,7 +3,7 @@ p=t 'product_category.modal.move.body_header'
.small-11.small-offset-1.columns .small-11.small-offset-1.columns
a{action "moveBelow"} href="#" = t 'product_category.modal.move.move_to_top' a{action "moveBelow"} href="#" = t 'product_category.modal.move.move_to_top'
h4=t 'product_category.modal.move.move_below_label' h4=t 'product_category.modal.move.move_below_label'
each product_category in product_categories each product_categories as |product_category|
.row.product_category-move-row .row.product_category-move-row
.small-11.small-offset-1.columns .small-11.small-offset-1.columns
a{action "moveBelow" product_category} href="#" a{action "moveBelow" product_category} href="#"
@@ -14,7 +14,7 @@ if model.products
h4=t 'product_category.modal.move.products.title' h4=t 'product_category.modal.move.products.title'
hr hr
ul.sortable ul.sortable
each product in model.sorted_products each model.sorted_products as |product|
li.sortable-item-container data-sortable-id=product.id li.sortable-item-container data-sortable-id=product.id
span.handle span.handle
span= product.name span= product.name
@@ -1,6 +1,6 @@
p= modal_options.header p= modal_options.header
ul.select-employees ul.select-employees
each employee in employees each employees as |employee|
li.select-employee li.select-employee
= employee.name = employee.name
a.employee-selector{action "selectEmployee" employee}: span a.employee-selector{action "selectEmployee" employee}: span
@@ -10,10 +10,10 @@ table.table
th.currency=t 'active_orders.price' th.currency=t 'active_orders.price'
th.time th.time
tbody tbody
each order in orders each orders as |order|
tr tr
td td
each user in order.list.users each order.list.users as |user|
= user.avatar_tag = user.avatar_tag
td.status-icons td.status-icons
if order.active if order.active
@@ -1,6 +1,6 @@
.section-tabs-container .section-tabs-container
= link-to 'sections' class="goto-sections-index-tab-header": span = link-to 'sections' class="goto-sections-index-tab-header": span
each section in sections each sections as |section|
= view "section-tab-header" context=section = view "section-tab-header" context=section
can "manage" "sections" can "manage" "sections"
a.add-section{action "addSection"}: span a.add-section{action "addSection"}: span
@@ -13,12 +13,12 @@ if view.content.active_list
= button-mark-list-helped content=view.content.active_list = button-mark-list-helped content=view.content.active_list
/= view "close-list-button" view.contentBinding="table.active_list" /= view "close-list-button" view.contentBinding="table.active_list"
= button-close-list content=view.content.active_list = button-close-list content=view.content.active_list
each order in view.content.active_list.active_orders each view.content.active_list.active_orders as |order|
.table-action-row= order.display_tag .table-action-row= order.display_tag
.table-action-row.total .table-action-row.total
= link-to "list" view.content.active_list = link-to "list" view.content.active_list
=currency view.content.active_list.total =currency view.content.active_list.total
/.table-action-row /.table-action-row
a{action "editTable" table}: span.fa.fa-lg.fa-wrench a{action "editTable" table}: span.fa.fa-lg.fa-wrench
each user in view.content.active_list.users each view.content.active_list.users as |user|
= user.avatar_tag = user.avatar_tag
@@ -1,6 +1,6 @@
each section_element in model.section_elements each model.section_elements as |section_element|
view "section-element" content=section_element tablesContext=view view "section-element" content=section_element tablesContext=view
each section_area in model.section_areas each model.section_areas as |section_area|
= section-area section_area=section_area tablesContext=view = section-area section_area=section_area tablesContext=view
each table in model.tables each model.tables as |table|
= view "section-table" content=table tablesContext=view = view "section-table" content=table tablesContext=view
@@ -16,7 +16,7 @@
/th.timestamp=t 'attributes.list.created_at' /th.timestamp=t 'attributes.list.created_at'
th.actions=t 'helpers.actions.title' th.actions=t 'helpers.actions.title'
tbody tbody
each section in sections each sections as |section|
tr tr
td td
a{ action "goToSection" section}= section.title a{ action "goToSection" section}= section.title
@@ -9,7 +9,7 @@
/th.timestamp= t 'attributes.table.created_at' /th.timestamp= t 'attributes.table.created_at'
th.actions=t 'helpers.actions.title' th.actions=t 'helpers.actions.title'
tbody tbody
each table in tables each tables as |table|
tr tr
td: link-to 'table' table: span= table.number td: link-to 'table' table: span= table.number
td.link td.link