small refactor for ember actions
This commit is contained in:
@@ -12,7 +12,7 @@ td.section_title: link-to 'section' view.content.section.id: span=view.content.s
|
||||
td.currency.total_list_amount {{currency view.content.total}}
|
||||
td.actions
|
||||
/ if view.content.needs_help
|
||||
button.mark_list_as_helped{ action markListAsHelped view.content.id}
|
||||
button.mark_list_as_helped{ action "markListAsHelped" view.content.id}
|
||||
span.fa-stack.fa-2x.fa-stack-sized
|
||||
i.fa.fa-bell.fa-stack-small
|
||||
i.fa.fa-ban.revoke
|
||||
|
||||
@@ -9,18 +9,18 @@ td.section_title: link-to 'section' view.content.list.section.id: span=view.cont
|
||||
td.currency=currency view.content.total
|
||||
td.actions
|
||||
if view.content.placed
|
||||
button.mark_order_active{ action markOrderActive view.content.id}
|
||||
button.mark_order_active{ action "markOrderActive" view.content.id}
|
||||
span.fa.fa-check.fa-2x
|
||||
/span.button-text=t 'order.being_processed'
|
||||
/button.hide.mark-order-active{ action markOrderActive view.content.id}
|
||||
/button.hide.mark-order-active{ action "markOrderActive" view.content.id}
|
||||
span.button-icon
|
||||
span.button-text=t 'order.being_processed'
|
||||
button.mark_order_delivered{ action markOrderDelivered view.content.id }
|
||||
button.mark_order_delivered{ action "markOrderDelivered" view.content.id }
|
||||
span.fa.fa-2x.fa-shifted-stack
|
||||
span.fa-shifted.fa-check
|
||||
span.fa-shifted.fa-check
|
||||
/span.button-text= t 'order.being_served'
|
||||
/button.hide.mark-order-delivered{ action markOrderDelivered view.content.id}
|
||||
/button.hide.mark-order-delivered{ action "markOrderDelivered" view.content.id}
|
||||
span.button-icon
|
||||
span.button-text= t 'order.being_served'
|
||||
button.remove-order{ action "cancelOrder" view.content }: span
|
||||
|
||||
@@ -3,4 +3,4 @@ modal-dialog action="close"
|
||||
p=body
|
||||
hr
|
||||
button.confirm-cancel{action "close"}= t 'confirm.cancel'
|
||||
button.confirm-ok.right{action 'confirm'}= t 'confirm.confirm'
|
||||
button.confirm-ok.right{action "confirm"}= t 'confirm.confirm'
|
||||
|
||||
@@ -2,4 +2,4 @@ modal-dialog action="close"
|
||||
h3.flush--top= title
|
||||
p==body
|
||||
hr
|
||||
button{action 'close'}= t 'modal.info.close'
|
||||
button{action "close"}= t 'modal.info.close'
|
||||
|
||||
@@ -9,15 +9,15 @@ modal-dialog action="close"
|
||||
if isDistributed
|
||||
span.arrange-tables-current-type.distributed=t 'section.arrange_tables.modal.distributed.title'
|
||||
else
|
||||
button.arrange-tables-type-button.distributed{action 'makeDistributed'}=t 'section.arrange_tables.modal.distributed.title'
|
||||
button.arrange-tables-type-button.distributed{action "makeDistributed"}=t 'section.arrange_tables.modal.distributed.title'
|
||||
if isByRow
|
||||
span.arrange-tables-current-type.by_row=t 'section.arrange_tables.modal.by_row.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_row{action 'makeByRow'}=t 'section.arrange_tables.modal.by_row.title'
|
||||
button.arrange-tables-type-button.by_row{action "makeByRow"}=t 'section.arrange_tables.modal.by_row.title'
|
||||
if isByColumn
|
||||
span.arrange-tables-current-type.by_column=t 'section.arrange_tables.modal.by_column.title'
|
||||
else
|
||||
button.arrange-tables-type-button.by_column{action 'makeByColumn'}=t 'section.arrange_tables.modal.by_column.title'
|
||||
button.arrange-tables-type-button.by_column{action "makeByColumn"}=t 'section.arrange_tables.modal.by_column.title'
|
||||
.arrange-content
|
||||
if isDistributed
|
||||
==t 'section.arrange_tables.modal.distributed.explanation'
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
ul#section-background.dropdown-menu
|
||||
each texture in textures
|
||||
li
|
||||
a{ action setTexture texture } {{texture}}
|
||||
a{ action "setTexture" texture }= texture
|
||||
/a.tiny.button.dropdown.section-actions-menu-header href="#" data-dropdown="section-action-list" Action
|
||||
/button.btn.dropdown-toggle data-toggle="dropdown"
|
||||
span Action
|
||||
|
||||
Reference in New Issue
Block a user