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

32 lines
1.7 KiB
Plaintext

.section-tabs-container.main-section-header
= link-to 'sections' class="goto-sections-index-tab-header": span
each sections as |section|
= section-tab-header section=section
if (can "manage" "sections")
a.add-section{action "addSection"}: span
.section-manage-tables.pull-right
unless model.editmode
a.go-to-orders-list{ action "showDashboardOrders" model }: span
if (can "manage" "sections")
if model.editmode
a.section-rollback-button{ action "rollbackEditable" }: span
= input type="text" value=model.title class="section-edit-title-field"
= number-field numericValue=model.width class="dimension section-edit-width-field"
span.fa.fa-lg.fa-times
= number-field numericValue=model.height class="dimension section-edit-height-field"
= 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.icon.section-elements= t 'section_element.add_button'
li: a{action "addSectionArea"}: span.icon.section-areas= t 'section_area.add_button'
li= qr-codes-link section=content: span.qr-icon= t 'table.print_qr_codes'
li: a.section-destroy{action "destroySection"}: span.section-remove-icon=t 'helpers.links.destroy'
a.section-normal-mode-button{ action "finishEditable" }: span
else
= dropdown-link title="Action"
ul
li= qr-codes-link section=content: span.qr-icon= t 'table.print_qr_codes'
a.section-edit-mode-button{ action "makeEditable" }: span
= section-tables section=model