From d0e013c1a581bf9fe95f67fff7a4fe9730dd879a Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 11 Dec 2014 14:50:29 +1100 Subject: [PATCH] Removing obsolete checkout views --- .../spree/checkout/_distributor.html.haml | 4 --- .../_other_available_distributors.html.erb | 13 ------- app/views/spree/checkout/_summary.html.erb | 36 ------------------- .../spree/checkout/payment/_gateway.html.haml | 25 ------------- .../spree/checkout/payment/_paypal.html.haml | 0 5 files changed, 78 deletions(-) delete mode 100644 app/views/spree/checkout/_distributor.html.haml delete mode 100644 app/views/spree/checkout/_other_available_distributors.html.erb delete mode 100644 app/views/spree/checkout/_summary.html.erb delete mode 100644 app/views/spree/checkout/payment/_gateway.html.haml delete mode 100644 app/views/spree/checkout/payment/_paypal.html.haml diff --git a/app/views/spree/checkout/_distributor.html.haml b/app/views/spree/checkout/_distributor.html.haml deleted file mode 100644 index 24f656709b..0000000000 --- a/app/views/spree/checkout/_distributor.html.haml +++ /dev/null @@ -1,4 +0,0 @@ -.columns.omega.six - %fieldset#shipping - %legend Distributor - = render 'enterprises/distributor_details', :distributor => @order.distributor diff --git a/app/views/spree/checkout/_other_available_distributors.html.erb b/app/views/spree/checkout/_other_available_distributors.html.erb deleted file mode 100644 index 765c71640a..0000000000 --- a/app/views/spree/checkout/_other_available_distributors.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -<% if @order.state == 'address' %> -
- <% unless alternative_available_distributors(@order).empty? %> - <%= form_for(@order) do |f| %> - <%= f.label :distributor_label, "Alternative distributors for this order:" %> - <%= f.select :distributor_id, options_for_select( enterprises_options(alternative_available_distributors(@order)) ) %> - <%= f.submit "Change Distributor" %> - <% end %> - <% else %> - No alternative distributors available. - <% end %> -
-<% end %> diff --git a/app/views/spree/checkout/_summary.html.erb b/app/views/spree/checkout/_summary.html.erb deleted file mode 100644 index 125254177e..0000000000 --- a/app/views/spree/checkout/_summary.html.erb +++ /dev/null @@ -1,36 +0,0 @@ - -

<%= t(:order_summary) %>

- - - - - - - - - - <% adjustments = checkout_adjustments_for_summary(order) %> - <% adjustments.each do |adjustment| %> - - - - - <% end %> - - - - - - - <% if order.price_adjustment_totals.present? %> - - <% @order.price_adjustment_totals.each do |label, total| %> - - - - - <% end %> - - <% end %> - -
<%= t(:item_total) %>:<%= order.display_item_total %>
<%= adjustment.label %>: <%= adjustment.display_amount.to_html %>
<%= t(:order_total) %>:<%= @order.display_total.to_html %>
<%= label %><%= total %>
diff --git a/app/views/spree/checkout/payment/_gateway.html.haml b/app/views/spree/checkout/payment/_gateway.html.haml deleted file mode 100644 index 0b801cb420..0000000000 --- a/app/views/spree/checkout/payment/_gateway.html.haml +++ /dev/null @@ -1,25 +0,0 @@ -.row - .small-6.columns - %label - First Name - %input{type: :text, disabled: true, "ng-value" => "order.bill_address.firstname"} - - .small-6.columns - %label - Last Name - %input{type: :text, disabled: true, "ng-value" => "order.bill_address.lastname"} - - .small-6.columns - = validated_input "Card Number", "secrets.card_number", required: true, maxlength: 19, autocomplete: "off" - .small-6.columns - = validated_input "Security Code", "secrets.card_verification_value", required: true - -.row - .small-12.columns - %label{for: "secrets.card_month"} Expiry Date - -.row - .small-6.columns - %select{"ng-model" => "secrets.card_month", "ng-options" => "currMonth.value as currMonth.key for currMonth in months", name: "secrets.card_month", required: true} - .small-6.columns - %select{"ng-model" => "secrets.card_year", "ng-options" => "year for year in years", name: "secrets.card_year", required: true} diff --git a/app/views/spree/checkout/payment/_paypal.html.haml b/app/views/spree/checkout/payment/_paypal.html.haml deleted file mode 100644 index e69de29bb2..0000000000