Refactor Qsupplier.App to App
This commit is contained in:
@@ -11,7 +11,7 @@ if list.closed_at
|
||||
=state 'list' list.state
|
||||
.display-row
|
||||
.display-label
|
||||
.display-field: Qsupplier.App.CloseListButtonView content=list
|
||||
.display-field: App.CloseListButtonView content=list
|
||||
.row
|
||||
each user in list.users
|
||||
img.facebook-image src="http://graph.facebook.com/#{unbound user.facebook_id}/picture?type=square" alt="f"
|
||||
|
||||
@@ -7,7 +7,7 @@ td.status-icons
|
||||
if view.content.needs_payment
|
||||
|
|
||||
span.icon.needs-payment
|
||||
td.numeric.table_number: Qsupplier.App.TableNumberWithInfoView contextBinding="view.content"
|
||||
td.numeric.table_number: App.TableNumberWithInfoView contextBinding="view.content"
|
||||
td.section_title: link-to 'section' view.content.section.id: span=view.content.section.title
|
||||
td.currency.total_list_amount {{currency view.content.total}}
|
||||
td.actions
|
||||
@@ -16,7 +16,7 @@ td.actions
|
||||
span.fa-stack.fa-2x.fa-stack-sized
|
||||
i.fa.fa-bell.fa-stack-small
|
||||
i.fa.fa-ban.revoke
|
||||
Qsupplier.App.MarkListHelpedButtonView content=view.content
|
||||
Qsupplier.App.CloseListButtonView content=view.content
|
||||
App.MarkListHelpedButtonView content=view.content
|
||||
App.CloseListButtonView content=view.content
|
||||
|
||||
button.show-list.button{action "showList" view.content.id}: span
|
||||
|
||||
@@ -4,7 +4,7 @@ td.user-info.show-for-large-up
|
||||
td.status-icons
|
||||
span.active-order.fa.fa-check.fa-lg
|
||||
td= view.content.display
|
||||
td.numeric.table_number: Qsupplier.App.TableNumberWithInfoView contextBinding="view.content.list"
|
||||
td.numeric.table_number: App.TableNumberWithInfoView contextBinding="view.content.list"
|
||||
td.section_title: link-to 'section' view.content.list.section.id: span=view.content.list.section.title
|
||||
td.currency=currency view.content.total
|
||||
td.actions
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.page-header
|
||||
div.dashboard-section-selection
|
||||
Qsupplier.App.HomeSectionSelectorView selectionBinding="controller.controllers.application.active_section" content=controller.sections prompt=controllers.application.supplier.name
|
||||
Qsupplier.App.HomeSectionJumperView
|
||||
App.HomeSectionSelectorView selectionBinding="controller.controllers.application.active_section" content=controller.sections prompt=controllers.application.supplier.name
|
||||
App.HomeSectionJumperView
|
||||
h3=t 'active_lists.title'
|
||||
.well
|
||||
table.active-lists-table.table
|
||||
@@ -14,7 +14,7 @@
|
||||
th.currency=t 'active_lists.price'
|
||||
th.actions
|
||||
tbody
|
||||
each list in controller.active_lists: Qsupplier.App.ActiveListView contentBinding="list"
|
||||
each list in controller.active_lists: App.ActiveListView contentBinding="list"
|
||||
.page-header
|
||||
h3=t 'active_orders.title'
|
||||
.well
|
||||
@@ -29,4 +29,4 @@
|
||||
th.currency=t 'active_orders.price'
|
||||
th.actions
|
||||
tbody
|
||||
each order in controller.active_orders: Qsupplier.App.ActiveOrderView contentBinding="order"
|
||||
each order in controller.active_orders: App.ActiveOrderView contentBinding="order"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
h1=t 'models.plural.list'
|
||||
Qsupplier.App.ListDisplayDateSelector valueBinding="date"
|
||||
App.ListDisplayDateSelector valueBinding="date"
|
||||
if sorted_lists
|
||||
table.table
|
||||
thead
|
||||
|
||||
@@ -12,12 +12,12 @@ modal-dialog action="close"
|
||||
.form-label
|
||||
label=t 'attributes.section.width'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="section_width"
|
||||
App.NumberField valueBinding="section_width"
|
||||
.form-row
|
||||
.form-label
|
||||
label=t 'attributes.section.height'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="section_height"
|
||||
App.NumberField valueBinding="section_height"
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.add_section.modal.close_button'
|
||||
|
||||
@@ -11,13 +11,13 @@ modal-dialog action="close"
|
||||
label for='add-tables-number-start'
|
||||
=t 'section.add_tables.modal.number_start'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="number_start"
|
||||
App.NumberField valueBinding="number_start"
|
||||
.form-row
|
||||
.form-label
|
||||
label for='add-tables-number-end'
|
||||
=t 'section.add_tables.modal.number_end'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="number_end"
|
||||
App.NumberField valueBinding="number_end"
|
||||
.modal-footer
|
||||
hr
|
||||
button.confirm-cancel{action "close"}=t 'section.add_tables.modal.close_button'
|
||||
|
||||
@@ -23,11 +23,11 @@ modal-dialog action="close"
|
||||
==t 'section.arrange_tables.modal.distributed.explanation'
|
||||
if isByRow
|
||||
==t 'section.arrange_tables.modal.by_row.before_field'
|
||||
Qsupplier.App.NumberField valueBinding="row_count"
|
||||
App.NumberField valueBinding="row_count"
|
||||
==t 'section.arrange_tables.modal.by_row.after_field'
|
||||
if isByColumn
|
||||
==t 'section.arrange_tables.modal.by_column.before_field'
|
||||
Qsupplier.App.NumberField valueBinding="column_count"
|
||||
App.NumberField valueBinding="column_count"
|
||||
==t 'section.arrange_tables.modal.by_column.after_field'
|
||||
.modal-footer
|
||||
hr
|
||||
|
||||
@@ -6,7 +6,7 @@ modal-dialog action="close"
|
||||
p=t 'table.edit.modal.body_header'
|
||||
.form-row
|
||||
.form-label=t 'attributes.table.number'
|
||||
.form-field: Qsupplier.App.NumberField valueBinding="model.number"
|
||||
.form-field: App.NumberField valueBinding="model.number"
|
||||
.form-row
|
||||
.form-label=t 'models.section'
|
||||
.form-field
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.section-tabs-container
|
||||
link-to 'sections' class="goto-sections-index-tab-header": span
|
||||
each section in sections
|
||||
Qsupplier.App.SectionTabHeaderView context=section
|
||||
App.SectionTabHeaderView context=section
|
||||
a.add-section{action "addSection"}: span
|
||||
.section-manage-tables.pull-right
|
||||
if editmode
|
||||
@@ -17,7 +17,7 @@
|
||||
/button.btn.dropdown-toggle data-toggle="dropdown"
|
||||
span Action
|
||||
span.caret
|
||||
Qsupplier.App.DropdownLink title="Action"
|
||||
App.DropdownLink title="Action"
|
||||
ul
|
||||
li
|
||||
a{action "addTables"}: span.section-add-tables-icon=t 'section.add_tables.button_label'
|
||||
@@ -28,10 +28,10 @@
|
||||
li
|
||||
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"
|
||||
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"
|
||||
App.NumberField valueBinding="height" class="dimension section-edit-height-field"
|
||||
a.section-normal-mode-button{ action "finishEditable" }: span
|
||||
else
|
||||
a.section-edit-mode-button{ action "makeEditable" }: span
|
||||
Qsupplier.App.SectionTablesView contentBinding="tables"
|
||||
App.SectionTablesView contentBinding="tables"
|
||||
|
||||
@@ -7,8 +7,8 @@ if table.active_list
|
||||
div.table-actions
|
||||
.title= table.number
|
||||
.table-action-row
|
||||
Qsupplier.App.MarkListHelpedButtonView contentBinding="table.active_list"
|
||||
Qsupplier.App.CloseListButtonView contentBinding="table.active_list"
|
||||
App.MarkListHelpedButtonView contentBinding="table.active_list"
|
||||
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 content=table
|
||||
App.SectionTableView content=table
|
||||
|
||||
@@ -4,7 +4,7 @@ h2=t 'settings.title'
|
||||
.form-field: Ember.TextField valueBinding="controller.model.name"
|
||||
.form-row
|
||||
.form-label: label=t 'attributes.supplier.email'
|
||||
.form-field: Qsupplier.App.EmailField valueBinding="controller.model.email" classNames="supplier-email"
|
||||
.form-field: App.EmailField valueBinding="controller.model.email" classNames="supplier-email"
|
||||
/input.location_picker name="location" type="text" valueBinding="location"
|
||||
/.form-row
|
||||
.location_picker_map
|
||||
@@ -18,7 +18,7 @@ h2=t 'settings.title'
|
||||
.row
|
||||
.large-8.medium-8.columns: Ember.TextField valueBinding="controller.model.address"
|
||||
.large-1.show-for-large-up.columns
|
||||
.large-2.medium-2.small-3.columns: Qsupplier.App.NumberField valueBinding="controller.model.house_number"
|
||||
.large-2.medium-2.small-3.columns: App.NumberField valueBinding="controller.model.house_number"
|
||||
.large-1.medium-2.small-2.columns: Ember.TextField valueBinding="controller.model.house_number_addition"
|
||||
.form-row
|
||||
.form-label: label=t 'attributes.supplier.postal_code'
|
||||
@@ -33,7 +33,7 @@ if editIensProfile
|
||||
.form-row
|
||||
.form-label: label=t 'attributes.supplier.iens_profile'
|
||||
.form-field
|
||||
Qsupplier.App.NumberField valueBinding="controller.model.iens_profile"
|
||||
App.NumberField valueBinding="controller.model.iens_profile"
|
||||
= image_tag 'supplier/settings/iens-example.png'
|
||||
span=t "settings.reviews.explanation"
|
||||
.form-row.form-actions
|
||||
|
||||
Reference in New Issue
Block a user