upgrade to different theme for main webpage
This commit is contained in:
@@ -21,6 +21,18 @@
|
||||
= link_to :i, [:suppliers, table], class: 'btn btn-mini table-link'
|
||||
.table-number = table.number
|
||||
.clearfix
|
||||
.form-actions
|
||||
= link_to t("helpers.links.back"), suppliers_sections_path, class: 'btn'
|
||||
'
|
||||
= link_to t('helpers.links.edit'), [:edit, :suppliers, @section], class: 'btn'
|
||||
'
|
||||
= link_to t('supplier.section.tables_view'), [:tables_view, :suppliers, @section], class: [:btn, 'btn-info']
|
||||
'
|
||||
a.btn href='#add-tables-modal' role='button' data-toggle='modal'= t('supplier.section.add_tables.button_label')
|
||||
'
|
||||
a.btn href='#arrange-tables-modal' role='button' data-toggle='modal'= t('supplier.section.arrange_tables.button_label')
|
||||
'
|
||||
= link_to t("helpers.links.destroy"), [:suppliers, @section], method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|
||||
- content_for :footer do
|
||||
javascript:
|
||||
var current_section_id = '#{@section.id}';
|
||||
@@ -34,3 +46,22 @@
|
||||
Qsupplier.position_table_in_active_section(active_section_container, $(this), true);
|
||||
});
|
||||
});
|
||||
#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')
|
||||
.modal-body
|
||||
p= 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')
|
||||
.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')
|
||||
.controls
|
||||
input.input-mini#add-tables-number-end type=:number value=120
|
||||
.modal-footer
|
||||
a.btn href='#' Close
|
||||
a.btn.btn-primary href='#' onclick=%|Qsupplier.add_tables_to_active_section()| Add
|
||||
|
||||
|
||||
Reference in New Issue
Block a user