diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-17 12:38:09 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-17 13:51:24 +0200 |
commit | 8bea4e0941f05ddd2d2abf4f4dc2bcad4a892f36 (patch) | |
tree | 70cbb4aee03771883adc057c6792bbeb05e1c70e /app/views | |
parent | 55c4c8a3b921b2017122f589ad07bda4fe4d7bf6 (diff) |
Allow admins to set a subscription's billing address
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/spree/admin/subscriptions/_form.html.erb | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/app/views/spree/admin/subscriptions/_form.html.erb b/app/views/spree/admin/subscriptions/_form.html.erb index ee67d2b..30513dd 100644 --- a/app/views/spree/admin/subscriptions/_form.html.erb +++ b/app/views/spree/admin/subscriptions/_form.html.erb @@ -53,17 +53,32 @@ </div> </fieldset> - <fieldset class="no-border-bottom"> - <legend>Shipping Address</legend> + <div class="row"> + <div class="col-6"> + <fieldset class="no-border-bottom"> + <legend align="center"><%= t('spree.shipping_address') %></legend> - <div class="js-customer-details"> - <div class="js-shipping-address"> - <%= f.fields_for :shipping_address do |sa_form| %> - <%= render partial: 'spree/admin/shared/address_form', locals: { f: sa_form, type: "shipping" } %> - <% end %> - </div> + <div class="js-customer-details"> + <div class="js-shipping-address"> + <%= f.fields_for :shipping_address do |sa_form| %> + <%= render partial: 'spree/admin/shared/address_form', locals: { f: sa_form, type: "shipping" } %> + <% end %> + </div> + </div> + </fieldset> </div> - </fieldset> + + <div class="col-6"> + <fieldset class="no-border-bottom"> + <legend align="center"><%= t('spree.billing_address') %></legend> + <div class="js-billing-address"> + <%= f.fields_for :billing_address do |ba_form| %> + <%= render partial: 'spree/admin/shared/address_form', locals: { f: ba_form, type: "billing" } %> + <% end %> + </div> + </fieldset> + </div> + </div> <fieldset> <legend><%= t('.subscription_line_items') %></legend> |