Files
mozo-backend/app/assets/javascripts/supplier/app/templates/section.emblem
T

29 lines
1.6 KiB
Plaintext

.section-tabs-container
= link-to 'sections' class="goto-sections-index-tab-header": span
each section in sections
= view "section-tab-header" context=section
can manage sections
a.add-section{action "addSection"}: span
.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"
view number-field valueBinding="width" class="dimension section-edit-width-field"
span.fa.fa-lg.fa-times
view number-field valueBinding="height" class="dimension section-edit-height-field"
a.section-rollback-button{ action "rollbackEditable" }: span
a.section-normal-mode-button{ action "finishEditable" }: span
else
= dropdown-link 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{action "addSectionElement"}: span.section-add-section-element-icon= t 'section_element.add_button'
li: a{action "addSectionArea"}: span.section-add-section-area-icon= t 'section_area.add_button'
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"