spree_backend 4.1.15 → 4.2.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/backend-add.svg +5 -0
- data/app/assets/images/backend-adjust.svg +5 -0
- data/app/assets/images/backend-approve.svg +3 -0
- data/app/assets/images/backend-arrow-down.svg +1 -0
- data/app/assets/images/backend-arrow-left.svg +1 -0
- data/app/assets/images/backend-arrow-right.svg +1 -0
- data/app/assets/images/backend-arrow-up.svg +1 -0
- data/app/assets/images/backend-calendar.svg +9 -0
- data/app/assets/images/backend-cancel.svg +7 -0
- data/app/assets/images/backend-capture.svg +3 -0
- data/app/assets/images/backend-cart.svg +1 -0
- data/app/assets/images/backend-chevron-down.svg +1 -0
- data/app/assets/images/backend-chevron-left.svg +1 -0
- data/app/assets/images/backend-chevron-right.svg +1 -0
- data/app/assets/images/backend-chevron-up.svg +1 -0
- data/app/assets/images/backend-clone.svg +7 -0
- data/app/assets/images/backend-close.svg +7 -0
- data/app/assets/images/backend-delete.svg +6 -0
- data/app/assets/images/backend-double-chevron-left.svg +15 -0
- data/app/assets/images/backend-double-chevron-right.svg +17 -0
- data/app/assets/images/backend-edit.svg +14 -0
- data/app/assets/images/backend-enter.svg +6 -0
- data/app/assets/images/backend-envelope.svg +3 -0
- data/app/assets/images/backend-exit.svg +13 -0
- data/app/assets/images/backend-extensions.svg +4 -0
- data/app/assets/images/backend-eye-open.svg +8 -0
- data/app/assets/images/backend-file.svg +6 -0
- data/app/assets/images/backend-filter.svg +3 -0
- data/app/assets/images/backend-folder.svg +4 -0
- data/app/assets/images/backend-images.svg +7 -0
- data/app/assets/images/backend-info.svg +7 -0
- data/app/assets/images/backend-items.svg +5 -0
- data/app/assets/images/backend-leaf.svg +7 -0
- data/app/assets/images/backend-list.svg +5 -0
- data/app/assets/images/backend-location.svg +4 -0
- data/app/assets/images/backend-menu.svg +5 -0
- data/app/assets/images/backend-money.svg +1 -0
- data/app/assets/images/backend-move.svg +5 -0
- data/app/assets/images/backend-ok.svg +3 -0
- data/app/assets/images/backend-pagination-double-arrow-right.svg +8 -0
- data/app/assets/images/backend-payments.svg +8 -0
- data/app/assets/images/backend-pencil.svg +1 -0
- data/app/assets/images/backend-products.svg +5 -0
- data/app/assets/images/backend-promotion.svg +8 -0
- data/app/assets/images/backend-recycle.svg +5 -0
- data/app/assets/images/backend-remove.svg +6 -0
- data/app/assets/images/backend-report.svg +6 -0
- data/app/assets/images/backend-resume.svg +5 -0
- data/app/assets/images/backend-returns.svg +3 -0
- data/app/assets/images/backend-save.svg +3 -0
- data/app/assets/images/backend-search.svg +1 -0
- data/app/assets/images/backend-settings.svg +6 -0
- data/app/assets/images/backend-shipping.svg +3 -0
- data/app/assets/images/backend-slack.svg +3 -0
- data/app/assets/images/backend-sort.svg +5 -0
- data/app/assets/images/backend-split.svg +3 -0
- data/app/assets/images/backend-store.svg +14 -0
- data/app/assets/images/backend-tick.svg +3 -0
- data/app/assets/images/backend-update.svg +3 -0
- data/app/assets/images/backend-user.svg +3 -0
- data/app/assets/images/backend-users.svg +6 -0
- data/app/assets/images/backend-view.svg +8 -0
- data/app/assets/images/backend-void.svg +7 -0
- data/app/assets/javascripts/spree/backend/admin.js +156 -147
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -0
- data/app/assets/javascripts/spree/backend/flatpickr_locals.js +37 -0
- data/app/assets/javascripts/spree/backend/multi_currency.js +38 -0
- data/app/assets/javascripts/spree/backend/payments/edit.js +4 -3
- data/app/assets/javascripts/spree/backend/payments/new.js +18 -18
- data/app/assets/javascripts/spree/backend/promotions.js +1 -1
- data/app/assets/javascripts/spree/backend/spree-select2.js +18 -4
- data/app/assets/javascripts/spree/backend/stock_management.js +2 -1
- data/app/assets/javascripts/spree/backend/taxon_tree_menu.js +4 -4
- data/app/assets/javascripts/spree/backend/taxonomy.js +8 -1
- data/app/assets/javascripts/spree/backend/taxons.js +25 -16
- data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_management.js +2 -1
- data/app/assets/javascripts/spree/backend.js +5 -2
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +27 -11
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +35 -5
- data/app/assets/stylesheets/spree/backend/components/_icons.scss +39 -4
- data/app/assets/stylesheets/spree/backend/components/_main.scss +32 -6
- data/app/assets/stylesheets/spree/backend/components/_navbar.scss +16 -8
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +119 -55
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +62 -19
- data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +26 -63
- data/app/assets/stylesheets/spree/backend/global/_variables.scss +5 -1
- data/app/assets/stylesheets/spree/backend/plugins/_flatpickr.scss +95 -0
- data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +0 -117
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +73 -24
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +40 -0
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +38 -0
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
- data/app/assets/stylesheets/spree/backend/views/_order_payments.scss +12 -0
- data/app/assets/stylesheets/spree/backend/views/_product_properties.scss +11 -0
- data/app/assets/stylesheets/spree/backend/views/prototypes.scss +42 -0
- data/app/assets/stylesheets/spree/backend.css +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +27 -0
- data/app/controllers/spree/admin/prices_controller.rb +39 -0
- data/app/controllers/spree/admin/stock_transfers_controller.rb +8 -1
- data/app/controllers/spree/admin/stores_controller.rb +61 -1
- data/app/controllers/spree/admin/taxons_controller.rb +5 -1
- data/app/helpers/spree/admin/base_helper.rb +25 -8
- data/app/helpers/spree/admin/navigation_helper.rb +50 -19
- data/app/helpers/spree/admin/orders_helper.rb +3 -3
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_first_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_gap.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_last_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_next_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_page.html.erb +0 -0
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_paginator.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_prev_page.html.erb +1 -1
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +2 -2
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +16 -16
- data/app/views/spree/admin/adjustments/edit.html.erb +2 -2
- data/app/views/spree/admin/adjustments/index.html.erb +3 -3
- data/app/views/spree/admin/adjustments/new.html.erb +1 -1
- data/app/views/spree/admin/countries/_form.html.erb +9 -4
- data/app/views/spree/admin/countries/index.html.erb +27 -24
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +37 -35
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +2 -0
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +45 -43
- data/app/views/spree/admin/customer_returns/index.html.erb +3 -1
- data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
- data/app/views/spree/admin/general_settings/_form.html.erb +27 -0
- data/app/views/spree/admin/general_settings/edit.html.erb +4 -3
- data/app/views/spree/admin/images/edit.html.erb +2 -2
- data/app/views/spree/admin/images/index.html.erb +7 -7
- data/app/views/spree/admin/images/new.html.erb +2 -2
- data/app/views/spree/admin/log_entries/index.html.erb +4 -3
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +1 -1
- data/app/views/spree/admin/option_types/edit.html.erb +22 -20
- data/app/views/spree/admin/option_types/index.html.erb +27 -25
- data/app/views/spree/admin/orders/_adjustments.html.erb +26 -26
- data/app/views/spree/admin/orders/_line_items.html.erb +7 -7
- data/app/views/spree/admin/orders/_order_actions.html.erb +1 -1
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +44 -42
- data/app/views/spree/admin/orders/_shipment.html.erb +6 -6
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
- data/app/views/spree/admin/orders/_store_form.html.erb +3 -3
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/index.html.erb +135 -127
- data/app/views/spree/admin/payment_methods/index.html.erb +6 -4
- data/app/views/spree/admin/payments/_capture_events.html.erb +18 -16
- data/app/views/spree/admin/payments/_form.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +39 -37
- data/app/views/spree/admin/payments/index.html.erb +2 -3
- data/app/views/spree/admin/payments/new.html.erb +1 -1
- data/app/views/spree/admin/payments/show.html.erb +1 -1
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +30 -30
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +20 -18
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +28 -26
- data/app/views/spree/admin/prices/_variant_prices.html.erb +43 -0
- data/app/views/spree/admin/prices/index.html.erb +21 -0
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +16 -4
- data/app/views/spree/admin/product_properties/index.html.erb +24 -19
- data/app/views/spree/admin/products/_add_stock_form.html.erb +1 -1
- data/app/views/spree/admin/products/_autocomplete.js.erb +27 -21
- data/app/views/spree/admin/products/_form.html.erb +40 -9
- data/app/views/spree/admin/products/edit.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +24 -19
- data/app/views/spree/admin/products/new.html.erb +11 -2
- data/app/views/spree/admin/products/stock.html.erb +3 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +4 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
- data/app/views/spree/admin/promotions/_form.html.erb +44 -17
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +1 -1
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
- data/app/views/spree/admin/promotions/_rules.html.erb +4 -4
- data/app/views/spree/admin/promotions/edit.html.erb +2 -2
- data/app/views/spree/admin/promotions/index.html.erb +5 -3
- data/app/views/spree/admin/promotions/new.html.erb +7 -6
- data/app/views/spree/admin/promotions/rules/_country.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +5 -5
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +6 -13
- data/app/views/spree/admin/promotions/rules/_product.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +1 -1
- data/app/views/spree/admin/properties/index.html.erb +5 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +30 -28
- data/app/views/spree/admin/prototypes/index.html.erb +21 -19
- data/app/views/spree/admin/prototypes/show.html.erb +21 -8
- data/app/views/spree/admin/refunds/edit.html.erb +2 -2
- data/app/views/spree/admin/refunds/new.html.erb +2 -2
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +4 -4
- data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -2
- data/app/views/spree/admin/reimbursements/edit.html.erb +66 -63
- data/app/views/spree/admin/reimbursements/index.html.erb +21 -20
- data/app/views/spree/admin/reimbursements/show.html.erb +66 -60
- data/app/views/spree/admin/reports/index.html.erb +18 -17
- data/app/views/spree/admin/reports/sales_total.html.erb +20 -19
- data/app/views/spree/admin/return_authorizations/_form.html.erb +3 -2
- data/app/views/spree/admin/return_authorizations/edit.html.erb +3 -3
- data/app/views/spree/admin/return_authorizations/index.html.erb +3 -1
- data/app/views/spree/admin/return_authorizations/new.html.erb +2 -2
- data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -4
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
- data/app/views/spree/admin/roles/index.html.erb +21 -19
- data/app/views/spree/admin/shared/_account_nav.html.erb +51 -65
- data/app/views/spree/admin/shared/_address_form.html.erb +31 -73
- data/app/views/spree/admin/shared/_cal_close.html.erb +10 -0
- data/app/views/spree/admin/shared/_content_header.html.erb +40 -21
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_header.html.erb +14 -11
- data/app/views/spree/admin/shared/_index_table_options.html.erb +5 -7
- data/app/views/spree/admin/shared/_main_menu.html.erb +25 -14
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_order_summary.html.erb +2 -0
- data/app/views/spree/admin/shared/_order_tabs.html.erb +9 -9
- data/app/views/spree/admin/shared/_product_tabs.html.erb +13 -5
- data/app/views/spree/admin/shared/_refunds.html.erb +31 -29
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +27 -6
- data/app/views/spree/admin/shared/_sidebar.html.erb +19 -1
- data/app/views/spree/admin/shared/_table_filter.html.erb +3 -3
- data/app/views/spree/admin/shared/_translations.html.erb +33 -1
- data/app/views/spree/admin/shared/_version.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_index.html.erb +3 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +3 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +3 -1
- data/app/views/spree/admin/state_changes/index.html.erb +5 -2
- data/app/views/spree/admin/states/_state_list.html.erb +25 -24
- data/app/views/spree/admin/states/index.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/index.html.erb +3 -1
- data/app/views/spree/admin/stock_movements/index.html.erb +28 -26
- data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +20 -18
- data/app/views/spree/admin/stock_transfers/index.html.erb +6 -4
- data/app/views/spree/admin/stock_transfers/new.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
- data/app/views/spree/admin/store_credit_categories/index.html.erb +3 -1
- data/app/views/spree/admin/store_credits/index.html.erb +3 -1
- data/app/views/spree/admin/stores/_form.html.erb +128 -68
- data/app/views/spree/admin/stores/edit.html.erb +1 -1
- data/app/views/spree/admin/stores/index.html.erb +4 -2
- data/app/views/spree/admin/tax_categories/index.html.erb +29 -27
- data/app/views/spree/admin/tax_rates/index.html.erb +3 -1
- data/app/views/spree/admin/taxonomies/_list.html.erb +24 -22
- data/app/views/spree/admin/taxonomies/edit.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
- data/app/views/spree/admin/taxons/_form.html.erb +3 -3
- data/app/views/spree/admin/taxons/_taxon_table.html.erb +24 -22
- data/app/views/spree/admin/taxons/edit.html.erb +6 -2
- data/app/views/spree/admin/taxons/index.html.erb +1 -1
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +24 -23
- data/app/views/spree/admin/users/_sidebar.html.erb +5 -5
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
- data/app/views/spree/admin/users/edit.html.erb +2 -2
- data/app/views/spree/admin/users/index.html.erb +25 -23
- data/app/views/spree/admin/users/items.html.erb +3 -2
- data/app/views/spree/admin/users/orders.html.erb +30 -29
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +3 -3
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
- data/app/views/spree/admin/variants/_form.html.erb +14 -2
- data/app/views/spree/admin/variants/_split.js.erb +2 -2
- data/app/views/spree/admin/variants/index.html.erb +7 -5
- data/app/views/spree/admin/zones/index.html.erb +4 -4
- data/app/views/spree/layouts/admin.html.erb +33 -27
- data/config/initializers/ransack.rb +31 -0
- data/config/routes.rb +1 -0
- data/lib/spree/backend.rb +2 -0
- data/lib/spree_backend.rb +0 -1
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spree_backend.gemspec +6 -4
- data/vendor/assets/javascripts/js.cookie.js +154 -156
- data/vendor/assets/javascripts/purify.js +1217 -0
- data/vendor/assets/javascripts/sortable.js +3709 -0
- data/vendor/assets/stylesheets/animate.css +7 -3156
- data/vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss +23 -9
- metadata +138 -25
@@ -3,29 +3,31 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_role), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_role_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_role), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_role_link' %>
|
7
7
|
<% end if can? :create, Spree::Role %>
|
8
8
|
|
9
9
|
<% if @roles.any? %>
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
</thead>
|
17
|
-
<tbody>
|
18
|
-
<% @roles.each do |role|%>
|
19
|
-
<tr id="<%= spree_dom_id role %>" data-hook="admin_roles_index_rows">
|
20
|
-
<td><%= role.name %></td>
|
21
|
-
<td class="actions text-right">
|
22
|
-
<%= link_to_edit(role, no_text: true) if can? :edit, role %>
|
23
|
-
<%= link_to_delete(role, no_text: true) if can? :destroy, role %>
|
24
|
-
</td>
|
10
|
+
<div class="table-responsive">
|
11
|
+
<table class="table">
|
12
|
+
<thead>
|
13
|
+
<tr data-hook="admin_roles_index_headers">
|
14
|
+
<th><%= Spree.t(:role_id) %></th>
|
15
|
+
<th class="actions"></th>
|
25
16
|
</tr>
|
26
|
-
|
27
|
-
|
28
|
-
|
17
|
+
</thead>
|
18
|
+
<tbody>
|
19
|
+
<% @roles.each do |role|%>
|
20
|
+
<tr id="<%= spree_dom_id role %>" data-hook="admin_roles_index_rows">
|
21
|
+
<td><%= role.name %></td>
|
22
|
+
<td class="actions text-right">
|
23
|
+
<%= link_to_edit(role, no_text: true) if can? :edit, role %>
|
24
|
+
<%= link_to_delete(role, no_text: true) if can? :destroy, role %>
|
25
|
+
</td>
|
26
|
+
</tr>
|
27
|
+
<% end %>
|
28
|
+
</tbody>
|
29
|
+
</table>
|
30
|
+
</div>
|
29
31
|
<% else %>
|
30
32
|
<div class="alert alert-warning">
|
31
33
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Role)) %>,
|
@@ -1,73 +1,59 @@
|
|
1
1
|
<% if try_spree_current_user %>
|
2
|
-
<
|
3
|
-
<li class="dropdown user user-menu h-100">
|
4
|
-
<div class="dropdown d-flex align-items-center h-100">
|
5
|
-
<button class="dropdown-toggle btn btn-link text-white h-100" data-toggle="dropdown">
|
6
|
-
<i class="glyphicon glyphicon-user"></i>
|
7
|
-
<span>
|
8
|
-
<%= try_spree_current_user.email %> <i class="caret"></i>
|
9
|
-
</span>
|
10
|
-
</button>
|
2
|
+
<div class="btn-group">
|
11
3
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<%= link_to spree.root_path, target: :blank, class: 'd-block text-dark py-2 px-4' do %>
|
16
|
-
<i class="glyphicon glyphicon-new-window"></i>
|
17
|
-
|
18
|
-
<%= Spree.t(:back_to_store) %>
|
19
|
-
<% end %>
|
20
|
-
</li>
|
21
|
-
<% end %>
|
4
|
+
<button id="accountNav" type="button" class="btn text-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
5
|
+
<%= svg_icon name: "user.svg", width: '24', height: '24' %>
|
6
|
+
</button>
|
22
7
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<%= Spree.t(:account) %>
|
29
|
-
<% end %>
|
30
|
-
</li>
|
31
|
-
<% end %>
|
8
|
+
<div class="dropdown-menu dropdown-menu-right mt-2 p-0 mr-2">
|
9
|
+
<div class="dropdown-item px-0 text-center bg-light">
|
10
|
+
<span class="d-block text-dark py-2 px-4"><%= try_spree_current_user.email %></span>
|
11
|
+
</div>
|
12
|
+
<div class="dropdown-divider m-0"></div>
|
32
13
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<%= Spree.t(:logout) %>
|
39
|
-
<% end %>
|
40
|
-
</li>
|
14
|
+
<% if spree.respond_to? :root_path %>
|
15
|
+
<%= link_to spree.root_path, target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
16
|
+
<%= svg_icon name: "store.svg", width: '18', height: '18' %>
|
17
|
+
|
18
|
+
<%= Spree.t(:back_to_store) %>
|
41
19
|
<% end %>
|
20
|
+
<% end %>
|
42
21
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
<% end %>
|
51
|
-
</li>
|
52
|
-
|
53
|
-
<li class="dropdown-item p-0">
|
54
|
-
<%= link_to 'http://slack.spreecommerce.org', target: :blank, class: 'd-block text-dark py-2 px-4' do %>
|
55
|
-
<i class="glyphicon glyphicon-comment"></i>
|
56
|
-
|
57
|
-
<%= Spree.t(:join_slack) %>
|
58
|
-
<% end %>
|
59
|
-
</li>
|
60
|
-
|
61
|
-
<li class="dropdown-item p-0">
|
62
|
-
<%= link_to 'https://github.com/spree-contrib', target: :blank, class: 'd-block text-dark py-2 px-4' do %>
|
63
|
-
<i class="glyphicon glyphicon-download"></i>
|
64
|
-
|
65
|
-
<%= Spree.t(:extensions_directory) %>
|
66
|
-
<% end %>
|
67
|
-
</li>
|
68
|
-
</ul>
|
69
|
-
</div>
|
22
|
+
<% if can?(:manage, try_spree_current_user) %>
|
23
|
+
<%= link_to spree.edit_admin_user_path(try_spree_current_user), class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
24
|
+
<%= svg_icon name: "user.svg", width: '18', height: '18' %>
|
25
|
+
|
26
|
+
<%= Spree.t(:account) %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
70
29
|
|
71
|
-
|
72
|
-
|
30
|
+
<% if defined?(spree_logout_path) %>
|
31
|
+
<%= link_to spree_logout_path, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
32
|
+
<%= svg_icon name: "exit.svg", width: '18', height: '18' %>
|
33
|
+
|
34
|
+
<%= Spree.t(:logout) %>
|
35
|
+
<% end %>
|
36
|
+
<% end %>
|
37
|
+
|
38
|
+
<div class="dropdown-divider m-0"></div>
|
39
|
+
|
40
|
+
<%= link_to 'http://guides.spreecommerce.org', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
41
|
+
<%= svg_icon name: "info.svg", width: '18', height: '18' %>
|
42
|
+
|
43
|
+
<%= Spree.t(:help_center) %>
|
44
|
+
<% end %>
|
45
|
+
|
46
|
+
<%= link_to 'http://slack.spreecommerce.org', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
47
|
+
<%= svg_icon name: "slack.svg", width: '18', height: '18' %>
|
48
|
+
|
49
|
+
<%= Spree.t(:join_slack) %>
|
50
|
+
<% end %>
|
51
|
+
|
52
|
+
<%= link_to 'https://github.com/spree-contrib', target: :blank, class: 'd-block text-dark py-3 px-4 dropdown-item' do %>
|
53
|
+
<%= svg_icon name: "extensions.svg", width: '18', height: '18' %>
|
54
|
+
|
55
|
+
<%= Spree.t(:extensions_directory) %>
|
56
|
+
<% end %>
|
57
|
+
</div>
|
58
|
+
</div>
|
73
59
|
<% end %>
|
@@ -1,79 +1,37 @@
|
|
1
1
|
<% s_or_b = type.chars.first %>
|
2
|
-
|
3
2
|
<div id="<%= type %>" data-hook="address_fields">
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<%= f.label :lastname, Spree.t(:last_name) %>
|
12
|
-
<%= f.text_field :lastname, class: 'form-control' %>
|
13
|
-
<%= error_message_on f.object, :lastname %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<% if Spree::Config[:company] %>
|
17
|
-
<%= field_container f.object, :company, class: ["form-group", "#{type}-row"] do %>
|
18
|
-
<%= f.label :company, Spree.t(:company) %>
|
19
|
-
<%= f.text_field :company, class: 'form-control' %>
|
20
|
-
<%= error_message_on f.object, :company %>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|
23
|
-
|
24
|
-
<%= field_container f.object, :address1, class: ["form-group", "#{type}-row"] do %>
|
25
|
-
<%= f.label :address1, Spree.t(:street_address) %>
|
26
|
-
<%= f.text_field :address1, class: 'form-control' %>
|
27
|
-
<%= error_message_on f.object, :address1 %>
|
28
|
-
<% end %>
|
29
|
-
|
30
|
-
<%= field_container f.object, :address2, class: ["form-group", "#{type}-row"] do %>
|
31
|
-
<%= f.label :address2, Spree.t(:street_address_2) %>
|
32
|
-
<%= f.text_field :address2, class: 'form-control' %>
|
33
|
-
<%= error_message_on f.object, :address2 %>
|
34
|
-
<% end %>
|
35
|
-
|
36
|
-
<%= field_container f.object, :city, class: ["form-group", "#{type}-row"] do %>
|
37
|
-
<%= f.label :city, Spree.t(:city) %>
|
38
|
-
<%= f.text_field :city, class: 'form-control' %>
|
39
|
-
<%= error_message_on f.object, :city %>
|
40
|
-
<% end %>
|
41
|
-
|
42
|
-
<%= field_container f.object, :zipcode, class: ["form-group", "#{type}-row"] do %>
|
43
|
-
<%= f.label :zipcode, Spree.t(:zip) %>
|
44
|
-
<%= f.text_field :zipcode, class: 'form-control' %>
|
45
|
-
<%= error_message_on f.object, :zipcode %>
|
46
|
-
<% end %>
|
47
|
-
|
48
|
-
<div class="form-group <%= "#{type}-row" %>">
|
49
|
-
<%= f.label :country_id, Spree.t(:country) %>
|
50
|
-
<span id="<%= s_or_b %>country">
|
51
|
-
<%= f.collection_select :country_id, available_countries, :id, :name, {}, { class: 'select2' } %>
|
52
|
-
</span>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<%= field_container f.object, :state, class: ["form-group", "#{type}-row"] do %>
|
56
|
-
<%= f.label :state_id, Spree.t(:state) %>
|
57
|
-
<span id="<%= s_or_b %>state">
|
58
|
-
<% if f.object.country.try(:states) %>
|
59
|
-
|
60
|
-
<%= f.text_field :state_name,
|
61
|
-
style: "display: #{f.object.country.try(:states) && f.object.country.states.empty? ? 'block' : 'none' };",
|
62
|
-
disabled: !(f.object.country.try(:states) && f.object.country.states.empty?), class: 'form-control state_name' %>
|
63
|
-
<%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, { include_blank: true }, { class: 'select2', style: "display: #{ f.object.country.states.empty? ? 'none' : 'block' };", disabled: f.object.country.states.empty? } %>
|
64
|
-
<% else %>
|
65
|
-
<div>
|
66
|
-
<em>No country set.</em>
|
67
|
-
</div>
|
3
|
+
<% Spree::Address::ADDRESS_FIELDS.each do |field| %>
|
4
|
+
<% if field == "country" %>
|
5
|
+
<%= field_container (s_or_b + '_' + field), nil, class: ["form-group", "#{type}-row"] do %>
|
6
|
+
<%= f.label :country_id, Spree.t(:country) %>
|
7
|
+
<span id="<%= s_or_b %>country">
|
8
|
+
<%= f.collection_select :country_id, available_countries, :id, :name, {}, { class: 'select2' } %>
|
9
|
+
</span>
|
68
10
|
<% end %>
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
11
|
+
<% elsif field == "state" %>
|
12
|
+
<%= field_container (s_or_b + '_' + field), :state, class: ["form-group", "#{type}-row"] do %>
|
13
|
+
<%= f.label :state_id, Spree.t(:state) %>
|
14
|
+
<span id="<%= s_or_b %>state">
|
15
|
+
<% if f.object.country.try(:states) %>
|
16
|
+
<%= f.text_field :state_name,
|
17
|
+
style: "display: #{f.object.country.try(:states) && f.object.country.states.empty? ? 'block' : 'none' };",
|
18
|
+
disabled: !(f.object.country.try(:states) && f.object.country.states.empty?), class: 'form-control state_name' %>
|
19
|
+
<%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, { include_blank: true }, { class: 'select2', style: "display: #{ f.object.country.states.empty? ? 'none' : 'block' };", disabled: f.object.country.states.empty? } %>
|
20
|
+
<% else %>
|
21
|
+
<div>
|
22
|
+
<em><%= Spree.t(:no_country) %></em>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
</span>
|
26
|
+
<%= error_message_on f.object, :state_id %>
|
27
|
+
<% end %>
|
28
|
+
<% else %>
|
29
|
+
<%= field_container (s_or_b + '_' + field), nil, class: ["form-group", "#{type}-row"] do %>
|
30
|
+
<%= f.label field, Spree.t(field) %>
|
31
|
+
<%= f.text_field field, class: 'form-control' %>
|
32
|
+
<%= error_message_on f.object, field %>
|
33
|
+
<% end %>
|
34
|
+
<% end %>
|
77
35
|
<% end %>
|
78
36
|
</div>
|
79
37
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="input-group-append append_over data-clear" data-clear>
|
2
|
+
<span class="input-group-text force-round">
|
3
|
+
<%= svg_icon name: "close.svg", width: '16', height: '16' %>
|
4
|
+
</span>
|
5
|
+
</div>
|
6
|
+
<div class="input-group-append append_under data-toggle" data-toggle>
|
7
|
+
<span class="input-group-text">
|
8
|
+
<%= svg_icon name: "calendar.svg", width: '16', height: '16' %>
|
9
|
+
</span>
|
10
|
+
</div>
|
@@ -1,26 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
<h1 class="h4 pl-0 mb-0 col-<%= content_for?(:page_actions) ? '5' : '12' %>">
|
6
|
-
<%= yield :page_title %>
|
7
|
-
<% if content_for?(:page_title_small) %>
|
8
|
-
<small><%= yield :page_title_small %></small>
|
9
|
-
<% end %>
|
10
|
-
</h1>
|
11
|
-
<% end %>
|
1
|
+
<div id="contentHeader" class="row mb-3">
|
2
|
+
<% if content_for?(:page_title) || content_for?(:page_actions) %>
|
3
|
+
<div class="content-header col <%= "with-page-tabs" if content_for?(:page_tabs) %> page-header">
|
4
|
+
<div class="row align-items-center <%= if content_for?(:page_tabs) then "pb-0" else "border-bottom" end %>">
|
12
5
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
<% if content_for?(:page_title) %>
|
7
|
+
<h1 class="contextual-title px-0 mb-0 col">
|
8
|
+
<%= yield :page_title %>
|
9
|
+
<% if content_for?(:page_title_small) %>
|
10
|
+
<small><%= yield :page_title_small %></small>
|
11
|
+
<% end %>
|
12
|
+
</h1>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<% if content_for?(:page_actions) %>
|
16
|
+
<div class="page-actions pl-0 pr-0 d-none d-lg-flex" data-hook="toolbar">
|
17
|
+
<%= yield :page_actions %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<% if content_for?(:page_actions) || content_for?(:sidebar) %>
|
22
|
+
<div class="d-flex d-lg-none justify-content-end m-0 p-0">
|
23
|
+
<button type="button"
|
24
|
+
id="contextual-menu-toggle"
|
25
|
+
class="btn btn-outline-secondary shadow-none">
|
26
|
+
<span class="d-none d-sm-inline">
|
27
|
+
<%= Spree.t('more') %>
|
28
|
+
</span>
|
29
|
+
<%= svg_icon name: "chevron-down.svg", width: '16', height: '16' %>
|
30
|
+
</button>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
18
34
|
|
19
35
|
<% if content_for?(:page_tabs) %>
|
20
|
-
<
|
21
|
-
|
22
|
-
|
36
|
+
<div class="row">
|
37
|
+
<ul class="nav nav-tabs w-100 mt-4 px-0">
|
38
|
+
<%= yield :page_tabs %>
|
39
|
+
</ul>
|
40
|
+
</div>
|
23
41
|
<% end %>
|
42
|
+
|
24
43
|
</div>
|
25
|
-
|
26
|
-
|
44
|
+
<% end %>
|
45
|
+
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-actions" data-hook="buttons">
|
2
|
-
<%= button Spree.t('actions.update'), '
|
2
|
+
<%= button Spree.t('actions.update'), 'save.svg', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
|
3
3
|
<span class="or"><%= Spree.t(:or) %></span>
|
4
|
-
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: '
|
4
|
+
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
|
5
5
|
</div>
|
@@ -1,22 +1,25 @@
|
|
1
1
|
<header class="header logged-in">
|
2
2
|
|
3
|
-
<nav class="navbar fixed-top navbar-dark align-items-
|
4
|
-
<div class="
|
5
|
-
<%= link_to(
|
6
|
-
image_tag(Spree::Config[:admin_interface_logo], id: 'logo'),
|
7
|
-
spree.admin_path,
|
8
|
-
class: "logo navbar-brand"
|
9
|
-
) %>
|
3
|
+
<nav class="navbar fixed-top navbar-dark align-items-middle">
|
4
|
+
<div class="col-3 col-sm-4 p-0 d-lg-none">
|
10
5
|
<button
|
11
|
-
id="sidebar-
|
12
|
-
class="navbar-toggler h-100
|
6
|
+
id="sidebar-open"
|
7
|
+
class="navbar-toggler h-100 text-light"
|
13
8
|
type="button"
|
14
9
|
aria-expanded="false"
|
15
10
|
aria-label="Toggle navigation">
|
16
|
-
|
11
|
+
<%= svg_icon name: "menu.svg", width: '20', height: '20' %>
|
17
12
|
</button>
|
18
13
|
</div>
|
19
|
-
<div class="col-
|
14
|
+
<div class="col text-center text-lg-left">
|
15
|
+
<%= link_to(
|
16
|
+
image_tag(Spree::Config[:admin_interface_logo], id: 'logo', alt: current_store.name),
|
17
|
+
spree.admin_path,
|
18
|
+
class: "logo navbar-brand"
|
19
|
+
) %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<div class="col-3 col-sm-4 text-right p-0">
|
20
23
|
<%= render partial: 'spree/admin/shared/account_nav' %>
|
21
24
|
</div>
|
22
25
|
</nav>
|
@@ -4,15 +4,13 @@
|
|
4
4
|
<% args[:action] = per_page_action %>
|
5
5
|
<% end %>
|
6
6
|
|
7
|
-
<div class="row index-pagination-row">
|
8
|
-
<div class="col-
|
9
|
-
<%= paginate collection, theme: 'twitter-bootstrap-4' %>
|
7
|
+
<div class="row index-pagination-row mt-4">
|
8
|
+
<div class="col-12 col-sm-9 text-center text-sm-left">
|
9
|
+
<%= paginate collection, theme: 'admin-twitter-bootstrap-4' %>
|
10
10
|
</div>
|
11
|
-
<div class="col-
|
12
|
-
|
13
|
-
<%= form_tag(per_page_dropdown_params(args), { method: :get, class: 'js-per-page-form form-inline justify-content-end' }) do %>
|
11
|
+
<div class="col-12 col-sm-3 text-center text-sm-left">
|
12
|
+
<%= form_tag(per_page_dropdown_params(args), { method: :get, class: 'js-per-page-form form-inline justify-content-center justify-content-sm-end' }) do %>
|
14
13
|
<%= per_page_dropdown %>
|
15
14
|
<% end %>
|
16
|
-
</div>
|
17
15
|
</div>
|
18
16
|
</div>
|
@@ -1,43 +1,54 @@
|
|
1
1
|
<nav>
|
2
|
+
<div class="text-right d-lg-none p-2 border-bottom">
|
3
|
+
<button
|
4
|
+
id="sidebar-close"
|
5
|
+
class="btn btn-link"
|
6
|
+
type="button"
|
7
|
+
aria-expanded="false"
|
8
|
+
aria-label="Toggle navigation">
|
9
|
+
<%= svg_icon name: "cancel.svg", width: '20', height: '20' %>
|
10
|
+
</button>
|
11
|
+
</div>
|
12
|
+
|
2
13
|
<% if can? :admin, Spree::Order %>
|
3
|
-
<ul class="nav nav-sidebar border-bottom">
|
4
|
-
<%= tab *Spree::BackendConfiguration::ORDER_TABS, icon: '
|
14
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarOrder">
|
15
|
+
<%= tab *Spree::BackendConfiguration::ORDER_TABS, icon: 'list.svg' %>
|
5
16
|
</ul>
|
6
17
|
<% end %>
|
7
18
|
|
8
19
|
<% if can?(:admin, Spree::ReturnAuthorization) || can?(:admin, Spree::CustomerReturn) %>
|
9
|
-
<ul class="nav nav-sidebar border-bottom">
|
10
|
-
<%= main_menu_tree Spree.t(:returns), icon: "
|
20
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarReturn">
|
21
|
+
<%= main_menu_tree Spree.t(:returns), icon: "returns.svg", sub_menu: "returns", url: "#sidebar-returns" %>
|
11
22
|
</ul>
|
12
23
|
<% end %>
|
13
24
|
|
14
25
|
<% if can? :admin, Spree::Product %>
|
15
|
-
<ul class="nav nav-sidebar border-bottom">
|
16
|
-
<%= main_menu_tree Spree.t(:products), icon: "
|
26
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarProduct">
|
27
|
+
<%= main_menu_tree Spree.t(:products), icon: "products.svg", sub_menu: "product", url: "#sidebar-product" %>
|
17
28
|
</ul>
|
18
29
|
<% end %>
|
19
30
|
|
20
31
|
<% if can? :admin, Spree::Admin::ReportsController %>
|
21
|
-
<ul class="nav nav-sidebar border-bottom">
|
22
|
-
<%= tab *Spree::BackendConfiguration::REPORT_TABS, icon: '
|
32
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarReport">
|
33
|
+
<%= tab *Spree::BackendConfiguration::REPORT_TABS, icon: 'report.svg' %>
|
23
34
|
</ul>
|
24
35
|
<% end %>
|
25
36
|
|
26
37
|
<% if can? :admin, Spree::Promotion %>
|
27
|
-
<ul class="nav nav-sidebar border-bottom">
|
28
|
-
<%= main_menu_tree Spree.t(:promotions), icon: "
|
38
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarPromotion">
|
39
|
+
<%= main_menu_tree Spree.t(:promotions), icon: "promotion.svg", sub_menu: "promotion", url: "#sidebar-promotions" %>
|
29
40
|
</ul>
|
30
41
|
<% end %>
|
31
42
|
|
32
43
|
<% if Spree.user_class && can?(:admin, Spree.user_class) %>
|
33
|
-
<ul class="nav nav-sidebar border-bottom">
|
34
|
-
<%= tab *Spree::BackendConfiguration::USER_TABS, url: spree.admin_users_path, icon: '
|
44
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarUser">
|
45
|
+
<%= tab *Spree::BackendConfiguration::USER_TABS, url: spree.admin_users_path, icon: 'users.svg' %>
|
35
46
|
</ul>
|
36
47
|
<% end %>
|
37
48
|
|
38
49
|
<% if can? :admin, current_store %>
|
39
|
-
<ul class="nav nav-sidebar border-bottom">
|
40
|
-
<%= main_menu_tree Spree.t(:configurations), icon: "
|
50
|
+
<ul class="nav nav-sidebar border-bottom" id="sidebarConfiguration">
|
51
|
+
<%= main_menu_tree Spree.t(:configurations), icon: "settings.svg", sub_menu: "configuration", url: "#sidebar-configuration" %>
|
41
52
|
</ul>
|
42
53
|
<% end %>
|
43
54
|
</nav>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-actions" data-hook="buttons">
|
2
|
-
<%= button Spree.t('actions.create'), '
|
2
|
+
<%= button Spree.t('actions.create'), 'save.svg', 'submit', {class: 'btn-success', data: { disable_with: "#{ Spree.t(:saving) }..." }} %>
|
3
3
|
<span class="or"><%= Spree.t(:or) %></span>
|
4
|
-
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: '
|
4
|
+
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
|
5
5
|
</div>
|
@@ -2,6 +2,7 @@
|
|
2
2
|
<div class="card-header">
|
3
3
|
<h3 class="card-title mb-0 h5"><%= Spree.t(:summary) %></h3>
|
4
4
|
</div>
|
5
|
+
<div class="table-responsive">
|
5
6
|
<table class="table table-condensed table-bordered" id="order_tab_summary" data-hook>
|
6
7
|
<tbody class="additional-info">
|
7
8
|
<tr>
|
@@ -123,4 +124,5 @@
|
|
123
124
|
<% end %>
|
124
125
|
</tbody>
|
125
126
|
</table>
|
127
|
+
</div>
|
126
128
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<ul class="nav flex-column nav-pills" data-hook="admin_order_tabs">
|
8
8
|
<% if ((can? :update, @order) && (@order.shipments.size.zero? || @order.shipments.shipped.size.zero?)) %>
|
9
9
|
<li data-hook='admin_order_tabs_cart_details'>
|
10
|
-
<%= link_to_with_icon '
|
10
|
+
<%= link_to_with_icon 'cart.svg',
|
11
11
|
Spree.t(:cart),
|
12
12
|
cart_admin_order_url(@order),
|
13
13
|
class: "#{'active' if current == :cart} nav-link" %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
<% if ((can?(:update, @order) && can?(:read, Spree::Store)) && (@order.shipments.size.zero? || @order.shipments.shipped.size.zero?)) %>
|
18
18
|
<li data-hook='admin_order_tabs_store_details'>
|
19
|
-
<%= link_to_with_icon '
|
19
|
+
<%= link_to_with_icon 'store.svg',
|
20
20
|
Spree.t(:store),
|
21
21
|
store_admin_order_url(@order),
|
22
22
|
class: "#{'active' if current == :store} nav-link" %>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
<% if can?(:update, @order) && @order.checkout_steps.include?("address") %>
|
27
27
|
<li data-hook='admin_order_tabs_customer_details'>
|
28
|
-
<%= link_to_with_icon 'user',
|
28
|
+
<%= link_to_with_icon 'user.svg',
|
29
29
|
Spree.t(:customer),
|
30
30
|
spree.admin_order_customer_url(@order),
|
31
31
|
class: "#{'active' if current == :customer_details} nav-link" %>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
<% if can? :update, @order %>
|
36
36
|
<li data-hook='admin_order_tabs_shipment_details'>
|
37
|
-
<%= link_to_with_icon '
|
37
|
+
<%= link_to_with_icon 'shipping.svg',
|
38
38
|
Spree.t(:shipments),
|
39
39
|
edit_admin_order_url(@order),
|
40
40
|
class: "#{'active' if current == :shipments} nav-link" %>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<% if can? :index, Spree::Adjustment %>
|
45
45
|
<li data-hook='admin_order_tabs_adjustments'>
|
46
|
-
<%= link_to_with_icon '
|
46
|
+
<%= link_to_with_icon 'adjust.svg',
|
47
47
|
Spree.t(:adjustments),
|
48
48
|
spree.admin_order_adjustments_url(@order),
|
49
49
|
class: "#{'active' if current == :adjustments} nav-link" %>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
|
53
53
|
<% if can?(:index, Spree::Payment) %>
|
54
54
|
<li data-hook='admin_order_tabs_payments'>
|
55
|
-
<%= link_to_with_icon '
|
55
|
+
<%= link_to_with_icon 'payments.svg',
|
56
56
|
Spree.t(:payments),
|
57
57
|
spree.admin_order_payments_url(@order),
|
58
58
|
class: "#{'active' if current == :payments} nav-link" %>
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<% if can? :index, Spree::ReturnAuthorization %>
|
63
63
|
<% if @order.completed? %>
|
64
64
|
<li data-hook='admin_order_tabs_return_authorizations'>
|
65
|
-
<%= link_to_with_icon '
|
65
|
+
<%= link_to_with_icon 'enter.svg',
|
66
66
|
Spree.t(:return_authorizations),
|
67
67
|
spree.admin_order_return_authorizations_url(@order),
|
68
68
|
class: "#{'active' if current == :return_authorizations} nav-link" %>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<% if can? :index, Spree::CustomerReturn %>
|
74
74
|
<% if @order.completed? %>
|
75
75
|
<li>
|
76
|
-
<%= link_to_with_icon '
|
76
|
+
<%= link_to_with_icon 'returns.svg',
|
77
77
|
Spree.t(:customer_returns),
|
78
78
|
spree.admin_order_customer_returns_url(@order),
|
79
79
|
class: "#{'active' if current == :customer_returns} nav-link" %>
|
@@ -83,7 +83,7 @@
|
|
83
83
|
|
84
84
|
<% if can? :update, @order %>
|
85
85
|
<li data-hook='admin_order_tabs_state_changes'>
|
86
|
-
<%= link_to_with_icon '
|
86
|
+
<%= link_to_with_icon 'save.svg',
|
87
87
|
Spree::StateChange.human_attribute_name(:state_changes),
|
88
88
|
spree.admin_order_state_changes_url(@order),
|
89
89
|
class: "#{'active' if current == :state_changes} nav-link" %>
|