solidus_backend 1.3.2 → 1.4.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_backend might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +38 -0
- data/app/assets/javascripts/spree/backend/components/tooltips.js +2 -0
- data/app/assets/javascripts/spree/backend/product_picker.js +2 -2
- data/app/assets/javascripts/spree/backend/routes.js +0 -1
- data/app/assets/javascripts/spree/backend/shipments.js +147 -118
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +16 -14
- data/app/assets/javascripts/spree/backend/templates/orders/customer_details/autocomplete.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/autocomplete.hbs.erb +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/line_items_autocomplete_stock.hbs +1 -1
- data/app/assets/javascripts/spree/backend/templates/variants/split.hbs +25 -27
- data/app/assets/javascripts/spree/backend/user_picker.js +14 -8
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +3 -3
- data/app/assets/stylesheets/spree/backend/components/_breadcrumb.scss +4 -0
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_hint.scss +3 -0
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_progress.scss +5 -2
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +14 -5
- data/app/assets/stylesheets/spree/backend/components/_states.scss +1 -2
- data/app/assets/stylesheets/spree/backend/globals/_mixins.css +2 -0
- data/app/assets/stylesheets/spree/backend/globals/mixins/_line_through.scss +22 -0
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +12 -3
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +25 -7
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +0 -1
- data/app/assets/stylesheets/spree/backend/sections/_transfer_items.scss +0 -1
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +4 -6
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +5 -2
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +36 -3
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +1 -3
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +0 -2
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +3 -1
- data/app/controllers/spree/admin/cancellations_controller.rb +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +0 -6
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +7 -0
- data/app/controllers/spree/admin/orders_controller.rb +1 -1
- data/app/controllers/spree/admin/payment_methods_controller.rb +8 -3
- data/app/controllers/spree/admin/payments_controller.rb +12 -5
- data/app/controllers/spree/admin/products_controller.rb +1 -1
- data/app/controllers/spree/admin/refunds_controller.rb +1 -1
- data/app/controllers/spree/admin/reimbursements_controller.rb +1 -1
- data/app/controllers/spree/admin/root_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_items_controller.rb +0 -8
- data/app/controllers/spree/admin/stock_transfers_controller.rb +6 -6
- data/app/controllers/spree/admin/users_controller.rb +7 -3
- data/app/helpers/spree/admin/base_helper.rb +11 -0
- data/app/helpers/spree/admin/navigation_helper.rb +46 -3
- data/app/helpers/spree/admin/orders_helper.rb +0 -1
- data/app/helpers/spree/admin/stock_locations_helper.rb +1 -5
- data/app/models/spree/backend_configuration.rb +100 -0
- data/app/views/spree/admin/adjustment_reasons/edit.html.erb +4 -7
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +4 -4
- data/app/views/spree/admin/adjustment_reasons/new.html.erb +4 -4
- data/app/views/spree/admin/adjustments/edit.html.erb +4 -6
- data/app/views/spree/admin/adjustments/index.html.erb +3 -6
- data/app/views/spree/admin/adjustments/new.html.erb +5 -6
- data/app/views/spree/admin/cancellations/index.html.erb +4 -3
- data/app/views/spree/admin/countries/edit.html.erb +4 -6
- data/app/views/spree/admin/countries/index.html.erb +4 -4
- data/app/views/spree/admin/countries/new.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/edit.html.erb +4 -6
- data/app/views/spree/admin/customer_returns/index.html.erb +2 -5
- data/app/views/spree/admin/customer_returns/new.html.erb +5 -6
- data/app/views/spree/admin/general_settings/edit.html.erb +4 -28
- data/app/views/spree/admin/images/edit.html.erb +6 -2
- data/app/views/spree/admin/images/index.html.erb +3 -0
- data/app/views/spree/admin/images/new.html.erb +3 -3
- data/app/views/spree/admin/log_entries/index.html.erb +4 -8
- data/app/views/spree/admin/option_types/edit.html.erb +7 -9
- data/app/views/spree/admin/option_types/index.html.erb +4 -4
- data/app/views/spree/admin/orders/_shipment.html.erb +4 -1
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +4 -1
- data/app/views/spree/admin/orders/cart.html.erb +4 -8
- data/app/views/spree/admin/orders/confirm.html.erb +3 -4
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm_advance.html.erb +3 -4
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
- data/app/views/spree/admin/orders/customer_details/show.html.erb +3 -5
- data/app/views/spree/admin/orders/edit.html.erb +1 -8
- data/app/views/spree/admin/orders/index.html.erb +11 -5
- data/app/views/spree/admin/payment_methods/edit.html.erb +5 -7
- data/app/views/spree/admin/payment_methods/index.html.erb +6 -5
- data/app/views/spree/admin/payment_methods/new.html.erb +6 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/credit.html.erb +3 -3
- data/app/views/spree/admin/payments/index.html.erb +4 -7
- data/app/views/spree/admin/payments/new.html.erb +4 -5
- data/app/views/spree/admin/payments/show.html.erb +4 -7
- data/app/views/spree/admin/prices/_form.html.erb +1 -0
- data/app/views/spree/admin/prices/index.html.erb +2 -2
- data/app/views/spree/admin/product_properties/index.html.erb +3 -1
- data/app/views/spree/admin/products/_form.html.erb +11 -18
- data/app/views/spree/admin/products/_properties_form.erb +1 -1
- data/app/views/spree/admin/products/edit.html.erb +3 -2
- data/app/views/spree/admin/products/index.html.erb +19 -28
- data/app/views/spree/admin/products/new.html.erb +4 -2
- data/app/views/spree/admin/promotion_categories/edit.html.erb +4 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +4 -4
- data/app/views/spree/admin/promotion_categories/new.html.erb +4 -3
- data/app/views/spree/admin/promotion_rules/create.js.erb +1 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +3 -3
- data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/edit.html.erb +4 -5
- data/app/views/spree/admin/promotions/index.html.erb +3 -5
- data/app/views/spree/admin/promotions/new.html.erb +3 -3
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +2 -2
- data/app/views/spree/admin/properties/edit.html.erb +3 -6
- data/app/views/spree/admin/properties/index.html.erb +5 -5
- data/app/views/spree/admin/prototypes/_form.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +3 -6
- data/app/views/spree/admin/prototypes/index.html.erb +4 -4
- data/app/views/spree/admin/prototypes/show.html.erb +2 -2
- data/app/views/spree/admin/refund_reasons/edit.html.erb +4 -4
- data/app/views/spree/admin/refund_reasons/index.html.erb +5 -4
- data/app/views/spree/admin/refund_reasons/new.html.erb +5 -4
- data/app/views/spree/admin/refunds/edit.html.erb +5 -6
- data/app/views/spree/admin/refunds/new.html.erb +6 -6
- data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -3
- data/app/views/spree/admin/reimbursements/edit.html.erb +5 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +2 -4
- data/app/views/spree/admin/reimbursements/show.html.erb +3 -4
- data/app/views/spree/admin/reports/index.html.erb +2 -3
- data/app/views/spree/admin/reports/sales_total.html.erb +2 -4
- data/app/views/spree/admin/return_authorizations/edit.html.erb +15 -16
- data/app/views/spree/admin/return_authorizations/index.html.erb +3 -5
- data/app/views/spree/admin/return_authorizations/new.html.erb +5 -6
- data/app/views/spree/admin/return_reasons/edit.html.erb +3 -2
- data/app/views/spree/admin/return_reasons/index.html.erb +3 -1
- data/app/views/spree/admin/return_reasons/new.html.erb +4 -2
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_head.html.erb +1 -8
- data/app/views/spree/admin/shared/_header.html.erb +8 -12
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_no_objects_found.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_submenu.html.erb +10 -10
- data/app/views/spree/admin/shared/_order_summary.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_tabs.html.erb +3 -3
- data/app/views/spree/admin/shared/_payments_tabs.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_product_tabs.html.erb +8 -9
- data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_settings_checkout_tabs.html.erb +4 -4
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +5 -5
- data/app/views/spree/admin/shared/_shipping_tabs.html.erb +4 -3
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/shared/_tabs.html.erb +12 -37
- data/app/views/spree/admin/shared/_taxes_tabs.html.erb +2 -2
- data/app/views/spree/admin/shared/_variant_search.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +5 -5
- data/app/views/spree/admin/shared/named_types/_index.html.erb +5 -4
- data/app/views/spree/admin/shared/named_types/_new.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_categories/index.html.erb +5 -4
- data/app/views/spree/admin/shipping_categories/new.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/_form.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/edit.html.erb +5 -6
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/shipping_methods/new.html.erb +5 -6
- data/app/views/spree/admin/states/edit.html.erb +5 -6
- data/app/views/spree/admin/states/index.html.erb +5 -4
- data/app/views/spree/admin/states/new.html.erb +5 -3
- data/app/views/spree/admin/stock_items/index.html.erb +4 -7
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/edit.html.erb +5 -5
- data/app/views/spree/admin/stock_locations/index.html.erb +16 -9
- data/app/views/spree/admin/stock_locations/new.html.erb +5 -4
- data/app/views/spree/admin/stock_movements/index.html.erb +3 -4
- data/app/views/spree/admin/stock_movements/new.html.erb +2 -3
- data/app/views/spree/admin/stock_transfers/_location.html.erb +7 -0
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/edit.html.erb +5 -6
- data/app/views/spree/admin/stock_transfers/index.html.erb +5 -5
- data/app/views/spree/admin/stock_transfers/new.html.erb +6 -8
- data/app/views/spree/admin/stock_transfers/receive.html.erb +4 -12
- data/app/views/spree/admin/stock_transfers/show.html.erb +6 -12
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +5 -13
- data/app/views/spree/admin/store_credits/edit_amount.html.erb +6 -4
- data/app/views/spree/admin/store_credits/edit_validity.html.erb +8 -6
- data/app/views/spree/admin/store_credits/index.html.erb +5 -5
- data/app/views/spree/admin/store_credits/new.html.erb +5 -4
- data/app/views/spree/admin/store_credits/show.html.erb +5 -4
- data/app/views/spree/admin/style_guide/topics/typography/_icons.html.erb +2 -2
- data/app/views/spree/admin/tax_categories/edit.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -4
- data/app/views/spree/admin/tax_categories/new.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/edit.html.erb +5 -6
- data/app/views/spree/admin/tax_rates/index.html.erb +5 -4
- data/app/views/spree/admin/tax_rates/new.html.erb +5 -6
- data/app/views/spree/admin/taxonomies/edit.erb +7 -9
- data/app/views/spree/admin/taxonomies/index.html.erb +4 -4
- data/app/views/spree/admin/taxonomies/new.html.erb +5 -7
- data/app/views/spree/admin/taxons/edit.html.erb +5 -6
- data/app/views/spree/admin/taxons/index.html.erb +2 -3
- data/app/views/spree/admin/trackers/edit.html.erb +5 -6
- data/app/views/spree/admin/trackers/index.html.erb +4 -4
- data/app/views/spree/admin/trackers/new.html.erb +4 -6
- data/app/views/spree/admin/users/_form.html.erb +2 -2
- data/app/views/spree/admin/users/_tabs.html.erb +5 -5
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -4
- data/app/views/spree/admin/users/addresses.html.erb +5 -4
- data/app/views/spree/admin/users/edit.html.erb +6 -6
- data/app/views/spree/admin/users/index.html.erb +4 -5
- data/app/views/spree/admin/users/items.html.erb +4 -3
- data/app/views/spree/admin/users/new.html.erb +2 -9
- data/app/views/spree/admin/users/orders.html.erb +4 -3
- data/app/views/spree/admin/variants/_form.html.erb +1 -0
- data/app/views/spree/admin/variants/edit.html.erb +4 -3
- data/app/views/spree/admin/variants/index.html.erb +10 -8
- data/app/views/spree/admin/variants/new.html.erb +5 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +2 -2
- data/app/views/spree/admin/zones/_state_members.html.erb +2 -2
- data/app/views/spree/admin/zones/edit.html.erb +5 -6
- data/app/views/spree/admin/zones/index.html.erb +5 -4
- data/app/views/spree/admin/zones/new.html.erb +6 -7
- data/app/views/spree/layouts/admin.html.erb +28 -15
- data/config/initializers/form_builder.rb +6 -0
- data/config/routes.rb +2 -6
- data/spec/controllers/spree/admin/cancellations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/customer_returns_controller_spec.rb +4 -4
- data/spec/controllers/spree/admin/missing_products_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/orders/customer_details_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/orders_controller_spec.rb +28 -28
- data/spec/controllers/spree/admin/payment_methods_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/prices_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/product_properties_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/products_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/promotion_actions_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotion_codes_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/promotion_rules_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/promotions_controller_spec.rb +7 -7
- data/spec/controllers/spree/admin/refunds_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/reimbursements_controller_spec.rb +5 -5
- data/spec/controllers/spree/admin/reports_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/resource_controller_spec.rb +6 -6
- data/spec/controllers/spree/admin/return_authorizations_controller_spec.rb +11 -11
- data/spec/controllers/spree/admin/return_items_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/controllers/spree/admin/shipping_methods_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/stock_items_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_locations_controller_spec.rb +3 -3
- data/spec/controllers/spree/admin/stock_transfers_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/store_credits_controller_spec.rb +10 -10
- data/spec/controllers/spree/admin/users_controller_spec.rb +139 -141
- data/spec/controllers/spree/admin/variants_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/general_settings_spec.rb +7 -16
- data/spec/features/admin/configuration/payment_methods_spec.rb +7 -7
- data/spec/features/admin/configuration/stock_locations_spec.rb +1 -1
- data/spec/features/admin/configuration/tax_categories_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/homepage_spec.rb +2 -2
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +8 -8
- data/spec/features/admin/orders/customer_details_spec.rb +20 -5
- data/spec/features/admin/orders/listing_spec.rb +97 -70
- data/spec/features/admin/orders/new_order_spec.rb +35 -6
- data/spec/features/admin/orders/order_details_spec.rb +37 -58
- data/spec/features/admin/orders/payments_spec.rb +57 -4
- data/spec/features/admin/orders/return_authorizations_spec.rb +25 -0
- data/spec/features/admin/orders/shipments_spec.rb +5 -5
- data/spec/features/admin/products/edit/products_spec.rb +1 -1
- data/spec/features/admin/products/edit/taxons_spec.rb +5 -5
- data/spec/features/admin/products/edit/variants_spec.rb +1 -1
- data/spec/features/admin/products/option_types_spec.rb +2 -2
- data/spec/features/admin/products/products_spec.rb +6 -6
- data/spec/features/admin/products/properties_spec.rb +6 -6
- data/spec/features/admin/products/prototypes_spec.rb +1 -1
- data/spec/features/admin/products/stock_management_spec.rb +5 -5
- data/spec/features/admin/promotion_adjustments_spec.rb +8 -8
- data/spec/features/admin/promotions/option_value_rule_spec.rb +4 -4
- data/spec/features/admin/promotions/product_rule_spec.rb +33 -0
- data/spec/features/admin/promotions/tiered_calculator_spec.rb +2 -2
- data/spec/features/admin/promotions/user_rule_spec.rb +15 -0
- data/spec/features/admin/reports_spec.rb +1 -1
- data/spec/features/admin/users_spec.rb +27 -2
- data/spec/helpers/admin/base_helper_spec.rb +30 -0
- data/spec/helpers/admin/navigation_helper_spec.rb +40 -2
- data/spec/spec_helper.rb +10 -8
- data/spec/support/feature/order_feature_helper.rb +17 -0
- metadata +18 -11
- data/app/assets/javascripts/spree/backend/general_settings.js.coffee +0 -13
- data/spec/controllers/spree/admin/general_settings_controller_spec.rb +0 -41
@@ -1,8 +1,7 @@
|
|
1
1
|
<% content_for :page_actions do %>
|
2
|
-
<li><%= button_link_to Spree.t(:back_to_products_list), session[:return_to] || admin_products_url, :icon => 'arrow-left' %></li>
|
3
2
|
<% if can?(:create, Spree::Product) %>
|
4
3
|
<li id="new_product_link">
|
5
|
-
<%= button_link_to Spree.t(:new_product), new_object_url, { :
|
4
|
+
<%= button_link_to Spree.t(:new_product), new_object_url, { :id => 'admin_new_product' } %>
|
6
5
|
</li>
|
7
6
|
<% end %>
|
8
7
|
<% end %>
|
@@ -10,6 +9,8 @@
|
|
10
9
|
<%= render :partial => 'spree/admin/shared/product_tabs', :locals => { :current => 'Product Details' } %>
|
11
10
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @product } %>
|
12
11
|
|
12
|
+
<% admin_breadcrumb(Spree.t(:product_details)) %>
|
13
|
+
|
13
14
|
<%= form_for [:admin, @product], :method => :put, :html => { :multipart => true } do |f| %>
|
14
15
|
<fieldset class="no-border-top">
|
15
16
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_layout "full-width" %>
|
2
|
+
|
3
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Product)) %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<li id="new_product_link">
|
7
|
-
<%= button_link_to Spree.t(:new_product), new_object_url, { :remote => true, :
|
7
|
+
<%= button_link_to Spree.t(:new_product), new_object_url, { :remote => true, :id => 'admin_new_product' } %>
|
8
8
|
</li>
|
9
9
|
<% end if can?(:create, Spree::Product) %>
|
10
10
|
|
@@ -14,38 +14,29 @@
|
|
14
14
|
|
15
15
|
<% content_for :table_filter do %>
|
16
16
|
<div data-hook="admin_products_sidebar">
|
17
|
-
|
18
17
|
<%= search_form_for [:admin, @search] do |f| %>
|
19
|
-
|
20
18
|
<%- locals = {:f => f} %>
|
21
|
-
|
22
19
|
<div data-hook="admin_products_index_search">
|
23
|
-
<div class="
|
24
|
-
|
25
|
-
|
26
|
-
<%= f.text_field :name_cont, :size => 15 %>
|
27
|
-
</div>
|
20
|
+
<div class="product-search-field-name field">
|
21
|
+
<%= f.label :name_cont, Spree::Product.human_attribute_name(:name) %>
|
22
|
+
<%= f.text_field :name_cont, :size => 15 %>
|
28
23
|
</div>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
</div>
|
24
|
+
|
25
|
+
<div class="product-search-field-sku field">
|
26
|
+
<%= f.label :variants_including_master_sku_cont, Spree::Variant.human_attribute_name(:sku) %>
|
27
|
+
<%= f.text_field :variants_including_master_sku_cont, :size => 15 %>
|
34
28
|
</div>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
</div>
|
29
|
+
|
30
|
+
<div class="product-search-field-show-deleted field checkbox">
|
31
|
+
<label>
|
32
|
+
<%= f.check_box :deleted_at_null, {:checked => params[:q][:deleted_at_null] == '0'}, '0', '1' %>
|
33
|
+
<%= Spree.t(:show_deleted) %>
|
34
|
+
</label>
|
42
35
|
</div>
|
43
36
|
</div>
|
44
37
|
|
45
|
-
<div class="
|
46
|
-
|
47
|
-
<div class="form-buttons actions filter-actions" data-hook="admin_products_index_search_buttons">
|
48
|
-
<%= button Spree.t(:search), 'search' %>
|
38
|
+
<div class="actions filter-actions" data-hook="admin_products_index_search_buttons">
|
39
|
+
<%= button Spree.t(:search) %>
|
49
40
|
</div>
|
50
41
|
<% end %>
|
51
42
|
</div>
|
@@ -52,8 +52,9 @@
|
|
52
52
|
<div data-hook="new_product_shipping_category" class="alpha field four columns">
|
53
53
|
<%= f.field_container :shipping_category do %>
|
54
54
|
<%= f.label :shipping_category_id, Spree::ShippingCategory.
|
55
|
-
model_name.human, class: 'required'
|
56
|
-
<%= f.
|
55
|
+
model_name.human, class: 'required' %>
|
56
|
+
<%= f.field_hint :shipping_category %><br />
|
57
|
+
<%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2 fullwidth' }) %>
|
57
58
|
<%= f.error_message_on :shipping_category_id %>
|
58
59
|
<% end %>
|
59
60
|
</div>
|
@@ -61,6 +62,7 @@
|
|
61
62
|
<div data-hook="new_product_tax_category" class="field four columns">
|
62
63
|
<%= f.field_container :tax_category do %>
|
63
64
|
<%= f.label :tax_category_id, Spree::TaxCategory.model_name.human %>
|
65
|
+
<%= f.field_hint :tax_category %>
|
64
66
|
<%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2 fullwidth' }) %>
|
65
67
|
<%= f.error_message_on :tax_category %>
|
66
68
|
<% end %>
|
@@ -1,6 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::PromotionCategory), spree.admin_promotion_categories_path) %>
|
3
|
+
<% admin_breadcrumb(@promotion_category.name) %>
|
4
|
+
|
4
5
|
|
5
6
|
<%= form_for @promotion_category, :url => object_url, :method => :put do |f| %>
|
6
7
|
<fieldset class="no-border-top">
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
|
2
|
+
<% admin_breadcrumb(Spree::PromotionCategory.model_name.human(count: :many)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<% if can?(:create, Spree::PromotionCategory) %>
|
7
7
|
<li>
|
8
|
-
<%= button_link_to Spree.t(:new_promotion_category), spree.new_admin_promotion_category_path
|
8
|
+
<%= button_link_to Spree.t(:new_promotion_category), spree.new_admin_promotion_category_path %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
@@ -1,6 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::PromotionCategory), spree.admin_promotion_categories_path) %>
|
3
|
+
<% admin_breadcrumb(Spree.t(:new_promotion_category)) %>
|
4
|
+
|
4
5
|
|
5
6
|
<%= form_for :promotion_category, :url => collection_url do |f| %>
|
6
7
|
<fieldset class="no-border-top">
|
@@ -3,8 +3,8 @@ $('#rules .no-objects-found').hide();
|
|
3
3
|
|
4
4
|
$('.product_picker').productAutocomplete();
|
5
5
|
$('.user_picker').userAutocomplete();
|
6
|
+
$('.taxon_picker').taxonAutocomplete();
|
6
7
|
|
7
8
|
$('#promotion_rule_type').html('<%= escape_javascript options_for_promotion_rule_types(@promotion) %>');
|
8
9
|
$('#promotion_rule_type').select2();
|
9
10
|
|
10
|
-
set_taxon_select()
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<%= form_tag spree.admin_promotion_promotion_actions_path(@promotion), :remote => true, :id => 'new_promotion_action_form' do %>
|
4
4
|
<% options = options_for_select( Rails.application.config.spree.promotions.actions.map(&:name).map {|name| [ Spree.t("promotion_action_types.#{name.demodulize.underscore}.name"), name] } ) %>
|
5
5
|
<fieldset>
|
6
|
-
<legend align="center"><%= Spree::PromotionAction
|
6
|
+
<legend align="center"><%= plural_resource_name(Spree::PromotionAction) %></legend>
|
7
7
|
<% if can?(:update, @promotion) %>
|
8
8
|
<div class="field">
|
9
9
|
<%= label_tag :action_type, Spree.t(:add_action_of_type)%>
|
10
10
|
<%= select_tag 'action_type', options, :class => 'select2 fullwidth' %>
|
11
11
|
</div>
|
12
12
|
<div class="filter-actions actions">
|
13
|
-
<%= button Spree.t('actions.add')
|
13
|
+
<%= button Spree.t('actions.add') %>
|
14
14
|
</div>
|
15
15
|
<% end %>
|
16
16
|
</fieldset>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</div>
|
29
29
|
<% if can?(:update, @promotion) %>
|
30
30
|
<div class="filter-actions actions promotion-update">
|
31
|
-
<%= button Spree.t('actions.update')
|
31
|
+
<%= button Spree.t('actions.update') %>
|
32
32
|
</div>
|
33
33
|
<% end %>
|
34
34
|
<% end %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= select_tag('promotion_rule[type]', options_for_promotion_rule_types(@promotion), :class => 'select2 fullwidth') %>
|
11
11
|
</div>
|
12
12
|
<div class="filter-actions actions">
|
13
|
-
<%= button Spree.t('actions.add')
|
13
|
+
<%= button Spree.t('actions.add') %>
|
14
14
|
</div>
|
15
15
|
<% end %>
|
16
16
|
</fieldset>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
|
40
40
|
<% if can?(:update, @promotion) %>
|
41
41
|
<div class="promotion-update filter-actions actions">
|
42
|
-
<%= button Spree.t('actions.update')
|
42
|
+
<%= button Spree.t('actions.update') %>
|
43
43
|
</div>
|
44
44
|
<% end %>
|
45
45
|
</fieldset>
|
@@ -1,12 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
|
2
|
+
<% admin_breadcrumb(@promotion.name) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_promotions_list), admin_promotions_path, :icon => 'arrow-left' %>
|
8
7
|
<% if can?(:display, Spree::PromotionCode) %>
|
9
|
-
<%= button_link_to Spree.t(:download_promotion_code_list), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv)
|
8
|
+
<%= button_link_to Spree.t(:download_promotion_code_list), admin_promotion_promotion_codes_path(promotion_id: @promotion.id, format: :csv) %>
|
10
9
|
<% end %>
|
11
10
|
</li>
|
12
11
|
<% end %>
|
@@ -1,11 +1,9 @@
|
|
1
|
-
<%
|
2
|
-
<%= Spree::Promotion.model_name.human(count: :other) %>
|
3
|
-
<% end %>
|
1
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Promotion)) %>
|
4
2
|
|
5
3
|
<% content_for :page_actions do %>
|
6
4
|
<% if can? :create, Spree::Promotion %>
|
7
5
|
<li>
|
8
|
-
<%= button_link_to Spree.t(:new_promotion), spree.new_admin_promotion_path
|
6
|
+
<%= button_link_to Spree.t(:new_promotion), spree.new_admin_promotion_path %>
|
9
7
|
</li>
|
10
8
|
<% end %>
|
11
9
|
<% end %>
|
@@ -49,7 +47,7 @@
|
|
49
47
|
|
50
48
|
<div class="actions filter-actions">
|
51
49
|
<div data-hook="admin_promotions_index_search_buttons">
|
52
|
-
<%= button Spree.t(:filter_results)
|
50
|
+
<%= button Spree.t(:filter_results) %>
|
53
51
|
</div>
|
54
52
|
</div>
|
55
53
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Promotion), spree.admin_promotions_path) %>
|
2
|
+
<% admin_breadcrumb(Spree.t(:new_promotion)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<%= form_for :promotion, :url => collection_url do |f| %>
|
6
6
|
<fieldset class="no-border-top">
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<div class="field alpha omega eight columns promo-rule-option-values">
|
2
2
|
<div class="param-prefix hidden" data-param-prefix="<%= param_prefix %>"></div>
|
3
3
|
<div class="four columns alpha"><%= label_tag nil, Spree::Product.model_name.human %></div>
|
4
|
-
<div class="three columns omega"><%= label_tag nil, Spree::OptionValue
|
4
|
+
<div class="three columns omega"><%= label_tag nil, plural_resource_name(Spree::OptionValue) %></div>
|
5
5
|
<div class="clear"></div>
|
6
6
|
|
7
7
|
<div class="js-promo-rule-option-values"></div>
|
8
8
|
|
9
|
-
<button class="
|
9
|
+
<button class="button js-add-promo-rule-option-value"><%= Spree.t('actions.add') %></button>
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<%= content_tag :div, nil, class: "hidden js-original-promo-rule-option-values",
|
@@ -1,10 +1,7 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Property), spree.admin_properties_path) %>
|
3
|
+
<% admin_breadcrumb(@property.name) %>
|
4
4
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<li><%= button_link_to Spree.t(:back_to_properties_list), admin_properties_url, :icon => 'arrow-left'%></li>
|
7
|
-
<% end %>
|
8
5
|
|
9
6
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @property } %>
|
10
7
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Property)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<% if can?(:create, Spree::Property) %>
|
7
7
|
<li id="new_property_link">
|
8
|
-
<%= button_link_to Spree.t(:new_property), new_admin_property_url, { :remote => true, :
|
8
|
+
<%= button_link_to Spree.t(:new_property), new_admin_property_url, { :remote => true, :id => 'new_property_link' } %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<div class="clear"></div>
|
34
34
|
|
35
35
|
<div class="form-buttons actions filter-actions" data-hook="admin_pproperties_index_search_buttons">
|
36
|
-
<%= button Spree.t(:search)
|
36
|
+
<%= button Spree.t(:search) %>
|
37
37
|
</div>
|
38
38
|
<% end %>
|
39
39
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div class="four columns">
|
11
11
|
<div id='properties' data-hook>
|
12
12
|
<%= f.field_container :property_ids do %>
|
13
|
-
<%= f.label :property_ids, Spree::Property
|
13
|
+
<%= f.label :property_ids, plural_resource_name(Spree::Property) %><br>
|
14
14
|
<%= f.select :property_ids, Spree::Property.all.map { |p| ["#{p.presentation} (#{p.name})", p.id] }, {}, { multiple: true, class: "select2 fullwidth" } %>
|
15
15
|
<% end %>
|
16
16
|
</div>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<div class="four columns">
|
20
20
|
<div id="option_types" data-hook>
|
21
21
|
<%= f.field_container :option_type_ids do %>
|
22
|
-
<%= f.label :option_type_ids, Spree::OptionType
|
22
|
+
<%= f.label :option_type_ids, plural_resource_name(Spree::OptionType) %><br>
|
23
23
|
<%= f.select :option_type_ids, Spree::OptionType.all.map { |ot| ["#{ot.presentation} (#{ot.name})", ot.id] }, {}, { multiple: true, class: "select2 fullwidth" } %>
|
24
24
|
<% end %>
|
25
25
|
</div>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<div class="four columns omega">
|
29
29
|
<div id='taxons' data-hook>
|
30
30
|
<%= f.field_container :taxon_ids do %>
|
31
|
-
<%= f.label :taxon_ids, Spree::Taxon
|
31
|
+
<%= f.label :taxon_ids, plural_resource_name(Spree::Taxon) %><br>
|
32
32
|
<%= f.select :taxon_ids, Spree::Taxon.all.map { |t| [t.name, t.id] }, {}, { multiple: true, class: "select2 fullwidth" } %>
|
33
33
|
<% end %>
|
34
34
|
</div>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<tr id="row_<%= prototype.id %>" data-hook="available_row" class="<%= cycle('odd', 'even')%>">
|
15
15
|
<td><%= prototype.name %></td>
|
16
16
|
<td class="actions">
|
17
|
-
<%= link_to Spree.t(:select), select_admin_prototype_url(prototype), class: 'ajax button select_properties_from_prototype
|
17
|
+
<%= link_to Spree.t(:select), select_admin_prototype_url(prototype), class: 'ajax button select_properties_from_prototype', data: { remote: true } %>
|
18
18
|
</td>
|
19
19
|
</tr>
|
20
20
|
<% end %>
|
@@ -1,11 +1,8 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Prototype), spree.admin_prototypes_path) %>
|
3
|
+
<% admin_breadcrumb(@prototype.name) %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<li>
|
7
|
-
<%= button_link_to Spree.t(:back_to_prototypes_list), spree.admin_prototypes_path, :icon => 'arrow-left' %>
|
8
|
-
</li>
|
9
6
|
<% end %>
|
10
7
|
|
11
8
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @prototype } %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
|
1
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::Product), spree.admin_products_path) %>
|
2
|
+
<% admin_breadcrumb(plural_resource_name(Spree::Prototype)) %>
|
3
|
+
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<% if can?(:create, Spree::Prototype) %>
|
7
7
|
<li id="new_prototype_link">
|
8
|
-
<%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :
|
8
|
+
<%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :id => 'new_prototype_link'} %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if @prototype.option_types.present? %>
|
2
|
-
<h2><%= Spree::Variant
|
2
|
+
<h2><%= plural_resource_name(Spree::Variant) %></h2>
|
3
3
|
|
4
4
|
<ul class="product-prototype-options">
|
5
5
|
<% @prototype.option_types.each do |ot| %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<b>
|
8
8
|
<%= check_box_tag "option_types[]", ot.id, (params[:option_types] || []).include?(ot.id.to_s), :id => "option_type_#{ot.id}", :class => "option-type" %>
|
9
9
|
<%= label_tag "option_type_#{ot.id}", ot.presentation %>
|
10
|
-
</b>
|
10
|
+
</b>
|
11
11
|
<ul class="option-type-values">
|
12
12
|
<% ot.option_values.each do |ov| %>
|
13
13
|
<li>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= render 'spree/admin/shared/settings_checkout_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
|
5
|
+
<% admin_breadcrumb(link_to plural_resource_name(Spree::RefundReason), spree.admin_refund_reasons_path) %>
|
6
|
+
<% admin_breadcrumb(@refund_reason.name) %>
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_refund_reason_list), collection_url, :class => 'button' %></li>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @object } %>
|
@@ -1,14 +1,15 @@
|
|
1
1
|
<%= render 'spree/admin/shared/settings_checkout_tabs' %>
|
2
2
|
|
3
|
-
<%
|
4
|
-
|
5
|
-
<%
|
3
|
+
<% admin_breadcrumb(Spree.t(:settings)) %>
|
4
|
+
<% admin_breadcrumb(Spree.t('admin.tab.checkout')) %>
|
5
|
+
<% admin_breadcrumb(plural_resource_name(Spree::RefundReason)) %>
|
6
|
+
|
6
7
|
|
7
8
|
<% content_for :page_actions do %>
|
8
9
|
<ul class="actions inline-menu">
|
9
10
|
<% if can?(:create, Spree::RefundReason) %>
|
10
11
|
<li>
|
11
|
-
<%= button_link_to Spree.t(:new_refund_reason), new_object_url, {
|
12
|
+
<%= button_link_to Spree.t(:new_refund_reason), new_object_url, { id: 'admin_new_named_type' } %>
|
12
13
|
</li>
|
13
14
|
<% end %>
|
14
15
|
</ul>
|