Upgrade progress
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
App.MarkListHelpedButtonView = Ember.View.extend
|
App.ButtonMarkListHelpedComponent = Ember.View.extend
|
||||||
templateName: 'mark_list_helped_button'
|
templateName: 'components/button/mark-list-helped'
|
||||||
classNames: ['mark-list-as-helped-button']
|
classNames: ['mark-list-as-helped-button']
|
||||||
classNameBindings: ['content.needs_help:show:hide']
|
classNameBindings: ['content.needs_help:show:hide']
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
App.MarkOrderActiveComponent = Ember.Component.extend
|
App.ButtonMarkOrderActiveComponent = Ember.Component.extend
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
templateName: 'components/buttons/mark-order-active'
|
templateName: 'components/button/mark-order-active'
|
||||||
classNames: ['mark-order-active-button']
|
classNames: ['mark-order-active-button']
|
||||||
classNameBindings: ['order.placed:active:hide']
|
classNameBindings: ['order.placed:active:hide']
|
||||||
click: -> @get('order').mark_active()
|
click: -> @get('order').mark_active()
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
App.MarkOrderCancelledComponent = Ember.Component.extend
|
App.ButtonMarkOrderCancelledComponent = Ember.Component.extend
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
templateName: 'components/buttons/mark-order-cancelled'
|
templateName: 'components/button/mark-order-cancelled'
|
||||||
classNames: ['mark-order-cancelled-button']
|
classNames: ['mark-order-cancelled-button']
|
||||||
classNameBindings: ['showButton:active:hide']
|
classNameBindings: ['showButton:active:hide']
|
||||||
showButton: Ember.computed 'order.state', ->
|
showButton: Ember.computed 'order.state', ->
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
App.MarkOrderDeliveredComponent = Ember.Component.extend
|
App.ButtonMarkOrderDeliveredComponent = Ember.Component.extend
|
||||||
tagName: 'button'
|
tagName: 'button'
|
||||||
templateName: 'components/buttons/mark-order-delivered'
|
templateName: 'components/button/mark-order-delivered'
|
||||||
classNames: ['mark-order-delivered-button']
|
classNames: ['mark-order-delivered-button']
|
||||||
classNameBindings: ['showButton:active:hide']
|
classNameBindings: ['showButton:active:hide']
|
||||||
showButton: Ember.computed 'order.state', ->
|
showButton: Ember.computed 'order.state', ->
|
||||||
@@ -23,9 +23,9 @@ if list.sorted_orders
|
|||||||
span.currency= currency order.total
|
span.currency= currency order.total
|
||||||
span.created_at= time order.created_at
|
span.created_at= time order.created_at
|
||||||
.list-order-actions
|
.list-order-actions
|
||||||
= mark-order-active order=order
|
= button-mark-order-active order=order
|
||||||
= mark-order-delivered order=order
|
= button-mark-order-delivered order=order
|
||||||
= mark-order-cancelled order=order
|
= button-mark-order-cancelled order=order
|
||||||
if showTotal
|
if showTotal
|
||||||
.list-orders-total.total
|
.list-orders-total.total
|
||||||
= t 'general.total'
|
= t 'general.total'
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ td.actions
|
|||||||
span.fa-stack.fa-2x.fa-stack-sized
|
span.fa-stack.fa-2x.fa-stack-sized
|
||||||
i.fa.fa-bell.fa-stack-small
|
i.fa.fa-bell.fa-stack-small
|
||||||
i.fa.fa-ban.revoke
|
i.fa.fa-ban.revoke
|
||||||
= view "mark-list-helped-button" content=view.content
|
/= view "mark-list-helped-button" content=view.content
|
||||||
|
= button-mark-list-helped content=view.content
|
||||||
/= view "remove-list-needs-payment" content=view.content
|
/= view "remove-list-needs-payment" content=view.content
|
||||||
= view "close-list-button" content=view.content
|
= view "close-list-button" content=view.content
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ td.section_title= link-to 'section' view.content.list.table.section.id: span=vie
|
|||||||
td.currency=currency view.content.total
|
td.currency=currency view.content.total
|
||||||
td.time= time view.content.created_at format="HH:mm"
|
td.time= time view.content.created_at format="HH:mm"
|
||||||
td.actions
|
td.actions
|
||||||
= mark-order-active order=view.content
|
= button-mark-order-active order=view.content
|
||||||
= mark-order-delivered order=view.content
|
= button-mark-order-delivered order=view.content
|
||||||
= mark-order-cancelled order=view.content
|
= button-mark-order-cancelled order=view.content
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ if table.active_list
|
|||||||
.title= table.number
|
.title= table.number
|
||||||
if table.active_list
|
if table.active_list
|
||||||
.table-action-row
|
.table-action-row
|
||||||
= view "mark-list-helped-button" contentBinding="table.active_list"
|
/= view "mark-list-helped-button" contentBinding="table.active_list"
|
||||||
|
= button-mark-list-helped content=table.active_list
|
||||||
= view "close-list-button" contentBinding="table.active_list"
|
= view "close-list-button" contentBinding="table.active_list"
|
||||||
each order in table.active_list.active_orders
|
each order in table.active_list.active_orders
|
||||||
.table-action-row= order.display_tag
|
.table-action-row= order.display_tag
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
errors: <%= I18n.t('errors', locale: :nl).to_json %>
|
errors: <%= I18n.t('errors', locale: :nl).to_json %>
|
||||||
date: <%= {day_name: Hash[Date::DAYNAMES.map(&:downcase).zip(I18n.t('date.day_names', locale: :nl))]}.to_json %>
|
date: <%= {day_name: Hash[Date::DAYNAMES.map(&:downcase).zip(I18n.t('date.day_names', locale: :nl))]}.to_json %>
|
||||||
|
|
||||||
|
|
||||||
@day_minutes_to_time = (minutes)->
|
@day_minutes_to_time = (minutes)->
|
||||||
return "" unless minutes
|
return "" unless minutes
|
||||||
[("0" + Math.floor(minutes/60)).substr(-2,2), ("0" + Math.floor(minutes%60)).substr(-2,2)].join(":")
|
[("0" + Math.floor(minutes/60)).substr(-2,2), ("0" + Math.floor(minutes%60)).substr(-2,2)].join(":")
|
||||||
|
|||||||
@@ -8,4 +8,4 @@
|
|||||||
span.fa.fa-times.fa-lg
|
span.fa.fa-times.fa-lg
|
||||||
span= globals.notice
|
span= globals.notice
|
||||||
= outlet
|
= outlet
|
||||||
=outlet modal
|
=outlet "modal"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
if image
|
if model.image
|
||||||
.right: img src=image.small alt=""
|
.right: img src=model.image.small alt=""
|
||||||
p==description
|
p==model.description
|
||||||
if product_variants
|
if model.product_variants
|
||||||
h4= t 'models.plural.product_variant'
|
h4= t 'models.plural.product_variant'
|
||||||
ul
|
ul
|
||||||
each product_variant in product_variants
|
each model.product_variants as |product_variant|
|
||||||
li= product_variant.name
|
li= product_variant.name
|
||||||
hr
|
hr
|
||||||
button{action "close"}= t 'modal.info.close'
|
button{action "close"}= t 'modal.info.close'
|
||||||
|
|||||||
@@ -140,3 +140,6 @@ en:
|
|||||||
orders_placed_count_explanation: " means that there are %{count} orders placed and not yet processing or finished"
|
orders_placed_count_explanation: " means that there are %{count} orders placed and not yet processing or finished"
|
||||||
orders_in_process_count_explanation: " means that there are %{count} orders currently processing"
|
orders_in_process_count_explanation: " means that there are %{count} orders currently processing"
|
||||||
close: Got it
|
close: Got it
|
||||||
|
modal:
|
||||||
|
info:
|
||||||
|
close: Close
|
||||||
|
|||||||
@@ -140,3 +140,6 @@ nl:
|
|||||||
orders_placed_count_explanation: " betekent dat er %{count} nog niet in behandeling of afgesloten bestellingen zijn"
|
orders_placed_count_explanation: " betekent dat er %{count} nog niet in behandeling of afgesloten bestellingen zijn"
|
||||||
orders_in_process_count_explanation: " betekent dat er %{count} bestellingen in behandeling zijn"
|
orders_in_process_count_explanation: " betekent dat er %{count} bestellingen in behandeling zijn"
|
||||||
close: Got it
|
close: Got it
|
||||||
|
modal:
|
||||||
|
info:
|
||||||
|
close: Sluit
|
||||||
|
|||||||
Reference in New Issue
Block a user