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
|
||||
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
- model_class = Section
|
||||
.page-header= title :show, @section
|
||||
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:title)
|
||||
dd= @section.title
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:width)
|
||||
dd= @section.width
|
||||
dl.dl-horizontal.show-list
|
||||
dt= model_class.human_attribute_name(:height)
|
||||
dd= @section.height
|
||||
.form-actions
|
||||
= link_to t("helpers.links.back"), suppliers_sections_path, class: 'btn'
|
||||
'
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
- model_class = Section
|
||||
- content_for :row do
|
||||
.span12.section-title= @section.title
|
||||
.span12
|
||||
.well.section-tables-container.section-tables-active
|
||||
.section-title.pull-right= @section.title
|
||||
.section-manage-tables.pull-right= link_to '', manage_tables_suppliers_section_path(@section), class: 'icon-pencil btn'
|
||||
- for table in @section.tables
|
||||
.section-table.hide{ id="section-table-#{table.id}" data-position-x=table.position_x data-position-y=table.position_y data-table-id=table.id}
|
||||
.table-number = link_to table.number, suppliers_table_path(table)
|
||||
|
||||
Reference in New Issue
Block a user