spree_backend 4.1.9 → 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.js +5 -2
- 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/stylesheets/spree/backend.css +1 -1
- 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/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 +2 -2
- 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 +137 -24
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if can?(:admin, current_store) && Spree::Config[:admin_show_version] %>
|
2
2
|
<small
|
3
|
-
class="spree-version
|
3
|
+
class="spree-version font-weight-bold ml-3 my-3 text-muted"
|
4
4
|
aria-label="Spree Commerce version">
|
5
5
|
<%= Spree.version %>
|
6
6
|
</small>
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to new_button_text, new_object_url, { icon: 'add', id: 'admin_new_named_type', class: "btn-success" } %>
|
6
|
+
<%= button_link_to new_button_text, new_object_url, { icon: 'add.svg', id: 'admin_new_named_type', class: "btn-success" } %>
|
7
7
|
<% end if can? :create, resource %>
|
8
8
|
|
9
9
|
<% if @collection.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table" id='listing_named_types' data-hook>
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="named_types_header">
|
@@ -34,6 +35,7 @@
|
|
34
35
|
<% end %>
|
35
36
|
</tbody>
|
36
37
|
</table>
|
38
|
+
</div>
|
37
39
|
<% else %>
|
38
40
|
<div class="alert alert-info no-objects-found">
|
39
41
|
<%= Spree.t(:no_resource_found, resource: resource_name) %>,
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_shipping_category), new_object_url, class: "btn-success", icon: 'add' %>
|
6
|
+
<%= button_link_to Spree.t(:new_shipping_category), new_object_url, class: "btn-success", icon: 'add.svg' %>
|
7
7
|
<% end if can? :create, Spree::ShippingCategory %>
|
8
8
|
|
9
9
|
<% if @shipping_categories.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table">
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="categories_header">
|
@@ -26,6 +27,7 @@
|
|
26
27
|
<% end %>
|
27
28
|
</tbody>
|
28
29
|
</table>
|
30
|
+
</div>
|
29
31
|
<% else %>
|
30
32
|
<div class="alert alert-info no-objects-found">
|
31
33
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ShippingCategory)) %>,
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_shipping_method_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_shipping_method_link' %>
|
7
7
|
<% end if can? :create, Spree::ShippingMethod %>
|
8
8
|
|
9
9
|
<% if @shipping_methods.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table" id='listing_shipping_methods'>
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="admin_shipping_methods_index_headers">
|
@@ -32,6 +33,7 @@
|
|
32
33
|
<% end %>
|
33
34
|
</tbody>
|
34
35
|
</table>
|
36
|
+
</div>
|
35
37
|
<% else %>
|
36
38
|
<div class="alert alert-info no-objects-found">
|
37
39
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ShippingMethod)) %>,
|
@@ -5,6 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% if @state_changes.any? %>
|
8
|
+
<div class="table-responsive">
|
8
9
|
<table class="table" id="listing_order_state_changes" data-hook>
|
9
10
|
<thead>
|
10
11
|
<tr data-hook="admin_orders_state_changes_headers">
|
@@ -18,10 +19,11 @@
|
|
18
19
|
|
19
20
|
<tbody>
|
20
21
|
<% @state_changes.each do |state_change| %>
|
22
|
+
<% scope = state_change.name == 'order' ? "#{ state_change.name }_state" : "#{ state_change.name }_states" -%>
|
21
23
|
<tr>
|
22
24
|
<td><%= Spree.t("state_machine_states.#{state_change.name}") %></td>
|
23
|
-
<td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope:
|
24
|
-
<td><%= Spree.t(state_change.next_state, scope:
|
25
|
+
<td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope: scope) : Spree.t(:previous_state_missing) %></td>
|
26
|
+
<td><%= Spree.t(state_change.next_state, scope: scope) %></td>
|
25
27
|
<td>
|
26
28
|
<% if state_change.user %>
|
27
29
|
<% user_login = state_change.user.try(:login) || state_change.user.try(:email) %>
|
@@ -38,6 +40,7 @@
|
|
38
40
|
<% end %>
|
39
41
|
</tbody>
|
40
42
|
</table>
|
43
|
+
</div>
|
41
44
|
<% else %>
|
42
45
|
<div class="alert alert-info no-objects-found">
|
43
46
|
<%= Spree.t(:no_state_changes) %>
|
@@ -1,26 +1,27 @@
|
|
1
1
|
<div id="new_state" data-hook></div>
|
2
|
-
|
3
|
-
<table class="table" id='listing_states' data-hook>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
<tbody>
|
12
|
-
<% @states.each do |state| %>
|
13
|
-
<tr id="<%= spree_dom_id state %>" data-hook="states_row">
|
14
|
-
<td><%= state.name %></td>
|
15
|
-
<td class="text-center"><%= state.abbr %></td>
|
16
|
-
<td class="actions actions-2 text-right">
|
17
|
-
<%= link_to_edit(state, no_text: true) if can? :edit, state %>
|
18
|
-
<%= link_to_delete(state, no_text: true) if can? :delete, state %>
|
19
|
-
</td>
|
2
|
+
<div class="table-responsive">
|
3
|
+
<table class="table" id='listing_states' data-hook>
|
4
|
+
<thead>
|
5
|
+
<tr data-hook="states_header">
|
6
|
+
<th><%= Spree.t(:name) %></th>
|
7
|
+
<th class="text-center"><%= Spree.t(:abbreviation) %></th>
|
8
|
+
<th class="actions"></th>
|
20
9
|
</tr>
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
10
|
+
</thead>
|
11
|
+
<tbody>
|
12
|
+
<% @states.each do |state| %>
|
13
|
+
<tr id="<%= spree_dom_id state %>" data-hook="states_row">
|
14
|
+
<td><%= state.name %></td>
|
15
|
+
<td class="text-center"><%= state.abbr %></td>
|
16
|
+
<td class="actions actions-2 text-right">
|
17
|
+
<%= link_to_edit(state, no_text: true) if can? :edit, state %>
|
18
|
+
<%= link_to_delete(state, no_text: true) if can? :delete, state %>
|
19
|
+
</td>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
<% if @states.empty? %>
|
23
|
+
<tr><td colspan="3"><%= Spree.t(:none) %></td></tr>
|
24
|
+
<% end %>
|
25
|
+
</tbody>
|
26
|
+
</table>
|
27
|
+
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { class: "btn-success", icon: 'add', id: 'new_state_link' } %>
|
6
|
+
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { class: "btn-success", icon: 'add.svg', id: 'new_state_link' } %>
|
7
7
|
<% end if can? :create, Spree::State %>
|
8
8
|
|
9
9
|
<div data-hook="country" class="form-group">
|
@@ -31,9 +31,9 @@
|
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<div class="form-actions" data-hook="buttons">
|
34
|
-
<%= button Spree.t(:transfer_stock), '
|
34
|
+
<%= button Spree.t(:transfer_stock), 'add' %>
|
35
35
|
<span class="or"><%= Spree.t(:or) %></span>
|
36
|
-
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: '
|
36
|
+
<%= button_link_to Spree.t('actions.cancel'), collection_url, icon: 'cancel.svg' %>
|
37
37
|
</div>
|
38
38
|
</fieldset>
|
39
39
|
<% end %>
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_stock_location' } %>
|
6
|
+
<%= button_link_to Spree.t(:new_stock_location), new_object_url, { class: "btn-success", icon: 'add.svg', id: 'admin_new_stock_location' } %>
|
7
7
|
<% end if can? :create, Spree::StockLocation %>
|
8
8
|
|
9
9
|
<% if @stock_locations.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table" id='listing_stock_locations' data-hook>
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="stock_locations_header">
|
@@ -33,6 +34,7 @@
|
|
33
34
|
<% end %>
|
34
35
|
</tbody>
|
35
36
|
</table>
|
37
|
+
</div>
|
36
38
|
<% else %>
|
37
39
|
<div class="alert alert-info no-objects-found">
|
38
40
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockLocation)) %>,
|
@@ -4,35 +4,37 @@
|
|
4
4
|
<% end %>
|
5
5
|
|
6
6
|
<% content_for :page_actions do %>
|
7
|
-
<%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), icon: 'add', class: 'btn-success', id: 'admin_new_stock_movement_link' %>
|
7
|
+
<%= button_link_to Spree.t(:new_stock_movement), new_admin_stock_location_stock_movement_path(@stock_location), icon: 'add.svg', class: 'btn-success', id: 'admin_new_stock_movement_link' %>
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% if @stock_movements.any? %>
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
</thead>
|
24
|
-
<tbody>
|
25
|
-
<% @stock_movements.each do |stock_movement|%>
|
26
|
-
<tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
|
27
|
-
<td>
|
28
|
-
<%= display_variant(stock_movement) %>
|
29
|
-
</td>
|
30
|
-
<td><%= stock_movement.quantity %></td>
|
31
|
-
<td><%= pretty_originator(stock_movement) %></td>
|
11
|
+
<div class="table-responsive">
|
12
|
+
<table class="table" id='listing_stock_movements'>
|
13
|
+
<colgroup>
|
14
|
+
<col style="width: 35%">
|
15
|
+
<col style="width: 20%">
|
16
|
+
<col style="width: 45%">
|
17
|
+
</colgroup>
|
18
|
+
<thead>
|
19
|
+
<tr data-hook="admin_stock_movements_index_headers">
|
20
|
+
<th><%= Spree.t(:stock_item) %>
|
21
|
+
<th><%= Spree.t(:quantity) %></th>
|
22
|
+
<th><%= Spree.t(:action) %></th>
|
32
23
|
</tr>
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
</thead>
|
25
|
+
<tbody>
|
26
|
+
<% @stock_movements.each do |stock_movement|%>
|
27
|
+
<tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
|
28
|
+
<td>
|
29
|
+
<%= display_variant(stock_movement) %>
|
30
|
+
</td>
|
31
|
+
<td><%= stock_movement.quantity %></td>
|
32
|
+
<td><%= pretty_originator(stock_movement) %></td>
|
33
|
+
</tr>
|
34
|
+
<% end %>
|
35
|
+
</tbody>
|
36
|
+
</table>
|
37
|
+
</div>
|
36
38
|
<% else %>
|
37
39
|
<div class="alert alert-info no-objects-found">
|
38
40
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockMovement)) %>,
|
@@ -40,4 +42,4 @@
|
|
40
42
|
</div>
|
41
43
|
<% end %>
|
42
44
|
|
43
|
-
<%= paginate @stock_movements, theme: 'twitter-bootstrap-4' %>
|
45
|
+
<%= paginate @stock_movements, theme: 'admin-twitter-bootstrap-4' %>
|
@@ -1,22 +1,24 @@
|
|
1
1
|
<div id="source-movements-table" class="twelve columns alpha">
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<th><%= Spree.t('variant') %></th>
|
6
|
-
<th><%= Spree.t('sku') %></th>
|
7
|
-
<th><%= Spree.t('quantity') %></th>
|
8
|
-
<th><%= Spree.t('count_on_hand') %></th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
<tbody id="bulk_variants_tbody">
|
12
|
-
<% stock_movements.each do |movement| %>
|
2
|
+
<div class="table-responsive">
|
3
|
+
<table class="table sortable">
|
4
|
+
<thead data-hook="bulk_variants_header">
|
13
5
|
<tr>
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
<
|
6
|
+
<th><%= Spree.t('variant') %></th>
|
7
|
+
<th><%= Spree.t('sku') %></th>
|
8
|
+
<th><%= Spree.t('quantity') %></th>
|
9
|
+
<th><%= Spree.t('count_on_hand') %></th>
|
18
10
|
</tr>
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
</thead>
|
12
|
+
<tbody id="bulk_variants_tbody">
|
13
|
+
<% stock_movements.each do |movement| %>
|
14
|
+
<tr>
|
15
|
+
<td><%= movement.stock_item.variant.name %></td>
|
16
|
+
<td><%= movement.stock_item.variant.sku %></td>
|
17
|
+
<td><%= movement.quantity %></td>
|
18
|
+
<td><%= movement.stock_item.count_on_hand %></td>
|
19
|
+
</tr>
|
20
|
+
<% end %>
|
21
|
+
</tbody>
|
22
|
+
</table>
|
23
|
+
</div>
|
22
24
|
</div>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add', class: 'btn-success' } %>
|
6
|
+
<%= button_link_to Spree.t(:new_stock_transfer), new_admin_stock_transfer_path, { icon: 'add.svg', class: 'btn-success' } %>
|
7
7
|
<% end if can? :create, Spree::StockTransfer %>
|
8
8
|
|
9
9
|
<div data-hook="admin_orders_index_search" class="card bg-light mb-3">
|
@@ -41,7 +41,7 @@
|
|
41
41
|
|
42
42
|
<div class="form-actions">
|
43
43
|
<div data-hook="admin_stock_transfers_index_search_buttons">
|
44
|
-
<%= button Spree.t(:filter_results), 'search' %>
|
44
|
+
<%= button Spree.t(:filter_results), 'search.svg' %>
|
45
45
|
</div>
|
46
46
|
</div>
|
47
47
|
<% end %>
|
@@ -50,6 +50,7 @@
|
|
50
50
|
</div>
|
51
51
|
|
52
52
|
<% if @stock_transfers.any? %>
|
53
|
+
<div class="table-responsive">
|
53
54
|
<table class="table" id='listing_stock_transfers' data-hook>
|
54
55
|
<thead>
|
55
56
|
<tr data-hook='stock_transfers_header'>
|
@@ -63,7 +64,7 @@
|
|
63
64
|
<tbody>
|
64
65
|
<% @stock_transfers.each do |stock_transfer| %>
|
65
66
|
<tr id="<%= spree_dom_id stock_transfer %>" data-hook="stock_transfer_row">
|
66
|
-
<td><%= link_to stock_transfer.created_at, admin_stock_transfer_path(stock_transfer) %></td>
|
67
|
+
<td><%= link_to stock_transfer.created_at.strftime('%F %T %Z'), admin_stock_transfer_path(stock_transfer) %></td>
|
67
68
|
<td><%= stock_transfer.reference %></td>
|
68
69
|
<td><%= stock_transfer.source_location.try(:name) %></td>
|
69
70
|
<td><%= stock_transfer.destination_location.try(:name) %></td>
|
@@ -74,6 +75,7 @@
|
|
74
75
|
<% end %>
|
75
76
|
</tbody>
|
76
77
|
</table>
|
78
|
+
</div>
|
77
79
|
<% else %>
|
78
80
|
<div class="alert alert-info no-objects-found">
|
79
81
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StockTransfer)) %>,
|
@@ -81,4 +83,4 @@
|
|
81
83
|
</div>
|
82
84
|
<% end %>
|
83
85
|
|
84
|
-
<%= paginate @stock_transfers, theme: 'twitter-bootstrap-4' %>
|
86
|
+
<%= paginate @stock_transfers, theme: 'admin-twitter-bootstrap-4' %>
|
@@ -77,7 +77,7 @@
|
|
77
77
|
<div class="input-group">
|
78
78
|
<%= number_field_tag :transfer_variant_quantity, 1, class: 'form-control', min: 1 %>
|
79
79
|
<span class="input-group-btn">
|
80
|
-
<%= button Spree.t(:add), '
|
80
|
+
<%= button Spree.t(:add), 'add.svg', 'submit', class: "transfer_add_variant" %>
|
81
81
|
</span>
|
82
82
|
</div>
|
83
83
|
</div>
|
@@ -90,7 +90,7 @@
|
|
90
90
|
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/variant')) %>.
|
91
91
|
</div>
|
92
92
|
|
93
|
-
<div id="transfer-variants-table" style="display:none">
|
93
|
+
<div id="transfer-variants-table" style="display:none" class="table-responsive">
|
94
94
|
<table class="table table-bordered sortable">
|
95
95
|
<thead data-hook="transfer_variants_header">
|
96
96
|
<th><%= Spree.t(:name) %></th>
|
@@ -104,6 +104,6 @@
|
|
104
104
|
</div>
|
105
105
|
|
106
106
|
<div class="form-actions" data-hook="buttons">
|
107
|
-
<%= button Spree.t(:transfer_stock), '
|
107
|
+
<%= button Spree.t(:transfer_stock), 'add.svg', class: 'transfer_transfer' %>
|
108
108
|
</div>
|
109
109
|
<% end %>
|
@@ -9,11 +9,11 @@
|
|
9
9
|
|
10
10
|
<fieldset>
|
11
11
|
<legend><%= Spree.t(:stock_transfer_name) %></legend>
|
12
|
-
|
12
|
+
<div class="table-responsive">
|
13
13
|
<table class="table table-bordered">
|
14
14
|
<tr>
|
15
15
|
<td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
|
16
|
-
<td><%= @stock_transfer.created_at %></td>
|
16
|
+
<td><%= pretty_time(@stock_transfer.created_at) %></td>
|
17
17
|
</tr>
|
18
18
|
<% if @stock_transfer.reference.present? %>
|
19
19
|
<tr>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
</tr>
|
23
23
|
<% end %>
|
24
24
|
</table>
|
25
|
-
|
25
|
+
</div>
|
26
26
|
<% if @stock_transfer.source_movements.present? %>
|
27
27
|
<fieldset>
|
28
28
|
<legend id="stock-location-source">
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_store_credit_category_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_store_credit_category_link' %>
|
7
7
|
<% end if can? :create, Spree::StoreCreditCategory %>
|
8
8
|
|
9
9
|
<% if @store_credit_categories.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table">
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="admin_store_credit_categories_index_headers">
|
@@ -26,6 +27,7 @@
|
|
26
27
|
<% end %>
|
27
28
|
</tbody>
|
28
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::StoreCreditCategory)) %>,
|
@@ -10,10 +10,11 @@
|
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<% content_for :page_actions do %>
|
13
|
-
<%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::StoreCredit) %>
|
13
|
+
<%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add.svg' if can?(:create, Spree::StoreCredit) %>
|
14
14
|
<% end %>
|
15
15
|
|
16
16
|
<% if @store_credits.any? %>
|
17
|
+
<div class="table-responsive">
|
17
18
|
<table class="table">
|
18
19
|
<thead>
|
19
20
|
<th><%= Spree.t(:credited) %></th>
|
@@ -41,6 +42,7 @@
|
|
41
42
|
<% end %>
|
42
43
|
</tbody>
|
43
44
|
</table>
|
45
|
+
</div>
|
44
46
|
<% else %>
|
45
47
|
<div class="alert alert-info no-objects-found">
|
46
48
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
|