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
@@ -6,6 +6,8 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
<% unless current_page.first? %>
|
10
|
+
<li class="first page-item">
|
11
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, remote: remote, class: 'page-link' %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
@@ -5,4 +5,8 @@
|
|
5
5
|
per_page: number of items to fetch per page
|
6
6
|
remote: data-remote
|
7
7
|
-%>
|
8
|
-
<li class="gap"
|
8
|
+
<li class="page gap disabled page-item">
|
9
|
+
<a href="#" onclick="return false;" class="page-link">
|
10
|
+
<%= raw(t 'views.pagination.truncate') %>
|
11
|
+
</a>
|
12
|
+
</li>
|
@@ -6,6 +6,8 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
<% unless current_page.last? %>
|
10
|
+
<li class="last next page-item"><%# "next" class present for border styling in twitter bootstrap %>
|
11
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, remote: remote, class: 'page-link' %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
@@ -6,10 +6,8 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<% end %>
|
15
|
-
</li>
|
9
|
+
<% unless current_page.last? %>
|
10
|
+
<li class="next_page page-item">
|
11
|
+
<%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, rel: 'next', remote: remote, class: 'page-link' %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
@@ -7,6 +7,12 @@
|
|
7
7
|
per_page: number of items to fetch per page
|
8
8
|
remote: data-remote
|
9
9
|
-%>
|
10
|
-
<li class="<%= 'active' if page.current? %>">
|
11
|
-
<%= link_to page,
|
10
|
+
<li class="page<%= ' active' if page.current? %> page-item">
|
11
|
+
<%= link_to page,
|
12
|
+
url,
|
13
|
+
opts = {
|
14
|
+
remote: remote,
|
15
|
+
rel: page.next? ? 'next' : page.prev? ? 'prev' : nil,
|
16
|
+
class: 'page-link'
|
17
|
+
} %>
|
12
18
|
</li>
|
@@ -6,8 +6,10 @@
|
|
6
6
|
remote: data-remote
|
7
7
|
paginator: the paginator that renders the pagination tags inside
|
8
8
|
-%>
|
9
|
+
<% pagination_class ||= '' %>
|
10
|
+
|
9
11
|
<%= paginator.render do %>
|
10
|
-
<ul class="pagination
|
12
|
+
<ul class="pagination mt-4 <%= pagination_class %>">
|
11
13
|
<%= first_page_tag unless current_page.first? %>
|
12
14
|
<%= prev_page_tag unless current_page.first? %>
|
13
15
|
<% each_page do |page| %>
|
@@ -6,10 +6,8 @@
|
|
6
6
|
per_page: number of items to fetch per page
|
7
7
|
remote: data-remote
|
8
8
|
-%>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<% end %>
|
15
|
-
</li>
|
9
|
+
<% unless current_page.first? %>
|
10
|
+
<li class="prev page-item">
|
11
|
+
<%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, rel: 'prev', remote: remote, class: 'page-link' %>
|
12
|
+
</li>
|
13
|
+
<% end %>
|
@@ -4,10 +4,20 @@
|
|
4
4
|
%>
|
5
5
|
|
6
6
|
<tr id="<%= spree_dom_id(adjustment) %>" class="<%= adjustment.eligible? ? 'eligible' : 'ineligible' %>" data-hook="adjustment_row">
|
7
|
-
<td
|
8
|
-
|
9
|
-
|
10
|
-
<td
|
7
|
+
<td>
|
8
|
+
<%= display_adjustable(adjustment.adjustable) %>
|
9
|
+
</td>
|
10
|
+
<td>
|
11
|
+
<%= adjustment.label %>
|
12
|
+
</td>
|
13
|
+
<td class="text-center">
|
14
|
+
<%= adjustment.display_amount.to_html %>
|
15
|
+
</td>
|
16
|
+
<td class="text-center">
|
17
|
+
<span class="badge badge-<%= adjustment.state %>">
|
18
|
+
<%= adjustment.state %>
|
19
|
+
</span>
|
20
|
+
</td>
|
11
21
|
<td class="actions actions-2 text-center">
|
12
22
|
<% if adjustment.open? %>
|
13
23
|
<%= link_to_edit(adjustment, no_text: true) if can?(:edit, adjustment) %>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<div class="
|
2
|
-
<h3 class="
|
1
|
+
<div class="card-header">
|
2
|
+
<h3 class="card-title mb-0 h5"><%= Spree.t(:order_adjustments) %></h3>
|
3
3
|
</div>
|
4
4
|
|
5
5
|
<table class="table table-bordered adjustments" data-hook="adjustments">
|
@@ -18,12 +18,12 @@
|
|
18
18
|
</table>
|
19
19
|
|
20
20
|
<% if can?(:edit, Spree::Adjustment) %>
|
21
|
-
<div class="
|
22
|
-
<div class="row text-center">
|
23
|
-
<div class="col-
|
21
|
+
<div class="card-footer">
|
22
|
+
<div class="row text-center pb-0">
|
23
|
+
<div class="col-12 col-lg-6">
|
24
24
|
<%= button_to Spree.t(:open_all_adjustments), open_adjustments_admin_order_path(@order), method: :get, class: "btn btn-success" %>
|
25
25
|
</div>
|
26
|
-
<div class="col-
|
26
|
+
<div class="col-12 col-lg-6">
|
27
27
|
<%= button_to Spree.t(:close_all_adjustments), close_adjustments_admin_order_path(@order), method: :get, class: "btn btn-danger" %>
|
28
28
|
</div>
|
29
29
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<% if @adjustments.present? %>
|
12
|
-
<div class="
|
12
|
+
<div class="card mb-3">
|
13
13
|
<%= render partial: 'adjustments_table' %>
|
14
14
|
</div>
|
15
15
|
<% else %>
|
@@ -19,11 +19,13 @@
|
|
19
19
|
<% end %>
|
20
20
|
|
21
21
|
<% if @order.can_add_coupon? %>
|
22
|
-
<div class="
|
23
|
-
<div class="
|
24
|
-
|
22
|
+
<div class="card bg-light mb-3" data-hook="adjustments_new_coupon_code">
|
23
|
+
<div class="card-body">
|
24
|
+
<div class="form-group">
|
25
|
+
<%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
|
26
|
+
</div>
|
27
|
+
<%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
|
25
28
|
</div>
|
26
|
-
<%= button Spree.t(:add_coupon_code), 'plus', 'submit', id: "add_coupon_code" %>
|
27
29
|
</div>
|
28
30
|
<% end %>
|
29
31
|
|
@@ -11,7 +11,19 @@
|
|
11
11
|
<%= f.error_message_on :iso_name %>
|
12
12
|
<% end %>
|
13
13
|
|
14
|
-
|
14
|
+
<%= f.field_container :iso, class: ['form-group'], 'data-hook' => 'iso' do %>
|
15
|
+
<%= f.label :iso, Spree.t(:iso) %>
|
16
|
+
<%= f.text_field :iso, class: 'form-control' %>
|
17
|
+
<%= f.error_message_on :iso %>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<%= f.field_container :iso3, class: ['form-group'], 'data-hook' => 'iso3' do %>
|
21
|
+
<%= f.label :iso3, Spree.t(:iso3) %>
|
22
|
+
<%= f.text_field :iso3, class: 'form-control' %>
|
23
|
+
<%= f.error_message_on :iso3 %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<div data-hook="states_required" class="form-group checkbox">
|
15
27
|
<label>
|
16
28
|
<%= f.check_box :states_required %>
|
17
29
|
<%= Spree.t(:states_required) %>
|
@@ -31,9 +31,9 @@
|
|
31
31
|
<td><%= pretty_time(customer_return.created_at) %></td>
|
32
32
|
<td>
|
33
33
|
<% if customer_return.fully_reimbursed? %>
|
34
|
-
<span class="
|
34
|
+
<span class="badge badge-success"><%= Spree.t(:reimbursed) %></span>
|
35
35
|
<% else %>
|
36
|
-
<span class="
|
36
|
+
<span class="badge badge-info"><%= Spree.t(:incomplete) %></span>
|
37
37
|
<% end %>
|
38
38
|
</td>
|
39
39
|
<td class='actions actions-1' data-hook="admin_orders_customer_returns_index_row_actions">
|
@@ -8,19 +8,19 @@
|
|
8
8
|
<fieldset class="general no-border-top">
|
9
9
|
|
10
10
|
<div class="row">
|
11
|
-
<div class="col-
|
11
|
+
<div class="col-12 col-lg-6">
|
12
12
|
<%#-------------------------------------------------%>
|
13
13
|
<%# Security settings %>
|
14
14
|
<%#-------------------------------------------------%>
|
15
15
|
<% if @preferences_security.any? %>
|
16
|
-
<div class="
|
17
|
-
<div class="
|
18
|
-
<h1 class="
|
16
|
+
<div class="card mb-3" id="general-settings-security" data-hook="general_settings_security">
|
17
|
+
<div class="card-header">
|
18
|
+
<h1 class="card-title mb-0 h5">
|
19
19
|
<%= Spree.t(:security_settings) %>
|
20
20
|
</h1>
|
21
21
|
</div>
|
22
22
|
|
23
|
-
<div class="
|
23
|
+
<div class="card-body">
|
24
24
|
<% @preferences_security.each do |key|
|
25
25
|
type = Spree::Config.preference_type(key) %>
|
26
26
|
<div class="checkbox">
|
@@ -37,12 +37,12 @@
|
|
37
37
|
<%#-------------------------------------------------%>
|
38
38
|
<%# Clear cache %>
|
39
39
|
<%#-------------------------------------------------%>
|
40
|
-
<div class="
|
41
|
-
<div class="
|
42
|
-
<h1 class="
|
40
|
+
<div class="card mb-3" id="general-settings-cache" data-hook="general_settings_cache">
|
41
|
+
<div class="card-header">
|
42
|
+
<h1 class="card-title mb-0 h5"><%= Spree.t(:clear_cache)%></h1>
|
43
43
|
</div>
|
44
44
|
|
45
|
-
<div class="
|
45
|
+
<div class="card-body">
|
46
46
|
<div class="clear-cache-warning alert alert-warning">
|
47
47
|
<%= Spree.t(:clear_cache_warning) %>
|
48
48
|
</div>
|
@@ -53,19 +53,19 @@
|
|
53
53
|
</div>
|
54
54
|
|
55
55
|
</div>
|
56
|
-
<div class="col-
|
56
|
+
<div class="col-12 col-lg-6">
|
57
57
|
|
58
58
|
<%#-------------------------------------------------%>
|
59
59
|
<%# Currency Settings %>
|
60
60
|
<%#-------------------------------------------------%>
|
61
|
-
<div class="
|
62
|
-
<div class="
|
63
|
-
<h1 class="
|
61
|
+
<div class="card mb-3" id="general-settings-currency" data-hook="general_settings_currency">
|
62
|
+
<div class="card-header">
|
63
|
+
<h1 class="card-title mb-0 h5">
|
64
64
|
<%= Spree.t(:currency_settings)%>
|
65
65
|
</h1>
|
66
66
|
</div>
|
67
67
|
|
68
|
-
<div class="
|
68
|
+
<div class="card-body">
|
69
69
|
<div class="form-group">
|
70
70
|
<%= label_tag :currency, Spree.t(:choose_currency) %>
|
71
71
|
<%= select_tag :currency, currency_options %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div data-hook="admin_image_form_fields" class="row">
|
2
|
-
<div class="col-
|
2
|
+
<div class="col-12 col-md-6">
|
3
3
|
<div data-hook="file" class="form-group">
|
4
4
|
<%= f.label :attachment, Spree.t(:filename) %>
|
5
5
|
<%= f.file_field :attachment %>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= f.select :viewable_id, @variants, {}, {class: 'select2'} %>
|
10
10
|
</div>
|
11
11
|
</div>
|
12
|
-
<div data-hook="alt_text" class="col-
|
12
|
+
<div data-hook="alt_text" class="col-12 col-md-6">
|
13
13
|
<div class="form-group">
|
14
14
|
<%= f.label :alt, Spree.t(:alt_text) %>
|
15
15
|
<%= f.text_area :alt, rows: 4, class: 'form-control' %>
|
@@ -3,19 +3,19 @@
|
|
3
3
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @image } %>
|
4
4
|
|
5
5
|
<%= form_for [:admin, @product, @image], html: { multipart: true } do |f| %>
|
6
|
-
<div data-hook="edit_image" class="
|
7
|
-
<div class="
|
8
|
-
<h1 class="
|
6
|
+
<div data-hook="edit_image" class="card mb-3">
|
7
|
+
<div class="card-header">
|
8
|
+
<h1 class="card-title mb-0 h5">
|
9
9
|
<%= @image.attachment_file_name%>
|
10
10
|
</h1>
|
11
11
|
</div>
|
12
|
-
<div class="
|
12
|
+
<div class="card-body">
|
13
13
|
<div class="form-group">
|
14
|
-
<div data-hook="thumbnail" class="col-
|
14
|
+
<div data-hook="thumbnail" class="col-12 col-lg-3 text-center">
|
15
15
|
<%= f.label Spree.t(:thumbnail) %>
|
16
16
|
<%= link_to image_tag(main_app.url_for(@image.url(:small))), main_app.url_for(@image.url(:product)) %>
|
17
17
|
</div>
|
18
|
-
<div class="col-
|
18
|
+
<div class="col-12 col-lg-9">
|
19
19
|
<%= render partial: 'form', locals: { f: f } %>
|
20
20
|
</div>
|
21
21
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div data-hook="admin_option_type_form_fields" class="row">
|
2
|
-
<div class="col-
|
2
|
+
<div class="col-12 col-md-6">
|
3
3
|
<%= f.field_container :name, class: ['form-group'] do %>
|
4
4
|
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
|
5
5
|
<%= f.text_field :name, class: "form-control" %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% end %>
|
8
8
|
</div>
|
9
9
|
|
10
|
-
<div class="col-
|
10
|
+
<div class="col-12 col-md-6">
|
11
11
|
<%= f.field_container :presentation, class: ['form-group'] do %>
|
12
12
|
<%= f.label :presentation, Spree.t(:presentation) %> <span class="required">*</span>
|
13
13
|
<%= f.text_field :presentation, class: "form-control" %>
|
@@ -12,13 +12,13 @@
|
|
12
12
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @option_type } %>
|
13
13
|
|
14
14
|
<%= form_for [:admin, @option_type] do |f| %>
|
15
|
-
<div class="
|
16
|
-
<div class="
|
17
|
-
<h1 class="
|
15
|
+
<div class="card mb-3">
|
16
|
+
<div class="card-header">
|
17
|
+
<h1 class="card-title mb-0 h5">
|
18
18
|
<%= Spree.t(:option_values) %>
|
19
19
|
</h1>
|
20
20
|
</div>
|
21
|
-
<div class="
|
21
|
+
<div class="card-body">
|
22
22
|
<%= render partial: 'form', locals: { f: f } %>
|
23
23
|
</div>
|
24
24
|
<table class="table table-condensed table-bordered sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
@@ -42,7 +42,7 @@
|
|
42
42
|
<% end %>
|
43
43
|
</tbody>
|
44
44
|
</table>
|
45
|
-
<div class="
|
45
|
+
<div class="card-footer text-center">
|
46
46
|
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
47
47
|
</div>
|
48
48
|
</div>
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
<%= render partial: "spree/admin/variants/autocomplete_line_items_stock", formats: :js %>
|
4
4
|
|
5
|
-
<div id="add-line-item" data-hook class="
|
6
|
-
<div class="
|
7
|
-
<h1 class="
|
5
|
+
<div id="add-line-item" data-hook class="card mb-3">
|
6
|
+
<div class="card-header">
|
7
|
+
<h1 class="card-title mb-0 h5"><%= Spree.t(:add_product) %></h1>
|
8
8
|
</div>
|
9
|
-
<div class="
|
9
|
+
<div class="card-body">
|
10
10
|
<div data-hook="add_product_name" class="form-group">
|
11
11
|
<%= label_tag :add_line_item_variant_id, Spree.t(:name_or_sku) %>
|
12
|
-
<%= hidden_field_tag :add_line_item_variant_id, "", class: "variant_autocomplete
|
12
|
+
<%= hidden_field_tag :add_line_item_variant_id, "", class: "variant_autocomplete d-block w-100" %>
|
13
13
|
</div>
|
14
14
|
|
15
15
|
<div id="stock_details"></div>
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<%= render partial: "spree/admin/variants/autocomplete", formats: :js %>
|
2
2
|
<%= render partial: "spree/admin/variants/autocomplete_stock", formats: :js %>
|
3
3
|
|
4
|
-
<div class="
|
5
|
-
<div class="
|
6
|
-
<h1 class="
|
4
|
+
<div class="card mb-3" id="add-line-item" data-hook>
|
5
|
+
<div class="card-header">
|
6
|
+
<h1 class="card-title mb-0 h5">
|
7
7
|
<%= Spree.t(:add_product) %>
|
8
8
|
</h1>
|
9
9
|
</div>
|
10
|
-
<div class="
|
10
|
+
<div class="card-body">
|
11
11
|
<div data-hook="add_product_name">
|
12
12
|
<%= label_tag :add_variant_id, Spree.t(:name_or_sku) %>
|
13
|
-
<%= hidden_field_tag :add_variant_id, "", class: "variant_autocomplete
|
13
|
+
<%= hidden_field_tag :add_variant_id, "", class: "variant_autocomplete d-block w-100" %>
|
14
14
|
</div>
|
15
15
|
|
16
16
|
<div id="stock_details"></div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if adjustments.eligible.exists? %>
|
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
|
<%= title %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
@@ -31,5 +31,6 @@
|
|
31
31
|
<% end %>
|
32
32
|
</tbody>
|
33
33
|
</table>
|
34
|
+
|
34
35
|
</div>
|
35
36
|
<% end %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if order.line_items.exists? %>
|
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(:order_line_items) %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<td class="line-item-total text-center"><%= line_item_shipment_price(item, item.quantity) %></td>
|
38
38
|
<td class="cart-line-item-delete actions actions-4 text-center" data-hook="cart_line_item_delete">
|
39
39
|
<% if can? :update, item %>
|
40
|
-
<%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-
|
40
|
+
<%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
|
41
41
|
<%= link_to_with_icon 'save', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %>
|
42
42
|
<%= link_to_with_icon 'edit', Spree.t('edit'), "#", class: 'edit-line-item btn btn-primary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %>
|
43
43
|
<%= link_to_with_icon 'delete', Spree.t('delete'), "#", class: 'delete-line-item btn btn-danger btn-sm', data: { 'line-item-id' => item.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %>
|