All the little details

This commit is contained in:
2015-02-20 19:21:25 +01:00
parent cde551dc7f
commit d9e69beb5f
38 changed files with 256 additions and 57 deletions
@@ -3,5 +3,5 @@ dl.sections-header-container.sub-nav
each s in sections
dd data-section=s.id
a.section-header-title{action "setSection" s} href="#" = s.title
= link-to "section" s.id class="section-jumper"
/= link-to "section" s.id class="section-jumper"
span.fa.fa-chevron-circle-right
@@ -6,7 +6,7 @@ header.top-menu
= link-to 'index' class="top-menu-root"
= image_tag "icons/logo-small.png"
= link-to "menu" class="top-menu-menu"
= t 'supplier.top_menu.menu'
= t 'top_menu.menu'
= link-to "sections" class="top-menu-sections"
= t 'models.plural.section'
= link-to "tables" class="top-menu-tables"
@@ -16,7 +16,14 @@ header.top-menu
= link-to "employees" class="top-menu-employees"
= t 'models.plural.employee'
= link-to "schedule" class="top-menu-schedule"
= t 'supplier.top_menu.schedule'
= t 'top_menu.schedule'
if supplier.open
a.supplier-is-closed-indication.is-open{ action "markSupplierClosed" }: span.fa.fa-beer.fa-2x
else
a.supplier-is-closed-indication.is-closed{ action "markSupplierOpen" }
span.fa-stack.fa-lg
i.fa.fa-beer.fa-stack-1x
i.fa.fa-ban.fa-stack-2x.text-alert
.extra-info{action "showSupplierStatusInfo"}
.supplier-info-row
.counter.supplier-orders-placed-count
@@ -1,5 +1,9 @@
.row: .small-12.columns
= sections-header sectionBinding="controller.controllers.application.active_section"
unless controllers.application.supplier.open
.alert-box.alert.radius data-alert=true
= t 'supplier.you_are_currently_closed_alert'
a{ action "markSupplierOpen" }= t 'supplier.open_for_orders'
.page-header
div.dashboard-section-selection
/App.HomeSectionSelectorView selectionBinding="controller.controllers.application.active_section" content=controller.sections prompt=controllers.application.supplier.name
@@ -6,7 +6,7 @@ p=t 'employee.modal.body_header'
= errors model.errors.name
.form-row.name
.form-label=t 'attributes.employee.email'
.form-field
.form-field.half
= input type="email" valueBinding="model.email" action="save"
= errors model.errors.email
if isNotSelf
@@ -0,0 +1,15 @@
p=t 'employee_shift.modal.body_header'
.form-row.name
.form-label= t 'models.employee'
.form-field= model.employee.name
.form-row.description
.form-label=t 'attributes.employee_shift.description'
.form-field
= input valueBinding="model.description"
= errors model.errors.description
hr
button.modal-close{action "close"}=t 'employee_shift.modal.close_button'
button.modal-confirm.right{action "save"} disabled=model.isInvalid
=t 'employee_shift.modal.save_button'
button.modal-destroy.right{action "destroy"}
=t 'employee_shift.modal.destroy_button'
@@ -4,14 +4,9 @@
= view "section-tab-header" context=section
can manage sections
a.add-section{action "addSection"}: span
can manage sections
.section-manage-tables.pull-right
App.DropdownLink title="Action"
ul
li: 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'
li: a href="{{route 'qr_codes_suppliers_tables_path' section_id=id}}" target="_blank": span.qr-icon=t 'table.print_qr_codes'
li: a.section-destroy{action "destroySection"}: span.section-remove-icon=t 'helpers.links.destroy'
.section-manage-tables.pull-right
a.go-to-orders-list{ action "showDashboardOrders" model }: span
can manage sections
if editmode
= input type="text" valueBinding="title" class="section-edit-title-field"
App.NumberField valueBinding="width" class="dimension section-edit-width-field"
@@ -20,6 +15,12 @@ can manage sections
a.section-rollback-button{ action "rollbackEditable" }: span
a.section-normal-mode-button{ action "finishEditable" }: span
else
App.DropdownLink title="Action"
ul
li: 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'
li: a href="{{route 'qr_codes_suppliers_tables_path' section_id=id}}" target="_blank": span.qr-icon=t 'table.print_qr_codes'
li: a.section-destroy{action "destroySection"}: span.section-remove-icon=t 'helpers.links.destroy'
a.section-edit-mode-button{ action "makeEditable" }: span
= view "section-tables" contentBinding="tables"
@@ -31,7 +31,7 @@
/td.currency=currency list.price
/td.timestamp=time list.created_at
td.actions
a.section-dashboard-orders{action showDashboardOrders section}: span
a.section-dashboard-orders.go-to-orders-list{action "showDashboardOrders" section}: span
a.table-qr-codes{path qr_codes_suppliers_tables section_id=section.id} target="_blank": span.qr-icon
else
.row: .small-12.columns