New iteration style for ember supplier
This commit is contained in:
@@ -15,11 +15,11 @@ if list.closed_at
|
||||
= button-mark-list-helped content=list
|
||||
= button-close-list content=list
|
||||
.user-info-container
|
||||
each user in list.users
|
||||
=user.avatar_tag
|
||||
each list.users as |user|
|
||||
= user.avatar_tag
|
||||
if list.sorted_orders
|
||||
.list-orders-container
|
||||
each order in list.sorted_orders
|
||||
each list.sorted_orders as |order|
|
||||
.list-order-container class=order.state
|
||||
= order.display
|
||||
span.currency= currency order.total
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
td.user-info.show-for-large-up
|
||||
each user in view.content.users
|
||||
each view.content.users as |user|
|
||||
= user.avatar_tag
|
||||
td.status-icons
|
||||
if view.content.needs_help
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
td.user-info.show-for-large-up
|
||||
each user in view.content.list.users
|
||||
each view.content.list.users as |user|
|
||||
= user.avatar_tag
|
||||
td.status-icons
|
||||
if view.content.active
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
each locale in locales
|
||||
each locales as |locale|
|
||||
view "language-switcher-button" locale=locale
|
||||
|
||||
@@ -21,7 +21,7 @@ if editMode
|
||||
.small-12.medium-6.columns
|
||||
= view "upload-file" name="image" accept="image/*" file=product.image
|
||||
img src=product.image_src
|
||||
each product_variant in product.product_variants
|
||||
each product.product_variants as |product_variant|
|
||||
.row
|
||||
.small-1.columns
|
||||
.small-8.medium-5.large-4.columns= input value=product_variant.name
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
dl.sections-header-container.sub-nav
|
||||
dd data-section="all": a.section-header-title{action "setSection"} href="" = t 'sections_header.all_sections'
|
||||
each s in sections
|
||||
dd data-section=s.id
|
||||
a.section-header-title{action "setSection" s} href="#" = s.title
|
||||
/= link-to "section" s.id class="section-jumper"
|
||||
each sections as |section|
|
||||
dd data-section=section.id
|
||||
a.section-header-title{action "setSection" section} href="#" = section.title
|
||||
/= link-to "section" section.id class="section-jumper"
|
||||
span.fa.fa-chevron-circle-right
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if other_suppliers
|
||||
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
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
th.colorbox= t 'attributes.employee.color'
|
||||
th.actions=t 'helpers.actions.title'
|
||||
tbody
|
||||
each employee in employees
|
||||
each employees as |employee|
|
||||
tr
|
||||
td: link-to 'employee' employee: span= employee.name
|
||||
td.email
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
th.currency=t 'active_lists.price'
|
||||
th.actions
|
||||
tbody
|
||||
each list in active_lists
|
||||
= view "active-list" contentBinding="list"
|
||||
each active_lists as |list|
|
||||
= view "active-list" content=list
|
||||
.page-header
|
||||
if active_orders.length
|
||||
h3.dashboard-orders-header{action "toggleDashboardOrders"}
|
||||
@@ -57,5 +57,5 @@
|
||||
th.time
|
||||
th.actions
|
||||
tbody
|
||||
each order in active_orders
|
||||
= view "active-order" contentBinding="order"
|
||||
each active_orders as |order|
|
||||
= view "active-order" content=order
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
th.currentcy=t 'attributes.list.price'
|
||||
th.timestamp=t 'attributes.list.created_at'
|
||||
tbody
|
||||
each list in sorted_lists
|
||||
each sorted_lists as |list|
|
||||
tr
|
||||
td.state
|
||||
link-to 'list' list.id
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
.products-menu-filters-container
|
||||
= input value=product_code_filter type="search" placeholder=product_code_filter_placeholder
|
||||
h2 Menu
|
||||
each product_category in sorted_product_categories
|
||||
each sorted_product_categories as |product_category|
|
||||
.row.product_category-container: .small-12.columns
|
||||
.product_category-header
|
||||
can "manage" "menu"
|
||||
@@ -13,7 +13,7 @@ each product_category in sorted_product_categories
|
||||
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 in product_category.sorted_products
|
||||
each product_category.sorted_products as |product|
|
||||
= menu-product product=product code_filter=product_code_filter
|
||||
can "manage" "menu"
|
||||
.row
|
||||
|
||||
@@ -2,7 +2,7 @@ if svg_element.isLoading
|
||||
span.fa.fa-2x.fa-spinner.fa-spin
|
||||
else
|
||||
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
|
||||
hr
|
||||
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-field.full
|
||||
span.current-color= colorbox model.color
|
||||
each color in colors
|
||||
each colors as |color|
|
||||
a{action "setColor" color}= colorbox color
|
||||
hr
|
||||
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
|
||||
a{action "moveBelow"} href="#" = t 'product_category.modal.move.move_to_top'
|
||||
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
|
||||
.small-11.small-offset-1.columns
|
||||
a{action "moveBelow" product_category} href="#"
|
||||
@@ -14,7 +14,7 @@ if model.products
|
||||
h4=t 'product_category.modal.move.products.title'
|
||||
hr
|
||||
ul.sortable
|
||||
each product in model.sorted_products
|
||||
each model.sorted_products as |product|
|
||||
li.sortable-item-container data-sortable-id=product.id
|
||||
span.handle
|
||||
span= product.name
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
p= modal_options.header
|
||||
ul.select-employees
|
||||
each employee in employees
|
||||
each employees as |employee|
|
||||
li.select-employee
|
||||
= employee.name
|
||||
a.employee-selector{action "selectEmployee" employee}: span
|
||||
|
||||
@@ -10,10 +10,10 @@ table.table
|
||||
th.currency=t 'active_orders.price'
|
||||
th.time
|
||||
tbody
|
||||
each order in orders
|
||||
each orders as |order|
|
||||
tr
|
||||
td
|
||||
each user in order.list.users
|
||||
each order.list.users as |user|
|
||||
= user.avatar_tag
|
||||
td.status-icons
|
||||
if order.active
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.section-tabs-container
|
||||
= link-to 'sections' class="goto-sections-index-tab-header": span
|
||||
each section in sections
|
||||
each sections as |section|
|
||||
= view "section-tab-header" context=section
|
||||
can "manage" "sections"
|
||||
a.add-section{action "addSection"}: span
|
||||
|
||||
@@ -13,12 +13,12 @@ if view.content.active_list
|
||||
= button-mark-list-helped content=view.content.active_list
|
||||
/= view "close-list-button" view.contentBinding="table.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.total
|
||||
= link-to "list" view.content.active_list
|
||||
=currency view.content.active_list.total
|
||||
/.table-action-row
|
||||
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
|
||||
|
||||
@@ -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
|
||||
each section_area in model.section_areas
|
||||
each model.section_areas as |section_area|
|
||||
= 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
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
/th.timestamp=t 'attributes.list.created_at'
|
||||
th.actions=t 'helpers.actions.title'
|
||||
tbody
|
||||
each section in sections
|
||||
each sections as |section|
|
||||
tr
|
||||
td
|
||||
a{ action "goToSection" section}= section.title
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/th.timestamp= t 'attributes.table.created_at'
|
||||
th.actions=t 'helpers.actions.title'
|
||||
tbody
|
||||
each table in tables
|
||||
each tables as |table|
|
||||
tr
|
||||
td: link-to 'table' table: span= table.number
|
||||
td.link
|
||||
|
||||
Reference in New Issue
Block a user