Fixing up tbody positions

This commit is contained in:
Rob Harrington
2014-11-28 16:37:56 +11:00
parent 25e608d9fb
commit 412b431f36
2 changed files with 17 additions and 15 deletions

View File

@@ -1,16 +1,18 @@
- if @enterprise_fees.count > 0
%table
%tr
%th Name
%th Fee Type
-# %th Calculator
-# %th Calculator Values
- @enterprise_fees.each do |enterprise_fee|
%thead
%tr
%td= enterprise_fee.name
%td= enterprise_fee.fee_type
-# %td= enterprise_fee.calculator.preferred_flat_percent
-# %td= enterprise_fee.fee_type
%th Name
%th Fee Type
-# %th Calculator
-# %th Calculator Values
%tbody
- @enterprise_fees.each do |enterprise_fee|
%tr
%td= enterprise_fee.name
%td= enterprise_fee.fee_type
-# %td= enterprise_fee.calculator.preferred_flat_percent
-# %td= enterprise_fee.fee_type
%br
%div
%a.button{ href: "#{main_app.admin_enterprise_fees_path}"}

View File

@@ -5,12 +5,12 @@
%th Name
%th Applies?
%th
%tbody
- @shipping_methods.each do |shipping_method|
%tbody
%tr{ ng: { controller: 'shippingMethodCtrl', init: "findShippingMethodByID(#{shipping_method.id})" } }
%td= shipping_method.name
%td= f.check_box :shipping_method_ids, { :multiple => true, 'ng-model' => 'ShippingMethod.selected' }, shipping_method.id, nil
%td= link_to "Edit", edit_admin_shipping_method_path(shipping_method)
%tr{ ng: { controller: 'shippingMethodCtrl', init: "findShippingMethodByID(#{shipping_method.id})" } }
%td= shipping_method.name
%td= f.check_box :shipping_method_ids, { :multiple => true, 'ng-model' => 'ShippingMethod.selected' }, shipping_method.id, nil
%td= link_to "Edit", edit_admin_shipping_method_path(shipping_method)
%br
.row
.six.columns.alpha