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
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="panel panel-default currencies">
|
2
|
+
<div class="panel-heading">
|
3
|
+
<%= Spree.t(:currencies) %>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div class="panel-body">
|
7
|
+
<div class="form-group">
|
8
|
+
<div class="checkbox">
|
9
|
+
<label>
|
10
|
+
<%= check_box('', :allow_currency_change, { checked: Spree::Config.allow_currency_change }) %>
|
11
|
+
<%= Spree.t('allow_currency_change.short') %>
|
12
|
+
</label>
|
13
|
+
<p class="help-block"><%= Spree.t('allow_currency_change.long') %></p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="form-group">
|
18
|
+
<div class="checkbox">
|
19
|
+
<label>
|
20
|
+
<%= check_box('', :show_currency_selector, { checked: Spree::Config.show_currency_selector}) %>
|
21
|
+
<%= Spree.t('show_currency_selector.short') %>
|
22
|
+
</label>
|
23
|
+
<p class="help-block"><%= Spree.t('show_currency_selector.long_html') %></p>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<%= Spree.t(:clear_cache_warning) %>
|
48
48
|
</div>
|
49
49
|
<div data-hook="general_settings_clear_cache">
|
50
|
-
<%= button Spree.t(:clear_cache), '
|
50
|
+
<%= button Spree.t(:clear_cache), 'recycle.svg', 'button', id: "clear_cache" %>
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
</div>
|
@@ -70,15 +70,16 @@
|
|
70
70
|
<%= label_tag :currency, Spree.t(:choose_currency) %>
|
71
71
|
<%= select_tag :currency, currency_options %>
|
72
72
|
</div>
|
73
|
+
<%= render partial: 'form' %>
|
73
74
|
</div>
|
74
75
|
</div>
|
75
76
|
</div>
|
76
77
|
</div>
|
77
78
|
|
78
79
|
<div class="form-actions" data-hook="buttons">
|
79
|
-
<%= button Spree.t('actions.update'), 'save' %>
|
80
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
80
81
|
<span class="or"><%= Spree.t(:or) %></span>
|
81
|
-
<%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: '
|
82
|
+
<%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: 'cancel.svg' %>
|
82
83
|
</div>
|
83
84
|
|
84
85
|
</fieldset>
|
@@ -20,9 +20,9 @@
|
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div class="form-actions" data-hook="buttons">
|
23
|
-
<%= button Spree.t('actions.update'), 'save' %>
|
23
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
24
24
|
<span class="or"><%= Spree.t(:or) %></span>
|
25
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: '
|
25
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: 'cancel.svg' %>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
</div>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/product_tabs', locals: { current: :images } %>
|
2
2
|
|
3
3
|
<% content_for :page_actions do %>
|
4
|
-
|
5
|
-
<%= yield :page_actions %>
|
6
|
-
</div>
|
4
|
+
<%= yield :page_actions %>
|
7
5
|
<%= product_preview_link(@product) %>
|
8
|
-
<%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add', id: 'new_image_link' }) if can? :create, Spree::Image %>
|
6
|
+
<%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add.svg', id: 'new_image_link' }) if can? :create, Spree::Image %>
|
9
7
|
<% end %>
|
10
8
|
|
11
9
|
<% has_variants = @product.has_variants? %>
|
@@ -15,6 +13,7 @@
|
|
15
13
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Image)) %>.
|
16
14
|
</div>
|
17
15
|
<% else %>
|
16
|
+
<div class="table-responsive">
|
18
17
|
<table class="table sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>">
|
19
18
|
<thead>
|
20
19
|
<tr data-hook="images_header">
|
@@ -33,12 +32,12 @@
|
|
33
32
|
</tr>
|
34
33
|
</thead>
|
35
34
|
|
36
|
-
<tbody>
|
35
|
+
<tbody id="sortVert">
|
37
36
|
<% (@product.variant_images).each do |image| %>
|
38
37
|
<tr id="<%= spree_dom_id image %>" data-hook="images_row">
|
39
38
|
<td class="move-handle text-center">
|
40
39
|
<% if can? :edit, image %>
|
41
|
-
|
40
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
42
41
|
<% end %>
|
43
42
|
</td>
|
44
43
|
<td class="image">
|
@@ -49,11 +48,12 @@
|
|
49
48
|
<% end %>
|
50
49
|
<td><%= image.alt %></td>
|
51
50
|
<td class="actions actions-2 text-right">
|
52
|
-
<%= link_to_with_icon('edit', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
|
51
|
+
<%= link_to_with_icon('edit.svg', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
|
53
52
|
<%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %>
|
54
53
|
</td>
|
55
54
|
</tr>
|
56
55
|
<% end %>
|
57
56
|
</tbody>
|
58
57
|
</table>
|
58
|
+
</div>
|
59
59
|
<% end %>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<%= render partial: 'form', locals: { f: f } %>
|
12
12
|
|
13
13
|
<div class="form-actions" data-hook="buttons">
|
14
|
-
<%= button Spree.t('actions.create'), 'save' %>
|
14
|
+
<%= button Spree.t('actions.create'), 'save.svg' %>
|
15
15
|
<span class="or"><%= Spree.t(:or) %></span>
|
16
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete', id: 'cancel_link' %>
|
16
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete.svg', id: 'cancel_link' %>
|
17
17
|
</div>
|
18
18
|
</fieldset>
|
19
19
|
<% end %>
|
@@ -8,16 +8,16 @@
|
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% content_for :page_actions do %>
|
11
|
-
<%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file' %>
|
11
|
+
<%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file.svg' %>
|
12
12
|
<% end %>
|
13
|
-
|
13
|
+
<div class="table-responsive">
|
14
14
|
<table class="table" id='listing_log_entries'>
|
15
15
|
<% @log_entries.each do |entry| %>
|
16
16
|
<thead>
|
17
17
|
<tr class="log_entry <%= entry.parsed_details.success? ? 'success' : 'fail' %>">
|
18
18
|
<td colspan="2">
|
19
19
|
<h4>
|
20
|
-
<
|
20
|
+
<i class="icon icon-<%= entry.parsed_details.success? ? 'save' : 'cancel' %>"></i>
|
21
21
|
<%= pretty_time(entry.created_at) %>
|
22
22
|
</h4>
|
23
23
|
</td>
|
@@ -31,3 +31,4 @@
|
|
31
31
|
</tbody>
|
32
32
|
<% end %>
|
33
33
|
</table>
|
34
|
+
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
|
2
2
|
<td class="move-handle text-center">
|
3
|
-
|
3
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
4
4
|
<%= f.hidden_field :id %>
|
5
5
|
</td>
|
6
6
|
<td class="name"><%= f.text_field :name, class: "form-control" %></td>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<% content_for :page_actions do %>
|
7
7
|
<span id="new_add_option_value" data-hook>
|
8
|
-
<%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add', :'data-target' => "tbody#
|
8
|
+
<%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add.svg', :'data-target' => "tbody#sortVert", class: 'btn-success spree_add_fields' } %>
|
9
9
|
</span>
|
10
10
|
<% end %>
|
11
11
|
|
@@ -21,27 +21,29 @@
|
|
21
21
|
<div class="card-body">
|
22
22
|
<%= render partial: 'form', locals: { f: f } %>
|
23
23
|
</div>
|
24
|
-
<
|
25
|
-
<
|
26
|
-
<
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
</thead>
|
32
|
-
<tbody id="option_values">
|
33
|
-
<% if @option_type.option_values.empty? %>
|
34
|
-
<tr id="none" data-hook="option_none">
|
35
|
-
<td colspan="2"><%= Spree.t(:none) %></td>
|
36
|
-
<td class="actions text-center"></td>
|
24
|
+
<div class="table-responsive">
|
25
|
+
<table class="table table-condensed sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
26
|
+
<thead data-hook="option_header">
|
27
|
+
<tr>
|
28
|
+
<th colspan="2"><%= Spree.t(:name) %> <span class="required">*</span></th>
|
29
|
+
<th><%= Spree.t(:display) %> <span class="required">*</span></th>
|
30
|
+
<th class="actions"></th>
|
37
31
|
</tr>
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
</thead>
|
33
|
+
<tbody id="sortVert">
|
34
|
+
<% if @option_type.option_values.empty? %>
|
35
|
+
<tr id="none" data-hook="option_none">
|
36
|
+
<td colspan="2"><%= Spree.t(:none) %></td>
|
37
|
+
<td class="actions text-center"></td>
|
38
|
+
</tr>
|
39
|
+
<% else %>
|
40
|
+
<%= f.fields_for :option_values do |option_value_form| %>
|
41
|
+
<%= render partial: 'option_value_fields', locals: { f: option_value_form } %>
|
42
|
+
<% end %>
|
41
43
|
<% end %>
|
42
|
-
|
43
|
-
</
|
44
|
-
</
|
44
|
+
</tbody>
|
45
|
+
</table>
|
46
|
+
</div>
|
45
47
|
<div class="card-footer text-center">
|
46
48
|
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
47
49
|
</div>
|
@@ -4,38 +4,40 @@
|
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<span id="new_ot_link">
|
7
|
-
<%= button_link_to Spree.t(:new_option_type), new_object_url, { class: "btn-success", icon: 'add', id: 'new_option_type_link' } %>
|
7
|
+
<%= button_link_to Spree.t(:new_option_type), new_object_url, { class: "btn-success", icon: 'add.svg', id: 'new_option_type_link' } %>
|
8
8
|
</span>
|
9
9
|
<% end if can?(:create, Spree::OptionType) %>
|
10
10
|
|
11
11
|
<div id="new_option_type"></div>
|
12
12
|
|
13
13
|
<% if @option_types.any? %>
|
14
|
-
<
|
15
|
-
<
|
16
|
-
<
|
17
|
-
<
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
</thead>
|
23
|
-
<tbody>
|
24
|
-
<% @option_types.each do |option_type| %>
|
25
|
-
<tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
|
26
|
-
<td class="move-handle text-center">
|
27
|
-
<span class="icon icon-move handle"></span>
|
28
|
-
</td>
|
29
|
-
<td><%= option_type.name %></td>
|
30
|
-
<td class="presentation"><%= option_type.presentation %></td>
|
31
|
-
<td class="actions actions-2 text-right">
|
32
|
-
<%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) if can?(:edit, option_type) %>
|
33
|
-
<%= link_to_delete(option_type, no_text: true) if can?(:delete, option_type) %>
|
34
|
-
</td>
|
14
|
+
<div class="table-responsive">
|
15
|
+
<table class="table sortable" id="listing_option_types" data-hook data-sortable-link="<%= update_positions_admin_option_types_url %>">
|
16
|
+
<thead>
|
17
|
+
<tr data-hook="option_header">
|
18
|
+
<th class="no-border handel-head"></th>
|
19
|
+
<th><%= Spree.t(:name) %></th>
|
20
|
+
<th><%= Spree.t(:presentation) %></th>
|
21
|
+
<th class="actions"></th>
|
35
22
|
</tr>
|
36
|
-
|
37
|
-
|
38
|
-
|
23
|
+
</thead>
|
24
|
+
<tbody id="sortVert">
|
25
|
+
<% @option_types.each do |option_type| %>
|
26
|
+
<tr class="spree_option_type <%= cycle('odd', 'even')%>" id="<%= spree_dom_id option_type %>" data-hook="option_row">
|
27
|
+
<td class="move-handle text-center">
|
28
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
29
|
+
</td>
|
30
|
+
<td><%= option_type.name %></td>
|
31
|
+
<td class="presentation"><%= option_type.presentation %></td>
|
32
|
+
<td class="actions actions-2 text-right">
|
33
|
+
<%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) if can?(:edit, option_type) %>
|
34
|
+
<%= link_to_delete(option_type, no_text: true) if can?(:delete, option_type) %>
|
35
|
+
</td>
|
36
|
+
</tr>
|
37
|
+
<% end %>
|
38
|
+
</tbody>
|
39
|
+
</table>
|
40
|
+
</div>
|
39
41
|
<% else %>
|
40
42
|
<div class="alert alert-info no-objects-found">
|
41
43
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::OptionType)) %>,
|
@@ -5,32 +5,32 @@
|
|
5
5
|
<%= title %>
|
6
6
|
</h1>
|
7
7
|
</div>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
</tr>
|
15
|
-
</thead>
|
16
|
-
<tbody id="order-charges" data-hook="order_details_adjustments">
|
17
|
-
<% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
|
18
|
-
<tr class="total">
|
19
|
-
<td>
|
20
|
-
<strong><%= label %>:</strong>
|
21
|
-
</td>
|
22
|
-
<td class="total">
|
23
|
-
<span>
|
24
|
-
<%= Spree::Money.new(
|
25
|
-
adjustments.sum(&:amount),
|
26
|
-
currency: adjustments.first.order.try(:currency)
|
27
|
-
) %>
|
28
|
-
</span>
|
29
|
-
</td>
|
8
|
+
<div class="table-responsive">
|
9
|
+
<table class="table table-bordered">
|
10
|
+
<thead>
|
11
|
+
<tr>
|
12
|
+
<th><%= Spree.t('name')%></th>
|
13
|
+
<th><%= Spree.t('amount')%></th>
|
30
14
|
</tr>
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
15
|
+
</thead>
|
16
|
+
<tbody id="order-charges" data-hook="order_details_adjustments">
|
17
|
+
<% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
|
18
|
+
<tr class="total">
|
19
|
+
<td>
|
20
|
+
<strong><%= label %>:</strong>
|
21
|
+
</td>
|
22
|
+
<td class="total">
|
23
|
+
<span>
|
24
|
+
<%= Spree::Money.new(
|
25
|
+
adjustments.sum(&:amount),
|
26
|
+
currency: adjustments.first.order.try(:currency)
|
27
|
+
) %>
|
28
|
+
</span>
|
29
|
+
</td>
|
30
|
+
</tr>
|
31
|
+
<% end %>
|
32
|
+
</tbody>
|
33
|
+
</table>
|
34
|
+
</div>
|
35
35
|
</div>
|
36
36
|
<% end %>
|
@@ -28,19 +28,19 @@
|
|
28
28
|
<%= "(#{item.options_text})" if item.options_text.present? %>
|
29
29
|
</td>
|
30
30
|
<td class="line-item-price text-center"><%= item.single_money.to_html %></td>
|
31
|
-
<td class="line-item-qty-show text-center">
|
31
|
+
<td class="line-item-qty-show text-center" style="width:120px;">
|
32
32
|
<%= item.quantity %>
|
33
33
|
</td>
|
34
|
-
<td class="line-item-qty-edit is-hidden">
|
34
|
+
<td class="line-item-qty-edit is-hidden" style="width:120px;">
|
35
35
|
<%= number_field_tag :quantity, item.quantity, min: 0, class: "line_item_quantity form-control", size: 5 %>
|
36
36
|
</td>
|
37
37
|
<td class="line-item-total text-center"><%= line_item_shipment_price(item, item.quantity) %></td>
|
38
|
-
<td class="cart-line-item-delete actions actions-4 text-center" data-hook="cart_line_item_delete">
|
38
|
+
<td class="cart-line-item-delete actions actions-4 text-center no-wrap" data-hook="cart_line_item_delete">
|
39
39
|
<% if can? :update, item %>
|
40
|
-
<%= link_to_with_icon '
|
41
|
-
<%= link_to_with_icon 'save', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %>
|
42
|
-
<%= link_to_with_icon 'edit', Spree.t('edit'), "#", class: 'edit-line-item btn btn-
|
43
|
-
<%= link_to_with_icon 'delete', Spree.t('delete'), "#", class: 'delete-line-item btn btn-danger btn-sm', data: { 'line-item-id' => item.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %>
|
40
|
+
<%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %>
|
41
|
+
<%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %>
|
42
|
+
<%= link_to_with_icon 'edit.svg', Spree.t('edit'), "#", class: 'edit-line-item btn btn-outline-secondary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %>
|
43
|
+
<%= link_to_with_icon 'delete.svg', Spree.t('delete'), "#", class: 'delete-line-item btn btn-danger btn-sm', data: { 'line-item-id' => item.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %>
|
44
44
|
<% end %>
|
45
45
|
</td>
|
46
46
|
</tr>
|
@@ -1,47 +1,49 @@
|
|
1
1
|
<fieldset id="risk_analysis">
|
2
2
|
<legend><%= "#{Spree.t(:risk_analysis)}: #{Spree.t(:not) unless @order.is_risky?} #{Spree.t(:risky)}" %></legend>
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<div class="table-responsive">
|
4
|
+
<table class="table table-condensed table-bordered">
|
5
|
+
<thead>
|
6
|
+
<th><%= Spree.t('risk')%></th>
|
7
|
+
<th><%= Spree.t('status')%></th>
|
8
|
+
</thead>
|
9
|
+
<tbody id="risk-analysis" data-hook="order_details_adjustments" class="with-border">
|
10
|
+
<tr class="">
|
11
|
+
<td>
|
12
|
+
<strong><%= Spree.t(:failed_payment_attempts) %>:</strong>
|
13
|
+
</td>
|
14
|
+
<td>
|
15
|
+
<span class="badge badge-<%= @order.payments.failed.size > 0 ? 'void' : 'complete' %>">
|
16
|
+
<%= link_to "#{Spree.t 'payments_count', count: @order.payments.failed.size, default: pluralize(@order.payments.failed.size, Spree.t(:payment))}", spree.admin_order_payments_path(@order) %>
|
17
|
+
</span>
|
18
|
+
</td>
|
19
|
+
</tr>
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
21
|
+
<tr>
|
22
|
+
<td><strong><%= Spree.t(:avs_response) %>:</strong></td>
|
23
|
+
<td>
|
24
|
+
<span class="badge badge-<%= latest_payment.is_avs_risky? ? 'void' : 'complete' %>">
|
25
|
+
<% if latest_payment.is_avs_risky? %>
|
26
|
+
<%= "#{Spree.t(:error)}: #{avs_response_code[latest_payment.avs_response]}" %>
|
27
|
+
<% else %>
|
28
|
+
<%= Spree.t(:success) %>
|
29
|
+
<% end %>
|
30
|
+
</span>
|
31
|
+
</td>
|
32
|
+
</tr>
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
34
|
+
<tr>
|
35
|
+
<td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
|
36
|
+
<td>
|
37
|
+
<span class="badge badge-<%= latest_payment.is_cvv_risky? ? 'void' : 'complete' %>">
|
38
|
+
<% if latest_payment.is_cvv_risky? %>
|
39
|
+
<%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
|
40
|
+
<% else %>
|
41
|
+
<%= Spree.t(:success) %>
|
42
|
+
<% end %>
|
43
|
+
</span>
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
</tbody>
|
47
|
+
</table>
|
48
|
+
</div>
|
47
49
|
</fieldset>
|