spree_backend 3.7.14.1 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/app/assets/javascripts/spree/backend.js +2 -1
- data/app/assets/javascripts/spree/backend/admin.js +75 -66
- data/app/assets/javascripts/spree/backend/calculator.js +3 -3
- data/app/assets/javascripts/spree/backend/gateway.js +1 -1
- data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +23 -24
- data/app/assets/javascripts/spree/backend/promotions.js +4 -4
- data/app/assets/javascripts/spree/backend/shipments.js +32 -33
- data/app/assets/javascripts/spree/backend/taxonomy.js +75 -72
- data/app/assets/stylesheets/spree/backend/components/_badges.scss +46 -0
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +7 -23
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +16 -6
- data/app/assets/stylesheets/spree/backend/components/_main.scss +4 -6
- data/app/assets/stylesheets/spree/backend/components/_navbar.scss +21 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +2 -10
- data/app/assets/stylesheets/spree/backend/components/_page_header.scss +0 -23
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +25 -69
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +53 -12
- data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +2 -2
- data/app/assets/stylesheets/spree/backend/global/_variables.scss +10 -13
- data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +33 -20
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +23 -18
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +0 -8
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +5 -38
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +3 -6
- data/app/controllers/spree/admin/customer_returns_controller.rb +2 -2
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
- data/app/controllers/spree/admin/orders_controller.rb +2 -2
- data/app/controllers/spree/admin/payment_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +2 -2
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/return_authorizations_controller.rb +1 -1
- data/app/controllers/spree/admin/stores_controller.rb +5 -0
- data/app/controllers/spree/admin/taxons_controller.rb +1 -1
- data/app/controllers/spree/admin/users_controller.rb +2 -2
- data/app/helpers/spree/admin/base_helper.rb +9 -4
- data/app/helpers/spree/admin/customer_returns_helper.rb +1 -1
- data/app/helpers/spree/admin/navigation_helper.rb +41 -25
- data/app/helpers/spree/admin/orders_helper.rb +2 -2
- data/app/views/kaminari/{_first_page.html.erb → twitter-bootstrap-4/_first_page.html.erb} +5 -3
- data/app/views/kaminari/{_gap.html.erb → twitter-bootstrap-4/_gap.html.erb} +5 -1
- data/app/views/kaminari/{_last_page.html.erb → twitter-bootstrap-4/_last_page.html.erb} +5 -3
- data/app/views/kaminari/{_next_page.html.erb → twitter-bootstrap-4/_next_page.html.erb} +5 -7
- data/app/views/kaminari/{_page.html.erb → twitter-bootstrap-4/_page.html.erb} +8 -2
- data/app/views/kaminari/{_paginator.html.erb → twitter-bootstrap-4/_paginator.html.erb} +3 -1
- data/app/views/kaminari/{_prev_page.html.erb → twitter-bootstrap-4/_prev_page.html.erb} +5 -7
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +14 -4
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +6 -6
- data/app/views/spree/admin/adjustments/index.html.erb +7 -5
- data/app/views/spree/admin/countries/_form.html.erb +13 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +2 -2
- data/app/views/spree/admin/general_settings/edit.html.erb +14 -14
- data/app/views/spree/admin/images/_form.html.erb +2 -2
- data/app/views/spree/admin/images/edit.html.erb +6 -6
- data/app/views/spree/admin/option_types/_form.html.erb +2 -2
- data/app/views/spree/admin/option_types/edit.html.erb +5 -5
- data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -5
- data/app/views/spree/admin/orders/_add_product.html.erb +5 -5
- data/app/views/spree/admin/orders/_adjustments.html.erb +4 -3
- data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +3 -3
- data/app/views/spree/admin/orders/_shipment.html.erb +5 -5
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +17 -17
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +4 -4
- data/app/views/spree/admin/orders/index.html.erb +56 -33
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -4
- data/app/views/spree/admin/payments/_list.html.erb +3 -3
- data/app/views/spree/admin/payments/index.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +10 -2
- data/app/views/spree/admin/products/_add_stock_form.html.erb +6 -6
- data/app/views/spree/admin/products/_form.html.erb +26 -31
- data/app/views/spree/admin/products/edit.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +5 -5
- data/app/views/spree/admin/products/new.html.erb +5 -5
- data/app/views/spree/admin/products/stock.html.erb +3 -3
- data/app/views/spree/admin/promotions/_actions.html.erb +4 -4
- data/app/views/spree/admin/promotions/_form.html.erb +7 -7
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +4 -4
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +12 -5
- data/app/views/spree/admin/promotions/_rules.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +5 -5
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +3 -3
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +10 -6
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +10 -6
- data/app/views/spree/admin/promotions/edit.html.erb +5 -5
- data/app/views/spree/admin/promotions/index.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_country.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +4 -4
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +8 -8
- data/app/views/spree/admin/promotions/rules/_product.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +2 -2
- data/app/views/spree/admin/promotions/rules/_user.html.erb +2 -2
- data/app/views/spree/admin/properties/_form.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +10 -2
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +6 -6
- data/app/views/spree/admin/reports/sales_total.html.erb +4 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
- data/app/views/spree/admin/return_index/customer_returns.html.erb +3 -3
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +15 -9
- data/app/views/spree/admin/shared/_account_nav.html.erb +60 -48
- data/app/views/spree/admin/shared/_address_form.html.erb +11 -4
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -4
- data/app/views/spree/admin/shared/_content_header.html.erb +4 -4
- data/app/views/spree/admin/shared/_header.html.erb +18 -21
- data/app/views/spree/admin/shared/_index_table_options.html.erb +4 -5
- data/app/views/spree/admin/shared/_main_menu.html.erb +37 -35
- data/app/views/spree/admin/shared/_order_summary.html.erb +6 -7
- data/app/views/spree/admin/shared/_order_tabs.html.erb +47 -20
- data/app/views/spree/admin/shared/_product_tabs.html.erb +35 -11
- data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
- data/app/views/spree/admin/shared/_table_filter.html.erb +7 -5
- data/app/views/spree/admin/shared/_version.html.erb +4 -2
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_configuration.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_product.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_promotion.html.erb +1 -1
- data/app/views/spree/admin/shared/sub_menu/_returns.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +21 -21
- data/app/views/spree/admin/states/_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/_form.html.erb +6 -6
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/index.html.erb +34 -32
- data/app/views/spree/admin/stock_transfers/new.html.erb +13 -11
- data/app/views/spree/admin/stores/_form.html.erb +5 -6
- data/app/views/spree/admin/stores/index.html.erb +3 -1
- data/app/views/spree/admin/tax_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/_form.html.erb +11 -9
- data/app/views/spree/admin/taxons/_form.html.erb +4 -4
- data/app/views/spree/admin/users/_addresses_form.html.erb +10 -10
- data/app/views/spree/admin/users/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +3 -3
- data/app/views/spree/admin/users/_sidebar.html.erb +26 -11
- data/app/views/spree/admin/users/addresses.html.erb +4 -2
- data/app/views/spree/admin/users/edit.html.erb +8 -8
- data/app/views/spree/admin/users/index.html.erb +3 -3
- data/app/views/spree/admin/users/items.html.erb +2 -2
- data/app/views/spree/admin/users/orders.html.erb +2 -2
- data/app/views/spree/admin/variants/_autocomplete.js.erb +5 -5
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +1 -1
- data/app/views/spree/admin/variants/_form.html.erb +2 -2
- data/app/views/spree/admin/variants/_split.js.erb +3 -3
- data/app/views/spree/admin/variants/index.html.erb +2 -2
- data/app/views/spree/admin/variants/new.html.erb +8 -6
- data/app/views/spree/admin/zones/_country_members.html.erb +4 -4
- data/app/views/spree/admin/zones/_form.html.erb +9 -9
- data/app/views/spree/admin/zones/_state_members.html.erb +4 -4
- data/app/views/spree/admin/zones/index.html.erb +2 -2
- data/app/views/spree/layouts/admin.html.erb +9 -6
- data/lib/spree/backend.rb +3 -2
- data/lib/spree_backend.rb +2 -1
- data/spree_backend.gemspec +3 -2
- metadata +39 -27
- data/app/assets/stylesheets/spree/backend/components/_labels.scss +0 -55
- data/app/assets/stylesheets/spree/backend/components/_panels.scss +0 -3
- data/app/assets/stylesheets/spree/backend/components/_wells.scss +0 -3
- data/app/assets/stylesheets/spree/backend/sections/_account.scss +0 -20
@@ -1,13 +1,14 @@
|
|
1
1
|
<div data-hook="admin_tax_rate_form_fields">
|
2
|
-
<div class="
|
3
|
-
<div class="
|
4
|
-
<h1 class="
|
2
|
+
<div class="card mb-3" data-hook="tax_rates">
|
3
|
+
<div class="card-header">
|
4
|
+
<h1 class="card-title mb-0 h5">
|
5
5
|
<%= Spree.t(:general_settings) %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
|
-
<div class="
|
10
|
-
<div class="
|
9
|
+
<div class="card-body">
|
10
|
+
<div class="row">
|
11
|
+
<div class="col-12 col-lg-6">
|
11
12
|
<div data-hook="name" class="form-group">
|
12
13
|
<%= f.label :name, Spree.t(:name) %>
|
13
14
|
<%= f.text_field :name, class: 'form-control' %>
|
@@ -17,10 +18,10 @@
|
|
17
18
|
<%= f.label :amount, Spree.t(:rate) %>
|
18
19
|
<%= f.text_field :amount, class: 'form-control' %>
|
19
20
|
<%= f.error_message_on :amount %>
|
21
|
+
<small class="form-text text-muted">
|
22
|
+
<%= Spree.t(:tax_rate_amount_explanation) %>
|
23
|
+
</small>
|
20
24
|
<% end %>
|
21
|
-
<p class="help-block">
|
22
|
-
<%= Spree.t(:tax_rate_amount_explanation) %>
|
23
|
-
</p>
|
24
25
|
</div>
|
25
26
|
<div data-hook="included" class="form-group">
|
26
27
|
<%= f.label :included_in_price do %>
|
@@ -30,7 +31,7 @@
|
|
30
31
|
</div>
|
31
32
|
</div>
|
32
33
|
|
33
|
-
<div class="col-
|
34
|
+
<div class="col-12 col-lg-6">
|
34
35
|
<div data-hook="zone" class="form-group">
|
35
36
|
<%= f.label :zone, Spree.t(:zone) %>
|
36
37
|
<%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {class: 'select2'}) %>
|
@@ -46,6 +47,7 @@
|
|
46
47
|
<% end %>
|
47
48
|
</div>
|
48
49
|
</div>
|
50
|
+
</div>
|
49
51
|
</div>
|
50
52
|
|
51
53
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div data-hook="admin_inside_taxon_form">
|
2
2
|
<div class="row">
|
3
|
-
<div class="col-
|
3
|
+
<div class="col-12 col-md-5">
|
4
4
|
<%= f.field_container :name, class: ['form-group'] do %>
|
5
5
|
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
|
6
6
|
<%= text_field :taxon, :name, class: 'form-control' %>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<%= f.field_container :permalink, class: ['form-group'] do %>
|
11
11
|
<%= label_tag :permalink_part, Spree.t(:permalink) %> <span class="required">*</span>
|
12
12
|
<%= text_field_tag :permalink_part, @permalink_part, class: 'form-control', required: true %>
|
13
|
-
<
|
13
|
+
<small class="form-text text-muted" id="permalink_part_display">
|
14
14
|
<%= @taxon.permalink.split('/')[0...-1].join('/') + '/' %>
|
15
|
-
</
|
15
|
+
</small>
|
16
16
|
<% end %>
|
17
17
|
|
18
18
|
<%= f.field_container :icon, class: ['form-group'] do %>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<% end %>
|
23
23
|
</div>
|
24
24
|
|
25
|
-
<div class="col-
|
25
|
+
<div class="col-12 col-md-7">
|
26
26
|
<%= f.field_container :description, class: ['form-group'] do %>
|
27
27
|
<%= f.label :description, Spree.t(:description) %>
|
28
28
|
<%= f.text_area :description, class: 'form-control', rows: 6 %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<div class="row">
|
2
|
-
<div data-hook="bill_address_wrapper" class="col-
|
3
|
-
<div class="
|
4
|
-
<div class="
|
5
|
-
<h1 class="
|
2
|
+
<div data-hook="bill_address_wrapper" class="col-12 col-lg-6">
|
3
|
+
<div class="card mb-3">
|
4
|
+
<div class="card-header">
|
5
|
+
<h1 class="card-title mb-0 h5">
|
6
6
|
<%= Spree.t(:billing_address) %>
|
7
7
|
</h1>
|
8
8
|
</div>
|
9
9
|
|
10
|
-
<div class="
|
10
|
+
<div class="card-body">
|
11
11
|
<%= f.fields_for :bill_address, (@user.bill_address || Spree::Address.default(@user, "bill")) do |ba_form| %>
|
12
12
|
<% ba_form.object ||= Spree::Address.new(country: Spree::Country.new) %>
|
13
13
|
<%= render partial: 'spree/admin/shared/address_form', locals: { f: ba_form, type: "billing" } %>
|
@@ -16,15 +16,15 @@
|
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
|
19
|
-
<div data-hook="ship_address_wrapper" class="col-
|
20
|
-
<div class="
|
21
|
-
<div class="
|
22
|
-
<h1 class="
|
19
|
+
<div data-hook="ship_address_wrapper" class="col-12 col-lg-6">
|
20
|
+
<div class="card mb-3">
|
21
|
+
<div class="card-header">
|
22
|
+
<h1 class="card-title mb-0 h5">
|
23
23
|
<%= Spree.t(:shipping_address) %>
|
24
24
|
</h1>
|
25
25
|
</div>
|
26
26
|
|
27
|
-
<div class="
|
27
|
+
<div class="card-body">
|
28
28
|
<p class="field checkbox" data-hook="use_billing">
|
29
29
|
<%= label_tag :use_billing, id: 'use_billing' do %>
|
30
30
|
<% checked = @user.bill_address.nil? ? false : @user.bill_address == @user.ship_address %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div data-hook="admin_user_form_fields" class="row">
|
2
|
-
<div class="col-
|
2
|
+
<div class="col-12 col-md-6">
|
3
3
|
<%= f.field_container :email, class: ['form-group'] do %>
|
4
4
|
<%= f.label :email, Spree.t(:email) %>
|
5
5
|
<%= f.email_field :email, class: 'form-control' %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
</div>
|
22
22
|
|
23
|
-
<div data-hook="admin_user_form_password_fields" class="col-
|
23
|
+
<div data-hook="admin_user_form_password_fields" class="col-12 col-md-6">
|
24
24
|
<%= f.field_container :password, class: ['form-group'] do %>
|
25
25
|
<%= f.label :password, Spree.t(:password) %>
|
26
26
|
<%= f.password_field :password, class: 'form-control' %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<div data-hook="admin_user_lifetime_stats" class="
|
2
|
-
<div class="
|
3
|
-
<h1 class="
|
1
|
+
<div data-hook="admin_user_lifetime_stats" class="card mb-3">
|
2
|
+
<div class="card-header">
|
3
|
+
<h1 class="card-title mb-0 h5">
|
4
4
|
<%= Spree.t(:lifetime_stats) %>
|
5
5
|
</h1>
|
6
6
|
</div>
|
@@ -3,21 +3,36 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :sidebar do %>
|
6
|
-
<ul class="nav
|
7
|
-
<li
|
8
|
-
<%= link_to_with_icon 'user',
|
6
|
+
<ul class="nav flex-column nav-pills" data-hook="admin_user_tab_options">
|
7
|
+
<li>
|
8
|
+
<%= link_to_with_icon 'user',
|
9
|
+
Spree.t(:"admin.user.account"),
|
10
|
+
spree.edit_admin_user_path(@user),
|
11
|
+
class: "nav-link #{'active' if current == :account}" %>
|
9
12
|
</li>
|
10
|
-
<li
|
11
|
-
<%= link_to_with_icon 'user',
|
13
|
+
<li>
|
14
|
+
<%= link_to_with_icon 'user',
|
15
|
+
Spree.t(:"admin.user.addresses"),
|
16
|
+
spree.addresses_admin_user_path(@user),
|
17
|
+
class: "nav-link #{'active' if current == :address}" %>
|
12
18
|
</li>
|
13
|
-
<li
|
14
|
-
<%= link_to_with_icon 'shopping-cart',
|
19
|
+
<li>
|
20
|
+
<%= link_to_with_icon 'shopping-cart',
|
21
|
+
Spree.t(:"admin.user.orders"),
|
22
|
+
spree.orders_admin_user_path(@user),
|
23
|
+
class: "nav-link #{'active' if current == :orders}" %>
|
15
24
|
</li>
|
16
|
-
<li
|
17
|
-
<%= link_to_with_icon 'edit',
|
25
|
+
<li>
|
26
|
+
<%= link_to_with_icon 'edit',
|
27
|
+
Spree.t(:"admin.user.items"),
|
28
|
+
spree.items_admin_user_path(@user),
|
29
|
+
class: "nav-link #{'active' if current == :items}" %>
|
18
30
|
</li>
|
19
|
-
<li
|
20
|
-
<%= link_to_with_icon 'money',
|
31
|
+
<li>
|
32
|
+
<%= link_to_with_icon 'money',
|
33
|
+
Spree.t(:"admin.user.store_credits"),
|
34
|
+
spree.admin_user_store_credits_path(@user),
|
35
|
+
class: "nav-link #{'active' if current == :store_credits}" %>
|
21
36
|
</li>
|
22
37
|
</ul>
|
23
38
|
<% end %>
|
@@ -16,8 +16,10 @@
|
|
16
16
|
|
17
17
|
<%= render partial: 'addresses_form', locals: { f: f } %>
|
18
18
|
|
19
|
-
<div class="form-actions text-center
|
20
|
-
|
19
|
+
<div class="form-actions text-center card bg-light mb-3" data-hook="admin_user_edit_form_button">
|
20
|
+
<div class="card-body">
|
21
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: spree.admin_users_url } %>
|
22
|
+
</div>
|
21
23
|
</div>
|
22
24
|
<% end %>
|
23
25
|
</div>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<%= @user.email %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<div data-hook="admin_user_edit_general_settings" class="
|
9
|
-
<div class="
|
10
|
-
<h1 class="
|
8
|
+
<div data-hook="admin_user_edit_general_settings" class="card mb-3">
|
9
|
+
<div class="card-header">
|
10
|
+
<h1 class="card-title mb-0 h5">
|
11
11
|
<%= Spree.t(:general_settings) %>
|
12
12
|
</h1>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<div class="
|
15
|
+
<div class="card-body">
|
16
16
|
<div data-hook="admin_user_edit_form_header">
|
17
17
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @user } %>
|
18
18
|
</div>
|
@@ -29,14 +29,14 @@
|
|
29
29
|
</div>
|
30
30
|
</div>
|
31
31
|
|
32
|
-
<div data-hook="admin_user_api_key" id="admin_user_edit_api_key" class="
|
33
|
-
<div class="
|
34
|
-
<h1 class="
|
32
|
+
<div data-hook="admin_user_api_key" id="admin_user_edit_api_key" class="card mb-3">
|
33
|
+
<div class="card-header">
|
34
|
+
<h1 class="card-title mb-0 h5">
|
35
35
|
<%= Spree.t('access', scope: 'api') %>
|
36
36
|
</h1>
|
37
37
|
</div>
|
38
38
|
|
39
|
-
<div class="
|
39
|
+
<div class="card-body">
|
40
40
|
<% if @user.spree_api_key.present? %>
|
41
41
|
<div class="form-group">
|
42
42
|
<div id="current-api-key">
|
@@ -18,13 +18,13 @@
|
|
18
18
|
<%= f.text_field :email_cont, class: "form-control js-quick-search-target js-filterable" %>
|
19
19
|
</div>
|
20
20
|
<div class="row">
|
21
|
-
<div class="col-
|
21
|
+
<div class="col-12 col-lg-6">
|
22
22
|
<div class="form-group">
|
23
23
|
<%= f.label :bill_address_firstname_cont, Spree.t(:first_name) %>
|
24
24
|
<%= f.text_field :bill_address_firstname_cont, class: 'form-control js-filterable' %>
|
25
25
|
</div>
|
26
26
|
</div>
|
27
|
-
<div class="col-
|
27
|
+
<div class="col-12 col-lg-6">
|
28
28
|
<div class="form-group">
|
29
29
|
<%= f.label :bill_address_lastname_cont, Spree.t(:last_name) %>
|
30
30
|
<%= f.text_field :bill_address_lastname_cont, class: 'form-control js-filterable' %>
|
@@ -71,4 +71,4 @@
|
|
71
71
|
</div>
|
72
72
|
<% end %>
|
73
73
|
|
74
|
-
<%= paginate @users %>
|
74
|
+
<%= paginate @users, theme: 'twitter-bootstrap-4' %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<fieldset data-hook="admin_user_items_purchased">
|
10
|
-
<%= paginate @orders %>
|
10
|
+
<%= paginate @orders, theme: 'twitter-bootstrap-4' %>
|
11
11
|
|
12
12
|
<% if @orders.any? %>
|
13
13
|
<%# TODO add search interface %>
|
@@ -60,7 +60,7 @@
|
|
60
60
|
<%= link_to Spree.t(:add_one), spree.new_admin_order_path %>!
|
61
61
|
</div>
|
62
62
|
<% end %>
|
63
|
-
<%= paginate @orders %>
|
63
|
+
<%= paginate @orders, theme: 'twitter-bootstrap-4' %>
|
64
64
|
</fieldset>
|
65
65
|
|
66
66
|
<%= render 'spree/admin/users/lifetime_stats' %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<fieldset data-hook="admin_user_order_history">
|
10
|
-
<%= paginate @orders %>
|
10
|
+
<%= paginate @orders, theme: 'twitter-bootstrap-4' %>
|
11
11
|
|
12
12
|
<% if @orders.any? %>
|
13
13
|
<%# TODO add search interface %>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
</div>
|
47
47
|
<% end %>
|
48
48
|
|
49
|
-
<%= paginate @orders %>
|
49
|
+
<%= paginate @orders, theme: 'twitter-bootstrap-4' %>
|
50
50
|
</fieldset>
|
51
51
|
|
52
52
|
<%= render 'spree/admin/users/lifetime_stats' %>
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<script type='text/template' id='variant_autocomplete_template'>
|
2
|
-
<div class='variant-autocomplete-item media'>
|
3
|
-
<figure class='variant-image media-left'>
|
2
|
+
<div class='variant-autocomplete-item media align-items-center'>
|
3
|
+
<figure class='variant-image media-left mb-0 mr-3'>
|
4
4
|
{{#if variant.image }}
|
5
|
-
<img src='{{variant.image}}' class="thumbnail
|
5
|
+
<img src='{{variant.image}}' class="thumbnail mb-0" />
|
6
6
|
{{ else }}
|
7
|
-
<img src='<%= image_path("noimage/mini.png") %>' class="thumbnail
|
7
|
+
<img src='<%= image_path("noimage/mini.png") %>' class="thumbnail mb-0" />
|
8
8
|
{{/if}}
|
9
9
|
</figure>
|
10
10
|
|
11
11
|
<div class='variant-details media-body'>
|
12
|
-
<h5 class="variant-name media-heading">{{variant.name}}</h5>
|
12
|
+
<h5 class="variant-name media-heading h6 mb-0">{{variant.name}}</h5>
|
13
13
|
{{#if variant.option_values}}
|
14
14
|
{{#each variant.option_values}}
|
15
15
|
<strong>{{this.option_type_presentation}}:</strong> {{this.presentation}}<br/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<script type='text/template' id='variant_autocomplete_stock_template'>
|
2
2
|
|
3
3
|
<label><%= Spree.t(:select_stock) %></label>
|
4
|
-
<table class="table table-condensed table-bordered stock-levels
|
4
|
+
<table class="table table-condensed table-bordered stock-levels mb-0" data-hook="stock-levels">
|
5
5
|
<thead>
|
6
6
|
<th><%= Spree.t(:location) %></th>
|
7
7
|
<th><%= Spree.t(:count_on_hand) %></th>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="row">
|
2
|
-
<div data-hook="admin_variant_form_fields" class="col-
|
2
|
+
<div data-hook="admin_variant_form_fields" class="col-12 col-md-6">
|
3
3
|
<div data-hook="variants">
|
4
4
|
<% @product.option_types.each do |option_type| %>
|
5
5
|
<div class="form-group" data-hook="presentation">
|
@@ -38,7 +38,7 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
|
41
|
-
<div class="col-
|
41
|
+
<div class="col-12 col-md-6" data-hook="admin_variant_form_additional_fields">
|
42
42
|
<% [:weight, :height, :width, :depth].each do |field| %>
|
43
43
|
<div class="form-group" data-hook="<%= field %>"><%= f.label field, Spree.t(field) %>
|
44
44
|
<% value = number_with_precision(@variant.send(field), precision: 2) %>
|
@@ -21,11 +21,11 @@
|
|
21
21
|
<td>
|
22
22
|
<input class="quantity form-control" id="item_quantity" type="number" min="1" value="1" max="{{max_quantity}}">
|
23
23
|
</td>
|
24
|
-
<td class='actions'>
|
25
|
-
<a href='#' class='cancel-split with-tip btn btn-sm btn-
|
24
|
+
<td class='actions text-center'>
|
25
|
+
<a href='#' class='cancel-split with-tip btn btn-sm btn-outline-secondary' title='Cancel'>
|
26
26
|
<span class="icon icon-arrow-left"></span>
|
27
27
|
</a>
|
28
|
-
<a href='#' class='save-split with-tip btn btn-sm btn-success' title='Save'>
|
28
|
+
<a href='#' class='icon-save-split save-split with-tip btn btn-sm btn-success' title='Save'>
|
29
29
|
<span class="icon icon-save"></span>
|
30
30
|
</a>
|
31
31
|
</td>
|
@@ -51,7 +51,7 @@
|
|
51
51
|
<p class='first_add_option_types no-objects-found' data-hook="first_add_option_types">
|
52
52
|
<%= Spree.t(:to_add_variants_you_must_first_define) %>
|
53
53
|
<%= link_to(Spree.t(:option_types), spree.admin_product_url(@product)) %>
|
54
|
-
<% if can?(:
|
54
|
+
<% if can?(:read, Spree::OptionType) && can?([:create, :read], Spree::OptionValue) %>
|
55
55
|
<%= Spree.t(:and) %>
|
56
56
|
<%= link_to Spree.t(:option_values), spree.admin_option_types_url %>
|
57
57
|
<% end %>
|
@@ -60,6 +60,6 @@
|
|
60
60
|
<% else %>
|
61
61
|
<% content_for :page_actions do %>
|
62
62
|
<%= button_link_to(Spree.t(:new_variant), spree.new_admin_product_variant_url(@product), { remote: :true, icon: 'add', :'data-update' => 'new_variant', class: 'btn-success', id: 'new_var_link' }) if can? :create, Spree::Variant %>
|
63
|
-
<%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), { class: 'btn-
|
63
|
+
<%= button_link_to (@deleted.blank? ? Spree.t(:show_deleted) : Spree.t(:show_active)), spree.admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), { class: 'btn-outline-secondary', icon: 'filter' } %>
|
64
64
|
<% end %>
|
65
65
|
<% end %>
|
@@ -1,11 +1,13 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @variant } %>
|
2
2
|
|
3
3
|
<%= form_for [:admin, @product, @variant] do |f| %>
|
4
|
-
<div class="
|
5
|
-
<
|
6
|
-
<
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
<div class="card mb-3 bg-light">
|
5
|
+
<div class="card-body">
|
6
|
+
<fieldset data-hook="admin_variant_new_form">
|
7
|
+
<legend class="border-bottom"><%= Spree.t(:new_variant) %></legend>
|
8
|
+
<%= render partial: 'form', locals: { f: f } %>
|
9
|
+
<%= render partial: 'spree/admin/shared/new_resource_links' %>
|
10
|
+
</fieldset>
|
11
|
+
</div>
|
10
12
|
</div>
|
11
13
|
<% end %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<div id="country_members" data-hook="member">
|
2
|
-
<div class="
|
3
|
-
<div class="
|
4
|
-
<h1 class="
|
2
|
+
<div class="card mb-3">
|
3
|
+
<div class="card-header">
|
4
|
+
<h1 class="card-title mb-0 h5">
|
5
5
|
<%= Spree.t(:countries) %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
8
8
|
|
9
|
-
<div class="
|
9
|
+
<div class="card-body">
|
10
10
|
<%= zone_form.field_container :country_ids, class: ['form-group'] do %>
|
11
11
|
<%= zone_form.label :country_ids, Spree.t(:countries) %>
|
12
12
|
<%= zone_form.collection_select :country_ids, @countries, :id, :name, {}, { multiple: true, class: "select2" } %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<div class="row">
|
2
|
-
<div class="col-
|
3
|
-
<div class="
|
4
|
-
<div class="
|
5
|
-
<h1 class="
|
2
|
+
<div class="col-12 col-lg-6" data-hook="admin_zone_form_fields">
|
3
|
+
<div class="card mb-3">
|
4
|
+
<div class="card-header">
|
5
|
+
<h1 class="card-title mb-0 h5"><%= Spree.t(:general_settings)%></h1>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<div class="
|
8
|
+
<div class="card-body">
|
9
9
|
<%= zone_form.field_container :name, class: ['form-group'] do %>
|
10
10
|
<%= zone_form.label :name, Spree.t(:name) %>
|
11
11
|
<%= zone_form.text_field :name, class: 'form-control' %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<%= zone_form.text_field :description, class: 'form-control' %>
|
18
18
|
<% end %>
|
19
19
|
|
20
|
-
<div data-hook="default" class="checkbox">
|
20
|
+
<div data-hook="default" class="form-group checkbox">
|
21
21
|
<%= label_tag "zone[#{:default_tax}" do %>
|
22
22
|
<%= zone_form.check_box :default_tax %>
|
23
23
|
<%= Spree.t(:default_tax_zone) %>
|
@@ -26,13 +26,13 @@
|
|
26
26
|
|
27
27
|
<div data-hook="type" class="form-group">
|
28
28
|
<strong><%= Spree.t(:type) %></strong>
|
29
|
-
<div class="radio">
|
29
|
+
<div class="radio my-2">
|
30
30
|
<%= label_tag :country_based do %>
|
31
31
|
<%= zone_form.radio_button('kind', 'country', { id: 'country_based' }) %>
|
32
32
|
<%= Spree.t(:country_based) %>
|
33
33
|
<% end %>
|
34
34
|
</div>
|
35
|
-
<div class="radio">
|
35
|
+
<div class="radio my-2">
|
36
36
|
<%= label_tag :state_based do %>
|
37
37
|
<%= zone_form.radio_button('kind', 'state', { id: 'state_based' }) %>
|
38
38
|
<%= Spree.t(:state_based) %>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
</div>
|
43
43
|
</div>
|
44
44
|
</div>
|
45
|
-
<div class="col-
|
45
|
+
<div class="col-12 col-lg-6">
|
46
46
|
<%= render partial: 'state_members', locals: { zone_form: zone_form }%>
|
47
47
|
<%= render partial: 'country_members', locals: { zone_form: zone_form } %>
|
48
48
|
</div>
|