design fixes for table view without list
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
- model_class = Section
|
- model_class = Section
|
||||||
.page-header= title t('section.manage_tables.title', section: Section.model_name.human.downcase, title: @section.title)
|
.page-header= title t('section.manage_tables.title', section: Section.model_name.human.downcase, title: @section.title)
|
||||||
- content_for :row do
|
- content_for :row do
|
||||||
ul.nav.nav-pills
|
ul.nav.nav-tabs
|
||||||
- for section in @section.supplier.sections
|
- for section in @section.supplier.sections
|
||||||
li class=(section == @section ? 'active' : nil) = link_to section.title, [:suppliers, section]
|
li class=(section == @section ? 'active' : nil) = link_to section.title, [:manage_tables, :suppliers, section]
|
||||||
.span9
|
.span9
|
||||||
.well.section-tables-container.section-tables-active
|
.well.section-tables-container.section-tables-active
|
||||||
- for table in @section.tables
|
- for table in @section.tables
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
.well
|
.well
|
||||||
table#products-table.table
|
table#products-table.table
|
||||||
tbody
|
tbody
|
||||||
table#active-order-table.table.table-striped.hide
|
table#active-order-table.table.hide
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
th Product
|
th= Product.model_name.human
|
||||||
th #
|
th #
|
||||||
th.currency Total
|
th.currency Total
|
||||||
th
|
th
|
||||||
|
|||||||
@@ -1,25 +1,26 @@
|
|||||||
.page-header
|
.page-header
|
||||||
.table-number= @table.number
|
.table-number= @table.number
|
||||||
h4= t('user.show_products.title', products: Product.model_name.human_plural)
|
h4= t('user.show_products.title', products: Product.model_name.human_plural)
|
||||||
table#products-table.table.table-striped.table-hover
|
.well
|
||||||
tbody
|
table#products-table.table.table-hover
|
||||||
table#active-order-table.table.table-striped.hide
|
tbody
|
||||||
thead
|
table#active-order-table.table.hide
|
||||||
tr
|
thead
|
||||||
th Product
|
tr
|
||||||
th #
|
th= Product.model_name.human
|
||||||
th.currency Total
|
th #
|
||||||
th
|
th.currency Total
|
||||||
tbody
|
th
|
||||||
tfoot
|
tbody
|
||||||
tr
|
tfoot
|
||||||
td colspan=2
|
tr
|
||||||
button class="btn btn-primary" onClick="Quser.order_selected_products({table_id: '#{@table.id}'})" Bestellen
|
td colspan=2
|
||||||
|
|
button class="btn btn-primary" onClick="Quser.order_selected_products({table_id: '#{@table.id}'})" Bestellen
|
||||||
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" Clear
|
|
|
||||||
td.currency
|
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" Clear
|
||||||
strong#active-order-total
|
td.currency
|
||||||
td
|
strong#active-order-total
|
||||||
|
td
|
||||||
- content_for :footer do
|
- content_for :footer do
|
||||||
javascript:
|
javascript:
|
||||||
jQuery(function(){
|
jQuery(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user