refactor and styling change, add button logick, add i18n logic

This commit is contained in:
2012-09-17 14:28:00 +02:00
parent 17b3494033
commit 930e53e837
20 changed files with 316 additions and 55 deletions
+3 -3
View File
@@ -3,9 +3,9 @@
.supplier-name
h4= t('user.active_list.title', list: List.model_name.human)
.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
= link_to t('helpers.links.place_order'), user_list_products_path, class: ['user-top-button'], id: 'place-order-on-list'
span#list-needs-payment-button.user-top-button
span#list-needs-help-button.user-top-button
.well
table#active-list-table.table
thead
+5 -4
View File
@@ -3,8 +3,9 @@
.supplier-name
h4= t('user.show_products.title', products: Product.model_name.human_plural)
.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
= link_to t('helpers.links.show_active_list', list: List.model_name.human), user_active_list_path, class: ['user-top-button'], id: 'show-active-list'
span#list-needs-payment-button.user-top-button
span#list-needs-help-button.user-top-button
.well
table#products-table.table
tbody
@@ -21,9 +22,9 @@
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-primary" onClick="Quser.handle_active_list(function(){Quser.order_selected_products()})" data-t="selected_products.order"= t('selected_products.order')
| 
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" Clear
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" data-t="selected_products.clear"= t('selected_products.clear')
td.currency
strong#active-order-total
td