Major supplier refactor making the whole system work better
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
h1=t 'models.plural.list'
|
||||
Qsupplier.App.ListDisplayDateSelector valueBinding="date"
|
||||
if lists
|
||||
if sorted_lists
|
||||
table.table
|
||||
thead
|
||||
tr
|
||||
@@ -12,7 +12,7 @@ if lists
|
||||
th.currentcy=t 'attributes.list.price'
|
||||
th.timestamp=t 'attributes.list.created_at'
|
||||
tbody
|
||||
each list in lists
|
||||
each list in sorted_lists
|
||||
tr
|
||||
td.state
|
||||
link-to 'list' list.id
|
||||
@@ -20,7 +20,7 @@ if lists
|
||||
td.boolean.needs_help=boolean list.needs_help
|
||||
td.boolean.needs_payment=boolean list.needs_payment
|
||||
td.timestamp=time list.closed_at
|
||||
td.table_number 7
|
||||
td.table_number= list.table.number
|
||||
td.currency=currency list.price
|
||||
td.timestamp=time list.created_at
|
||||
else
|
||||
|
||||
@@ -20,27 +20,18 @@
|
||||
Qsupplier.App.DropdownLink title="Action"
|
||||
ul
|
||||
li
|
||||
a{action addTables}
|
||||
span.section-add-tables-icon
|
||||
=t 'section.add_tables.button_label'
|
||||
a{action "addTables"}: span.section-add-tables-icon=t 'section.add_tables.button_label'
|
||||
li
|
||||
a{action arrangeTables}
|
||||
span.section-arrange-tables-icon
|
||||
=t 'section.arrange_tables.modal.title'
|
||||
a{action "arrangeTables"}: span.section-arrange-tables-icon=t 'section.arrange_tables.modal.title'
|
||||
li
|
||||
a href="{{route 'qr_codes_suppliers_tables_path' section_id=id}}"
|
||||
span.table-qr-codes
|
||||
=t 'tables.qr_codes.link'
|
||||
a href="{{route 'qr_codes_suppliers_tables_path' section_id=id}}": span.table-qr-codes=t 'tables.qr_codes.link'
|
||||
li
|
||||
/a.section-destroy href="{{route 'suppliers_section_path' id}}" data-method="delete" data-confirm="{{t 'helpers.links.are_you_sure' bare=true}}"
|
||||
a.section-destroy{action destroySection}
|
||||
span.section-remove-icon
|
||||
=t 'helpers.links.destroy'
|
||||
a.section-destroy{action "destroySection"}: span.section-remove-icon=t 'helpers.links.destroy'
|
||||
Ember.TextField valueBinding="title" class="section-edit-title-field"
|
||||
Qsupplier.App.NumberField valueBinding="width" class="dimension section-edit-width-field"
|
||||
span.fa.fa-lg.fa-times
|
||||
Qsupplier.App.NumberField valueBinding="height" class="dimension section-edit-height-field"
|
||||
a.section-normal-mode-button{ action finishEditable }: span
|
||||
a.section-normal-mode-button{ action "finishEditable" }: span
|
||||
else
|
||||
a.section-edit-mode-button{ action makeEditable }: span
|
||||
a.section-edit-mode-button{ action "makeEditable" }: span
|
||||
Qsupplier.App.SectionTablesView contentBinding="tables"
|
||||
|
||||
@@ -7,8 +7,8 @@ if table.active_list
|
||||
div.table-actions
|
||||
.title= table.number
|
||||
.table-action-row
|
||||
Qsupplier.App.MarkListHelpedButtonView content=table.active_list
|
||||
Qsupplier.App.CloseListButtonView content=table.active_list
|
||||
Qsupplier.App.MarkListHelpedButtonView contentBinding="table.active_list"
|
||||
Qsupplier.App.CloseListButtonView contentBinding="table.active_list"
|
||||
.table-action-row=currency table.active_list.total
|
||||
/.table-action-row
|
||||
a{action "editTable" table}: span.fa.fa-lg.fa-wrench
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
each table in tables
|
||||
Qsupplier.App.SectionTableView contentBinding="table"
|
||||
Qsupplier.App.SectionTableView content=table
|
||||
|
||||
Reference in New Issue
Block a user