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
|
<% content_for :page_actions do %>
|
2
2
|
<% if @return_authorization.can_cancel? %>
|
3
|
-
<%= button_link_to Spree.t('actions.cancel'), cancel_admin_order_return_authorization_url(@order, @return_authorization), method: :put, data: { confirm: Spree.t(:are_you_sure) }, icon: "delete" %>
|
3
|
+
<%= button_link_to Spree.t('actions.cancel'), cancel_admin_order_return_authorization_url(@order, @return_authorization), method: :put, data: { confirm: Spree.t(:are_you_sure) }, icon: "delete.svg" %>
|
4
4
|
<% end %>
|
5
5
|
<% end %>
|
6
6
|
|
@@ -18,9 +18,9 @@
|
|
18
18
|
<%= render partial: 'form', locals: { f: f } %>
|
19
19
|
|
20
20
|
<div class="form-actions" data-hook="buttons">
|
21
|
-
<%= button Spree.t('actions.update'), '
|
21
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
22
22
|
<span class="or"><%= Spree.t(:or) %></span>
|
23
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_return_authorizations_url(@order), icon: '
|
23
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_return_authorizations_url(@order), icon: 'cancel.svg' %>
|
24
24
|
</div>
|
25
25
|
</fieldset>
|
26
26
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<% content_for :page_actions do %>
|
4
4
|
<% if @order.shipments.any?(&:shipped?) && can?(:create, Spree::ReturnAuthorization) %>
|
5
|
-
<%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), class: "btn-success", icon: 'add' %>
|
5
|
+
<%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), class: "btn-success", icon: 'add.svg' %>
|
6
6
|
<% end %>
|
7
7
|
<% end %>
|
8
8
|
|
@@ -11,6 +11,7 @@
|
|
11
11
|
<% end %>
|
12
12
|
|
13
13
|
<% if @order.shipments.any?(&:shipped?) && @order.return_authorizations.any? %>
|
14
|
+
<div class="table-responsive">
|
14
15
|
<table class="table">
|
15
16
|
<thead data-hook="rma_header">
|
16
17
|
<tr>
|
@@ -42,6 +43,7 @@
|
|
42
43
|
<% end %>
|
43
44
|
</tbody>
|
44
45
|
</table>
|
46
|
+
</div>
|
45
47
|
<% elsif @order.shipments.any?(&:shipped?) %>
|
46
48
|
<div class="alert alert-info no-objects-found">
|
47
49
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ReturnAuthorization)) %>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<%= render partial: 'form', locals: { f: f } %>
|
11
11
|
|
12
12
|
<div class="form-actions" data-hook="buttons">
|
13
|
-
<%= button Spree.t(:create), 'save' %>
|
13
|
+
<%= button Spree.t(:create), 'save.svg' %>
|
14
14
|
<span class="or"><%= Spree.t(:or) %></span>
|
15
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_return_authorizations_url(@order), icon: '
|
15
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_return_authorizations_url(@order), icon: 'cancel.svg' %>
|
16
16
|
</div>
|
17
17
|
</fieldset>
|
18
18
|
<% end %>
|
@@ -14,15 +14,14 @@
|
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
<div data-hook="admin_return_authorisations_index_filters_buttons" class="form-actions">
|
17
|
-
<%= button Spree.t(:search), 'search' %>
|
17
|
+
<%= button Spree.t(:search), 'search.svg' %>
|
18
18
|
</div>
|
19
19
|
<% end %>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
22
22
|
|
23
|
-
<%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection, per_page_action: :customer_returns } %>
|
24
|
-
|
25
23
|
<% if @collection.any? %>
|
24
|
+
<div class="table-responsive">
|
26
25
|
<table class="table">
|
27
26
|
<thead>
|
28
27
|
<tr data-hook="rate_header">
|
@@ -37,7 +36,7 @@
|
|
37
36
|
<tbody>
|
38
37
|
<% @collection.each do |customer_return| %>
|
39
38
|
<tr id="<%= spree_dom_id customer_return %>" data-hook="customer_return_row">
|
40
|
-
<td><%= customer_return.created_at.
|
39
|
+
<td><%= customer_return.created_at.strftime('%F %T %Z') %></td>
|
41
40
|
<td><%= link_to customer_return.number, spree.edit_admin_order_customer_return_path(customer_return.order, customer_return) %></td>
|
42
41
|
<td><%= link_to customer_return.order.number, spree.edit_admin_order_path(customer_return.order) %></td>
|
43
42
|
<td>
|
@@ -55,6 +54,7 @@
|
|
55
54
|
<% end %>
|
56
55
|
</tbody>
|
57
56
|
</table>
|
57
|
+
</div>
|
58
58
|
<% else %>
|
59
59
|
<div class="alert alert-info no-objects-found">
|
60
60
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::CustomerReturn)) %>. </div>
|
@@ -38,15 +38,14 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
<div data-hook="admin_return_authorisations_index_filters_buttons" class="form-actions">
|
41
|
-
<%= button Spree.t(:search), 'search' %>
|
41
|
+
<%= button Spree.t(:search), 'search.svg' %>
|
42
42
|
</div>
|
43
43
|
<% end %>
|
44
44
|
</div>
|
45
45
|
<% end %>
|
46
46
|
|
47
|
-
<%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection, per_page_action: :return_authorizations } %>
|
48
|
-
|
49
47
|
<% if @collection.any? %>
|
48
|
+
<div class="table-responsive">
|
50
49
|
<table class="table">
|
51
50
|
<thead>
|
52
51
|
<tr data-hook="rate_header">
|
@@ -60,7 +59,7 @@
|
|
60
59
|
<tbody>
|
61
60
|
<% @collection.each do |return_authorization| %>
|
62
61
|
<tr id="<%= spree_dom_id return_authorization %>" data-hook="return_authorization_row">
|
63
|
-
<td><%= return_authorization.created_at.
|
62
|
+
<td><%= return_authorization.created_at.strftime('%F %T %Z') %></td>
|
64
63
|
<td><%= link_to return_authorization.number, spree.edit_admin_order_return_authorization_path(return_authorization.order, return_authorization) %></td>
|
65
64
|
<td><%= link_to return_authorization.order.number, spree.edit_admin_order_path(return_authorization.order) %></td>
|
66
65
|
<td>
|
@@ -73,6 +72,7 @@
|
|
73
72
|
<% end %>
|
74
73
|
</tbody>
|
75
74
|
</table>
|
75
|
+
</div>
|
76
76
|
<% else %>
|
77
77
|
<div class="alert alert-info no-objects-found">
|
78
78
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ReturnAuthorization)) %>.
|
@@ -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>
|