From d40ffeef52136f24bb054a98e38d0b4c647e931b Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 9 Jan 2015 13:10:17 +1100 Subject: [PATCH] Remove old sidebar --- .../admin/enterprises/_sidebar.html.haml | 6 ----- .../_sidebar_enterprise_fees.html.haml | 20 ---------------- .../_sidebar_payment_methods.html.haml | 24 ------------------- .../_sidebar_shipping_methods.html.haml | 23 ------------------ 4 files changed, 73 deletions(-) delete mode 100644 app/views/admin/enterprises/_sidebar.html.haml delete mode 100644 app/views/admin/enterprises/_sidebar_enterprise_fees.html.haml delete mode 100644 app/views/admin/enterprises/_sidebar_payment_methods.html.haml delete mode 100644 app/views/admin/enterprises/_sidebar_shipping_methods.html.haml diff --git a/app/views/admin/enterprises/_sidebar.html.haml b/app/views/admin/enterprises/_sidebar.html.haml deleted file mode 100644 index a4c149c9e9..0000000000 --- a/app/views/admin/enterprises/_sidebar.html.haml +++ /dev/null @@ -1,6 +0,0 @@ -- if can? :admin, EnterpriseFee - = render 'sidebar_enterprise_fees', f: f -- if can? :admin, Spree::PaymentMethod - = render 'sidebar_payment_methods', f: f -- if can? :admin, Spree::ShippingMethod - = render 'sidebar_shipping_methods', f: f diff --git a/app/views/admin/enterprises/_sidebar_enterprise_fees.html.haml b/app/views/admin/enterprises/_sidebar_enterprise_fees.html.haml deleted file mode 100644 index 566d87b832..0000000000 --- a/app/views/admin/enterprises/_sidebar_enterprise_fees.html.haml +++ /dev/null @@ -1,20 +0,0 @@ -- enterprise_fees_color = @enterprise_fees.count > 0 ? "blue" : "red" -.sidebar_item.four.columns.alpha#enterprise_fees{ ng: { show: 'Enterprise.category != "producer_hub"' } } - .four.columns.alpha.header{ class: "#{enterprise_fees_color}" } - %span.four.columns.alpha.centered Enterprise Fees - .four.columns.alpha.list{ class: "#{enterprise_fees_color}" } - - if @enterprise_fees.count > 0 - - @enterprise_fees.each do |enterprise_fee| - %a.four.columns.alpha.list-item{ class: "#{cycle('odd','even')}", href: "#{main_app.admin_enterprise_fees_path}" } - %span.three.columns.alpha - = enterprise_fee.name - %span.one.column.omega -   - - else - .four.columns.alpha.list-item.red - %span.three.columns.alpha None Available - %span.one.column.omega - %span.icon-remove-sign - %a.four.columns.alpha.button{ href: "#{main_app.admin_enterprise_fees_path}", class: "#{enterprise_fees_color}" } - CREATE NEW - %span.icon-arrow-right diff --git a/app/views/admin/enterprises/_sidebar_payment_methods.html.haml b/app/views/admin/enterprises/_sidebar_payment_methods.html.haml deleted file mode 100644 index 2d8a174e5c..0000000000 --- a/app/views/admin/enterprises/_sidebar_payment_methods.html.haml +++ /dev/null @@ -1,24 +0,0 @@ -.sidebar_item.four.columns.alpha#payment_methods{ ng: { show: 'Enterprise.sells != "none"' } } - .four.columns.alpha.header{ ng: { class: "paymentMethodsColor()" } } - %span.four.columns.alpha.centered Payment Methods - .four.columns.alpha.list{ ng: { class: "paymentMethodsColor()" } } - - if @payment_methods.count > 0 - -# = hidden_field_tag "enterprise[payment_method_ids][]", [] - - @payment_methods.each do |payment_method| - %span.four.columns.alpha.list-item{ class: "#{cycle('odd','even')}", ng: { controller: 'paymentMethodCtrl', init: "findPaymentMethodByID(#{payment_method.id})" } } - %span.four.columns - %span.three.columns.alpha - %label - = f.check_box :payment_method_ids, { multiple: true, 'ng-model' => 'PaymentMethod.selected' }, payment_method.id, nil - = payment_method.name - %a.one.columns.omega{ href: "#{edit_admin_payment_method_path(payment_method)}" } - %span.icon-arrow-right - - else - .four.columns.alpha.list-item - %span.three.columns.alpha None Available - %span.one.column.omega - %span.icon-remove-sign - %a.four.columns.alpha.button{ href: "#{new_admin_payment_method_path}", ng: { class: "paymentMethodsColor()" } } - CREATE NEW - %span.icon-arrow-right - diff --git a/app/views/admin/enterprises/_sidebar_shipping_methods.html.haml b/app/views/admin/enterprises/_sidebar_shipping_methods.html.haml deleted file mode 100644 index 3e9a0434c0..0000000000 --- a/app/views/admin/enterprises/_sidebar_shipping_methods.html.haml +++ /dev/null @@ -1,23 +0,0 @@ -.sidebar_item.four.columns.alpha#shipping_methods{ ng: { show: 'Enterprise.sells != "none"' } } - .four.columns.alpha.header{ ng: { class: "shippingMethodsColor()" } } - %span.four.columns.alpha.centered Shipping Methods - .four.columns.alpha.list{ ng: { class: "shippingMethodsColor()" } } - - if @shipping_methods.count > 0 - - @shipping_methods.each do |shipping_method| - %span.four.columns.alpha.list-item{ class: "#{cycle('odd','even')}", ng: { controller: 'shippingMethodCtrl', init: "findShippingMethodByID(#{shipping_method.id})" } } - %span.four.columns - %span.three.columns.alpha - %label - = f.check_box :shipping_method_ids, { :multiple => true, 'ng-model' => 'ShippingMethod.selected' }, shipping_method.id, nil - = shipping_method.name - %a.one.columns.omega{ href: "#{edit_admin_shipping_method_path(shipping_method)}" } - %span.one.column.alpha.icon-arrow-right - - else - .four.columns.alpha.list-item - %span.three.columns.alpha None Available - %span.one.column.omega - %span.icon-remove-sign - %a.four.columns.alpha.button{ href: "#{new_admin_shipping_method_path}", ng: { class: "shippingMethodsColor()" } } - CREATE NEW - %span.icon-arrow-right -