|
|
|
@@ -13,7 +13,7 @@
|
|
|
|
|
= link_to :i, [:suppliers, table], class: 'btn btn-mini table-link'
|
|
|
|
|
.table-number = table.number
|
|
|
|
|
.span3
|
|
|
|
|
h3= t('table.has_no_section')
|
|
|
|
|
h3 data-t='tables.has_no_section' = t('supplier.tables.has_no_section')
|
|
|
|
|
.well.section-tables-container.section-tables-inactive
|
|
|
|
|
- for table in @section.supplier.non_placed_tables
|
|
|
|
|
.section-table{ id="section-table-#{table.id}" data-position-x=table.position_x data-position-y=table.position_y data-table-id=table.id}
|
|
|
|
@@ -33,6 +33,8 @@
|
|
|
|
|
'
|
|
|
|
|
a.btn href='#arrange-tables-modal' role='button' data-toggle='modal' data-t='section.arrange_tables.button_label' = t('supplier.section.arrange_tables.button_label')
|
|
|
|
|
'
|
|
|
|
|
= link_to t('supplier.tables.qr_codes.link'), qr_codes_suppliers_tables_path(section_id: @section.id), class: 'btn btn-info', data: {t: 'tables.qr_codes.link'}
|
|
|
|
|
'
|
|
|
|
|
= link_to t("helpers.links.destroy"), [:suppliers, @section], method: :delete, data: {confirm: are_you_sure?, t: 'helpers.links.destroy' }, class: 'btn btn-danger'
|
|
|
|
|
- content_for :footer do
|
|
|
|
|
javascript:
|
|
|
|
@@ -50,16 +52,16 @@
|
|
|
|
|
#add-tables-modal.modal.hide.fade tabindex=-1 role=:dialog aria-labeledby='add-tables-modal-label' aria-hidden=true
|
|
|
|
|
.modal-header
|
|
|
|
|
button.close type=:button data-dismiss=:modal aria-hidden=true x
|
|
|
|
|
h3#add-tables-modal-label= t('supplier.section.add_tables.modal.title')
|
|
|
|
|
h3#add-tables-modal-label data-t='section.add_tables.modal.title' = t('supplier.section.add_tables.modal.title')
|
|
|
|
|
.modal-body
|
|
|
|
|
p= t('supplier.section.add_tables.modal.body_header')
|
|
|
|
|
p data-t='section.add_tables.modal.body_header' = t('supplier.section.add_tables.modal.body_header')
|
|
|
|
|
form.form-horizontal
|
|
|
|
|
.control-group
|
|
|
|
|
label.control-label for='add-tables-number-start' = t('supplier.section.add_tables.modal.number_start')
|
|
|
|
|
label.control-label for='add-tables-number-start' data-t='section.add_tables.modal.number_start' = t('supplier.section.add_tables.modal.number_start')
|
|
|
|
|
.controls
|
|
|
|
|
input.input-mini#add-tables-number-start type=:number value=100
|
|
|
|
|
.control-group
|
|
|
|
|
label.control-label for='add-tables-number-end' = t('supplier.section.add_tables.modal.number_end')
|
|
|
|
|
label.control-label for='add-tables-number-end' data-t='section.add_tables.modal.number_end' = t('supplier.section.add_tables.modal.number_end')
|
|
|
|
|
.controls
|
|
|
|
|
input.input-mini#add-tables-number-end type=:number value=120
|
|
|
|
|
.modal-footer
|
|
|
|
@@ -67,26 +69,30 @@
|
|
|
|
|
button.btn.btn-primary onclick="Qsupplier.add_tables_to_active_section()" data-t='section.add_tables.modal.add_button'
|
|
|
|
|
#arrange-tables-modal.modal.hide.fade tabindex=-1 role=:dialog aria-labeledby='add-tables-modal-label' aria-hidden=true
|
|
|
|
|
button.close type=:button data-dismiss=:modal aria-hidden=true x
|
|
|
|
|
h3#arrange-tables-modal-label= t('supplier.section.arrange_tables.modal.title')
|
|
|
|
|
h3#arrange-tables-modal-label data-t='section.arrange_tables.modal.title' = t('supplier.section.arrange_tables.modal.title')
|
|
|
|
|
.modal-body
|
|
|
|
|
p= t('supplier.section.arrange_tables.modal.body_header')
|
|
|
|
|
p data-t='section.arrange_tables.modal.body_header' = t('supplier.section.arrange_tables.modal.body_header')
|
|
|
|
|
form.form-horizontal
|
|
|
|
|
.control-group
|
|
|
|
|
label.control-label for='arrange-tables-distributed' = t('supplier.section.arrange_tables.modal.distributed')
|
|
|
|
|
label.control-label for='arrange-tables-distributed' data-t='section.arrange_tables.modal.distributed' = t('supplier.section.arrange_tables.modal.distributed')
|
|
|
|
|
.controls
|
|
|
|
|
input#arrange-tables-distributed type="radio" name="arrange-table-option" checked=true value="distributed"
|
|
|
|
|
.control-group
|
|
|
|
|
label.control-label for='arrange-tables-by_row' = t('supplier.section.arrange_tables.modal.by_row')
|
|
|
|
|
label.control-label for='arrange-tables-by_row' data-t='section.arrange_tables.modal.by_row' = t('supplier.section.arrange_tables.modal.by_row')
|
|
|
|
|
.controls
|
|
|
|
|
input#arrange-tables-by_row type="radio" name="arrange-table-option" value="by_row"
|
|
|
|
|
label for="arrange-tables-by-row-count"= t('supplier.section.arrange_tables.modal.by_row_count')
|
|
|
|
|
label for="arrange-tables-by-row-count" data-t='section.arrange_tables.modal.by_row_count' = t('supplier.section.arrange_tables.modal.by_row_count')
|
|
|
|
|
input.input-mini#arrange-tables-by-row-count type="text" value=0
|
|
|
|
|
'
|
|
|
|
|
span data-t='models.plural.table'
|
|
|
|
|
.control-group
|
|
|
|
|
label.control-label for='arrange-tables-by_column' = t('supplier.section.arrange_tables.modal.by_column')
|
|
|
|
|
label.control-label for='arrange-tables-by_column' data-t='section.arrange_tables.modal.by_column' = t('supplier.section.arrange_tables.modal.by_column')
|
|
|
|
|
.controls
|
|
|
|
|
input#arrange-tables-by_column type="radio" name="arrange-table-option" value="by_column"
|
|
|
|
|
label for="arrange-tables-by-column-count"= t('supplier.section.arrange_tables.modal.by_column_count')
|
|
|
|
|
label for="arrange-tables-by-column-count" data-t='section.arrange_tables.modal.by_column_count' = t('supplier.section.arrange_tables.modal.by_column_count')
|
|
|
|
|
input.input-mini#arrange-tables-by-column-count type="text" value=0
|
|
|
|
|
'
|
|
|
|
|
span data-t='models.plural.table'
|
|
|
|
|
.modal-footer
|
|
|
|
|
button.btn data-dismiss="modal" aria-hidden=true data-t='section.arrange_tables.modal.close_button'
|
|
|
|
|
button.btn.btn-primary onclick="Qsupplier.arrange_tables_of_active_section()" data-t='section.arrange_tables.modal.arrange_button'
|
|
|
|
|