layout changes and section handling

This commit is contained in:
2012-09-02 14:23:17 +02:00
parent 50434c28cf
commit 0b56d07ed1
24 changed files with 390 additions and 283 deletions
+12 -10
View File
@@ -1,16 +1,18 @@
.page-header
.table-number
h4= t('user.active_list.title', list: List.model_name.human)
= link_to t('helpers.links.place_order'), user_list_products_path, class: ['btn btn-primary']
span#list-needs-payment-button
span#list-needs-help-button
table#active-list-table.table.table-striped
thead
tr
th= Order.model_name.human
th.currency= Product.human_attribute_name(:price)
tbody
tfoot
.form-actions
= link_to t('helpers.links.place_order'), user_list_products_path, class: ['btn btn-primary']
span#list-needs-payment-button
span#list-needs-help-button
.well
table#active-list-table.table
thead
tr
th= Order.model_name.human
th.currency= Product.human_attribute_name(:price)
tbody
tfoot
- content_for :footer do
javascript:
jQuery(function(){
+23 -21
View File
@@ -1,27 +1,29 @@
.page-header
.table-number
h4= t('user.show_products.title', products: Product.model_name.human_plural)
= link_to t('helpers.links.show_active_list', list: List.model_name.human), user_active_list_path, class: ['btn btn']
span#list-needs-help-button
table#products-table.table.table-striped.table-hover
tbody
table#active-order-table.table.table-striped.hide
thead
tr
th Product
th #
th.currency Total
th
tbody
tfoot
tr
td colspan=2
button class="btn btn-primary" onClick="Quser.handle_active_list(function(){Quser.order_selected_products()})" Bestellen
| 
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" Clear
td.currency
strong#active-order-total
td
.form-actions
= link_to t('helpers.links.show_active_list', list: List.model_name.human), user_active_list_path, class: ['btn btn']
span#list-needs-help-button
.well
table#products-table.table
tbody
table#active-order-table.table.table-striped.hide
thead
tr
th Product
th #
th.currency Total
th
tbody
tfoot
tr
td colspan=2
button class="btn btn-primary" onClick="Quser.handle_active_list(function(){Quser.order_selected_products()})" Bestellen
| 
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" Clear
td.currency
strong#active-order-total
td
- content_for :footer do
javascript:
jQuery(function(){