Tables to ember with modal extension cq refactor
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
modal-dialog action="close"
|
||||
.modal-header
|
||||
h3.flush--top=t 'table.edit.modal.title'
|
||||
hr
|
||||
.modal-body
|
||||
p=t 'table.edit.modal.body_header'
|
||||
.form-row
|
||||
.form-label=t 'attributes.table.number'
|
||||
.form-field: Qsupplier.App.NumberField valueBinding="model.number"
|
||||
.form-row
|
||||
.form-label=t 'models.section'
|
||||
.form-field
|
||||
Ember.Select content=all_sections valueBinding="model.section" optionLabelPath="content.title"
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.add_tables.modal.close_button'
|
||||
button.confirm-ok.right{action "ok"}=t 'section.add_tables.modal.add_button'
|
||||
@@ -0,0 +1,19 @@
|
||||
.table-number= table.number
|
||||
.status-icons
|
||||
span.needs_payment
|
||||
span.needs_help
|
||||
span.active_order
|
||||
if table.active_list
|
||||
div class="table-actions table-actions-#{unbound table.id}"
|
||||
.title= table.number
|
||||
.table-action-row
|
||||
Qsupplier.App.MarkListHelpedButtonView content=table.active_list
|
||||
Qsupplier.App.CloseListButtonView content=table.active_list
|
||||
.table-action-row=currency table.active_list.total
|
||||
each user in table.active_list.users
|
||||
img src=user.facebook_image
|
||||
if editmodedisabled
|
||||
.table-settings
|
||||
select
|
||||
option Round
|
||||
option rectangular
|
||||
@@ -1,19 +1,11 @@
|
||||
.table-number= table.number
|
||||
.status-icons
|
||||
span.needs_payment
|
||||
span.needs_help
|
||||
span.active_order
|
||||
if table.active_list
|
||||
div class="table-actions table-actions-#{unbound table.id}"
|
||||
.title= table.number
|
||||
.table-action-row
|
||||
Qsupplier.App.MarkListHelpedButtonView content=table.active_list
|
||||
Qsupplier.App.CloseListButtonView content=table.active_list
|
||||
.table-action-row=currency table.active_list.total
|
||||
each user in table.active_list.users
|
||||
img src=user.facebook_image
|
||||
if editmodedisabled
|
||||
.table-settings
|
||||
select
|
||||
option Round
|
||||
option rectangular
|
||||
h2=t 'models.table'
|
||||
.display-row
|
||||
.display-label= t 'attributes.table.number'
|
||||
.display-field
|
||||
span= table.number
|
||||
if table.section
|
||||
.display-row
|
||||
.display-label=t 'models.section'
|
||||
.display-field
|
||||
link-to 'section' table.section
|
||||
span= table.section.title
|
||||
|
||||
@@ -10,9 +10,12 @@ if tables
|
||||
tbody
|
||||
each table in tables
|
||||
tr
|
||||
td: a= table.number
|
||||
td: link-to 'table' table: span= table.number
|
||||
td.link
|
||||
if table.section
|
||||
= link-to 'sections:section' table.section
|
||||
= link-to 'section' table.section
|
||||
= table.section.title
|
||||
td.numeric=time table.created_at
|
||||
td.actions
|
||||
a.table-edit{ action 'editTable' table }: span
|
||||
a.table-destroy{ action 'destroyTable' table }: span
|
||||
|
||||
Reference in New Issue
Block a user