diff --git a/app/views/spree/checkout/_distributor.html.haml b/app/views/spree/checkout/_distributor.html.haml new file mode 100644 index 0000000000..24f656709b --- /dev/null +++ b/app/views/spree/checkout/_distributor.html.haml @@ -0,0 +1,4 @@ +.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 new file mode 100644 index 0000000000..765c71640a --- /dev/null +++ b/app/views/spree/checkout/_other_available_distributors.html.erb @@ -0,0 +1,13 @@ +<% 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 new file mode 100644 index 0000000000..125254177e --- /dev/null +++ b/app/views/spree/checkout/_summary.html.erb @@ -0,0 +1,36 @@ + +

<%= 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 new file mode 100644 index 0000000000..0b801cb420 --- /dev/null +++ b/app/views/spree/checkout/payment/_gateway.html.haml @@ -0,0 +1,25 @@ +.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 new file mode 100644 index 0000000000..e69de29bb2