solidus_backend 2.3.1 → 2.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/app/assets/javascripts/spree/backend/admin.js +0 -12
- data/app/assets/javascripts/spree/backend/number_field_updater.coffee +5 -5
- data/app/assets/javascripts/spree/backend/shipments.js +16 -14
- data/app/assets/javascripts/spree/backend/stock_transfers/count_update_forms.coffee +3 -3
- data/app/assets/javascripts/spree/backend/stock_transfers/transfer_item_deleting.coffee +1 -1
- data/app/assets/javascripts/spree/backend/taxonomy.js.coffee +1 -1
- data/app/assets/javascripts/spree/backend/templates/orders/details_adjustment_row.hbs +2 -2
- data/app/assets/javascripts/spree/backend/templates/orders/line_item.hbs +3 -3
- data/app/assets/javascripts/spree/backend/templates/stock_items/stock_location_stock_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/stock_transfers/transfer_item.hbs +5 -5
- data/app/assets/javascripts/spree/backend/templates/taxons/_tree.hbs +7 -3
- 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 +2 -2
- data/app/assets/javascripts/spree/backend/views/order/customer_details.js +1 -2
- data/app/assets/javascripts/spree/backend.js +1 -1
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +27 -906
- data/app/assets/stylesheets/spree/backend/components/_actions.scss +13 -15
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_editable_table.scss +0 -1
- data/app/assets/stylesheets/spree/backend/components/_messages.scss +8 -8
- data/app/assets/stylesheets/spree/backend/components/_navigation.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_field_update.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_number_with_currency.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_pills.scss +92 -0
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +7 -32
- data/app/assets/stylesheets/spree/backend/components/_states.scss +5 -27
- data/app/assets/stylesheets/spree/backend/components/_stock_table.scss +0 -12
- data/app/assets/stylesheets/spree/backend/globals/_variables.scss +58 -139
- data/app/assets/stylesheets/spree/backend/plugins/_bootstrap_tooltip.scss +11 -15
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +7 -5
- data/app/assets/stylesheets/spree/backend/sections/_orders.scss +6 -6
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +5 -1
- data/app/assets/stylesheets/spree/backend/sections/_promotions.scss +4 -2
- data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +4 -35
- data/app/assets/stylesheets/spree/backend/sections/_style_guide.scss +14 -15
- data/app/assets/stylesheets/spree/backend/sections/_taxonomies.scss +9 -16
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +23 -20
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +1 -5
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +3 -23
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +40 -92
- data/app/assets/stylesheets/spree/backend/shared/_typography.scss +6 -6
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -1
- data/app/controllers/spree/admin/adjustments_controller.rb +1 -1
- data/app/controllers/spree/admin/customer_returns_controller.rb +0 -1
- data/app/controllers/spree/admin/promotion_actions_controller.rb +1 -1
- data/app/controllers/spree/admin/shipping_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/style_guide_controller.rb +3 -2
- data/app/controllers/spree/admin/tax_rates_controller.rb +1 -1
- data/app/controllers/spree/admin/users_controller.rb +9 -4
- data/app/helpers/spree/admin/base_helper.rb +32 -35
- data/app/helpers/spree/admin/stock_transfers_helper.rb +0 -4
- data/app/models/spree/backend_configuration.rb +1 -1
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +6 -4
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +5 -5
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +7 -7
- data/app/views/spree/admin/cancellations/index.html.erb +9 -5
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +6 -3
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +12 -7
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +13 -8
- data/app/views/spree/admin/customer_returns/edit.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +5 -5
- data/app/views/spree/admin/images/_image_row.html.erb +14 -4
- data/app/views/spree/admin/images/index.html.erb +2 -1
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +6 -6
- data/app/views/spree/admin/option_types/edit.html.erb +2 -1
- data/app/views/spree/admin/option_types/index.html.erb +5 -5
- data/app/views/spree/admin/orders/_adjustments.html.erb +3 -3
- data/app/views/spree/admin/orders/_carton.html.erb +1 -1
- data/app/views/spree/admin/orders/_carton_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +18 -16
- data/app/views/spree/admin/orders/_shipment.html.erb +26 -30
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_line_items.html.erb +3 -3
- data/app/views/spree/admin/orders/confirm/_payments.html.erb +6 -6
- data/app/views/spree/admin/orders/confirm/_shipment.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm/_shipment_manifest.html.erb +3 -3
- data/app/views/spree/admin/orders/index.html.erb +25 -9
- data/app/views/spree/admin/payment_methods/_form.html.erb +4 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +11 -7
- data/app/views/spree/admin/payments/_capture_events.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +9 -5
- data/app/views/spree/admin/payments/show.html.erb +2 -2
- data/app/views/spree/admin/prices/_master_variant_table.html.erb +2 -2
- data/app/views/spree/admin/prices/_table.html.erb +2 -2
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +4 -2
- data/app/views/spree/admin/products/index.html.erb +10 -9
- data/app/views/spree/admin/promotions/actions/_create_item_adjustments.html.erb +1 -1
- data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +1 -1
- data/app/views/spree/admin/promotions/calculators/_default_fields.html.erb +3 -6
- data/app/views/spree/admin/promotions/calculators/tiered_flat_rate/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/calculators/tiered_percent/_fields.html.erb +3 -8
- data/app/views/spree/admin/promotions/index.html.erb +24 -17
- data/app/views/spree/admin/promotions/rules/_user_role.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +3 -3
- data/app/views/spree/admin/refund_reasons/index.html.erb +7 -5
- data/app/views/spree/admin/refunds/new.html.erb +1 -1
- data/app/views/spree/admin/reimbursement_types/index.html.erb +2 -2
- data/app/views/spree/admin/reimbursements/edit.html.erb +6 -6
- data/app/views/spree/admin/reimbursements/index.html.erb +9 -2
- data/app/views/spree/admin/reimbursements/show.html.erb +6 -6
- data/app/views/spree/admin/reports/index.html.erb +2 -2
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_form.html.erb +9 -5
- data/app/views/spree/admin/return_authorizations/edit.html.erb +9 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +11 -4
- data/app/views/spree/admin/search/products.json.jbuilder +10 -0
- data/app/views/spree/admin/search/users.json.jbuilder +37 -0
- data/app/views/spree/admin/shared/_calculator_fields.html.erb +4 -1
- data/app/views/spree/admin/shared/_modal.html.erb +18 -0
- data/app/views/spree/admin/shared/_number_field_update_actions.html.erb +2 -2
- data/app/views/spree/admin/shared/_number_field_update_cell.html.erb +1 -1
- data/app/views/spree/admin/shared/_order_summary.html.erb +21 -5
- data/app/views/spree/admin/shared/_refunds.html.erb +6 -6
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +4 -4
- data/app/views/spree/admin/shared/named_types/_index.html.erb +7 -5
- data/app/views/spree/admin/shared/preference_fields/_boolean.html.erb +13 -0
- data/app/views/spree/admin/shared/preference_fields/_decimal.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_integer.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_password.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_string.html.erb +12 -0
- data/app/views/spree/admin/shared/preference_fields/_text.html.erb +12 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/index.html.erb +5 -5
- data/app/views/spree/admin/stock_items/_stock_management.html.erb +3 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +9 -11
- data/app/views/spree/admin/stock_movements/index.html.erb +4 -4
- data/app/views/spree/admin/stock_transfers/_transfer_item_actions.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +2 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +10 -6
- data/app/views/spree/admin/stock_transfers/tracking_info.html.erb +1 -1
- data/app/views/spree/admin/store_credits/index.html.erb +53 -50
- data/app/views/spree/admin/store_credits/show.html.erb +5 -5
- data/app/views/spree/admin/stores/_form.html.erb +9 -0
- data/app/views/spree/admin/style_guide/topics/components/_modals.html.erb +50 -0
- data/app/views/spree/admin/style_guide/topics/components/_pills.html.erb +101 -0
- data/app/views/spree/admin/style_guide/topics/tables/_building_tables.html.erb +4 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +5 -5
- data/app/views/spree/admin/tax_rates/index.html.erb +9 -9
- data/app/views/spree/admin/taxonomies/_list.html.erb +4 -4
- data/app/views/spree/admin/taxons/search.json.jbuilder +5 -0
- data/app/views/spree/admin/users/index.html.erb +64 -23
- data/app/views/spree/admin/users/items.html.erb +9 -13
- data/app/views/spree/admin/users/orders.html.erb +28 -12
- data/app/views/spree/admin/variants/_table.html.erb +6 -5
- data/app/views/spree/admin/variants/index.html.erb +12 -16
- data/app/views/spree/admin/variants/new.html.erb +1 -3
- data/app/views/spree/admin/zones/edit.html.erb +0 -3
- data/app/views/spree/admin/zones/index.html.erb +2 -6
- data/app/views/spree/admin/zones/new.html.erb +0 -3
- data/app/views/spree/layouts/admin.html.erb +9 -30
- data/config/routes.rb +0 -4
- data/lib/spree/backend.rb +2 -1
- data/solidus_backend.gemspec +3 -1
- data/spec/controllers/spree/admin/orders_controller_spec.rb +0 -5
- data/spec/controllers/spree/admin/payments_controller_spec.rb +1 -1
- data/spec/controllers/spree/admin/search_controller_spec.rb +2 -2
- data/spec/features/admin/configuration/payment_methods_spec.rb +1 -1
- data/spec/features/admin/configuration/zones_spec.rb +1 -1
- data/spec/features/admin/orders/adjustments_spec.rb +1 -1
- data/spec/features/admin/orders/cancelling_and_resuming_spec.rb +4 -4
- data/spec/features/admin/orders/cancelling_inventory_spec.rb +1 -1
- data/spec/features/admin/orders/customer_details_spec.rb +8 -1
- data/spec/features/admin/orders/listing_spec.rb +1 -1
- data/spec/features/admin/orders/new_order_spec.rb +3 -3
- data/spec/features/admin/orders/order_details_spec.rb +17 -16
- data/spec/features/admin/orders/payments_spec.rb +4 -4
- data/spec/features/admin/orders/risk_analysis_spec.rb +2 -2
- data/spec/features/admin/orders/shipments_spec.rb +1 -1
- data/spec/features/admin/products/edit/images_spec.rb +1 -1
- data/spec/features/admin/store_credits_spec.rb +3 -3
- data/spec/features/admin/stores_spec.rb +35 -0
- data/spec/features/admin/users_spec.rb +60 -13
- data/spec/spec_helper.rb +9 -4
- data/vendor/assets/javascripts/solidus_admin/bootstrap.js +657 -361
- data/vendor/assets/javascripts/solidus_admin/popover.js +4 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_alert.scss +4 -11
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_badge.scss +4 -33
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_breadcrumb.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_button-group.scss +11 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_buttons.scss +13 -42
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_card.scss +27 -80
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_carousel.scss +24 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_close.scss +0 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom-forms.scss +27 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_dropdown.scss +15 -48
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_forms.scss +70 -68
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_functions.scss +90 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_grid.scss +3 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_images.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_input-group.scss +6 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_jumbotron.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_list-group.scss +9 -36
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_media.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_mixins.scss +2 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_modal.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_nav.scss +15 -16
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_navbar.scss +70 -54
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_pagination.scss +3 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_popover.scss +96 -72
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_print.scss +1 -9
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_progress.scss +4 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_reboot.scss +187 -95
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tables.scss +34 -19
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_tooltip.scss +52 -35
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_type.scss +8 -28
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_utilities.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_variables.scss +286 -410
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-grid.scss +2 -8
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap-reboot.scss +1 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/bootstrap.scss +2 -15
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_alert.scss +4 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_badge.scss +6 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_border-radius.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_box-shadow.scss +5 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_breakpoints.scss +23 -13
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_buttons.scss +11 -14
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_clearfix.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_forms.scss +57 -55
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_gradients.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid-framework.scss +9 -18
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_grid.scss +12 -65
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss +6 -6
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_list-group.scss +2 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_nav-divider.scss +3 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_pagination.scss +1 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_reset-text.scss +4 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_resize.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_screen-reader.scss +5 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_text-truncate.scss +1 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transition.scss +9 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_visibility.scss +2 -2
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_background.scss +4 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_borders.scss +20 -5
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_display.scss +36 -1
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_flex.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_position.scss +5 -3
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_spacing.scss +10 -12
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_text.scss +5 -17
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/utilities/_visibility.scss +4 -48
- metadata +73 -34
- data/app/assets/stylesheets/spree/backend/shared/_skeleton.scss +0 -242
- data/app/controllers/spree/admin/countries_controller.rb +0 -9
- data/app/controllers/spree/admin/states_controller.rb +0 -29
- data/app/helpers/spree/admin/reimbursements_helper.rb +0 -14
- data/app/views/spree/admin/countries/_form.html.erb +0 -22
- data/app/views/spree/admin/countries/edit.html.erb +0 -19
- data/app/views/spree/admin/countries/index.html.erb +0 -49
- data/app/views/spree/admin/countries/new.html.erb +0 -18
- data/app/views/spree/admin/search/products.rabl +0 -9
- data/app/views/spree/admin/search/users.rabl +0 -30
- data/app/views/spree/admin/shared/_areas_tabs.html.erb +0 -19
- data/app/views/spree/admin/states/_form.html.erb +0 -14
- data/app/views/spree/admin/states/_state_list.html.erb +0 -33
- data/app/views/spree/admin/states/edit.html.erb +0 -19
- data/app/views/spree/admin/states/index.html.erb +0 -39
- data/app/views/spree/admin/states/new.html.erb +0 -17
- data/app/views/spree/admin/style_guide/topics/typography/_tags.html.erb +0 -25
- data/app/views/spree/admin/taxons/search.rabl +0 -5
- data/app/views/spree/admin/variants/new.js.erb +0 -1
- data/spec/features/admin/configuration/countries_spec.rb +0 -22
- data/spec/features/admin/configuration/states_spec.rb +0 -64
- data/spec/helpers/admin/reimbursements_helper_spec.rb +0 -34
- data/vendor/assets/javascripts/solidus_admin/tether.js +0 -1726
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_custom.scss +0 -4
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/_normalize.scss +0 -461
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_cards.scss +0 -47
- data/vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_transforms.scss +0 -14
@@ -1,7 +1,11 @@
|
|
1
1
|
<header id="order_tab_summary" data-hook>
|
2
2
|
<dl class="additional-info">
|
3
3
|
<dt class="order-state" id="order_status" data-hook><%= Spree.t(:status) %>:</dt>
|
4
|
-
<dd class="order-state"
|
4
|
+
<dd class="order-state">
|
5
|
+
<span class="pill pill-<%= @order.state %>">
|
6
|
+
<%= Spree.t(@order.state, scope: :order_state) %>
|
7
|
+
</span>
|
8
|
+
</dd>
|
5
9
|
|
6
10
|
<% if @order.user.present? %>
|
7
11
|
<dt data-hook='admin_order_user_link'><%= Spree.t(:user) %>:</dt>
|
@@ -25,11 +29,23 @@
|
|
25
29
|
<dt data-hook='admin_order_tab_total_title'><%= Spree::Order.human_attribute_name(:total) %>:</dt>
|
26
30
|
<dd id='order_total'><%= @order.display_total.to_html %></dd>
|
27
31
|
|
28
|
-
|
29
|
-
|
32
|
+
<% if @order.shipment_state %>
|
33
|
+
<dt class="order-shipment_state"><%= Spree::Shipment.model_name.human %>: </dt>
|
34
|
+
<dd class="order-shipment_state" id='shipment_status'>
|
35
|
+
<span class="pill pill-<%= @order.shipment_state %>">
|
36
|
+
<%= Spree.t(@order.shipment_state, scope: :shipment_states) %>
|
37
|
+
</span>
|
38
|
+
</dd>
|
39
|
+
<% end %>
|
30
40
|
|
31
|
-
|
32
|
-
|
41
|
+
<% if @order.payment_state %>
|
42
|
+
<dt class="order-payment_state"><%= Spree::Payment.model_name.human %>: </dt>
|
43
|
+
<dd class="order-payment_state" id='payment_status'>
|
44
|
+
<span class="pill pill-<%= @order.payment_state %>">
|
45
|
+
<%= Spree.t(@order.payment_state, scope: :payment_states) %>
|
46
|
+
</span>
|
47
|
+
</dd>
|
48
|
+
<% end %>
|
33
49
|
|
34
50
|
<% if @order.completed? %>
|
35
51
|
<dt data-hook='admin_order_tab_date_completed_title'><%= Spree::Order.human_attribute_name(:completed_at) %>:</dt>
|
@@ -14,13 +14,13 @@
|
|
14
14
|
</thead>
|
15
15
|
<tbody>
|
16
16
|
<% refunds.each do |refund| %>
|
17
|
-
<tr id="<%= dom_id(refund) %>" data-hook="refunds_row"
|
17
|
+
<tr id="<%= dom_id(refund) %>" data-hook="refunds_row">
|
18
18
|
<td><%= pretty_time(refund.created_at) %></td>
|
19
|
-
<td
|
20
|
-
<td class="
|
21
|
-
<td
|
22
|
-
<td
|
23
|
-
<td
|
19
|
+
<td><%= refund.payment.number %></td>
|
20
|
+
<td class="amount"><%= refund.display_amount %></td>
|
21
|
+
<td><%= payment_method_name(refund.payment) %></td>
|
22
|
+
<td><%= refund.transaction_id %></td>
|
23
|
+
<td><%= truncate(refund.reason.name, length: 100) %></td>
|
24
24
|
<% if show_actions %>
|
25
25
|
<td class="actions">
|
26
26
|
<%= link_to_with_icon 'edit', Spree.t('actions.edit'), edit_admin_order_payment_refund_path(refund.payment.order, refund.payment, refund), no_text: true %>
|
@@ -7,10 +7,6 @@
|
|
7
7
|
<%= tab :payments, url: spree.admin_payment_methods_path %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<% if can?(:display, Spree::Zone) || can?(:display, Spree::Country) || can?(:display, Spree::State) %>
|
11
|
-
<%= tab :areas, url: spree.admin_zones_path %>
|
12
|
-
<% end %>
|
13
|
-
|
14
10
|
<% if can?(:display, Spree::TaxCategory) || can?(:display, Spree::TaxRate) %>
|
15
11
|
<%= tab :taxes, url: spree.admin_tax_categories_path %>
|
16
12
|
<% end %>
|
@@ -23,4 +19,8 @@
|
|
23
19
|
<% if can?(:display, Spree::ShippingMethod) || can?(:display, Spree::ShippingCategory) || can?(:display, Spree::StockLocation) %>
|
24
20
|
<%= tab :shipping, url: spree.admin_shipping_methods_path, match_path: %r(shipping_methods|shipping_categories|stock_locations) %>
|
25
21
|
<% end %>
|
22
|
+
|
23
|
+
<% if can?(:display, Spree::Zone) %>
|
24
|
+
<%= tab :zones, url: spree.admin_zones_path %>
|
25
|
+
<% end %>
|
26
26
|
</ul>
|
@@ -25,18 +25,20 @@
|
|
25
25
|
<thead>
|
26
26
|
<tr data-hook="named_types_header">
|
27
27
|
<th><%= Spree.t(:name) %></th>
|
28
|
-
<th><%= Spree.t(:
|
28
|
+
<th><%= Spree.t(:state) %></th>
|
29
29
|
<th class="actions"></th>
|
30
30
|
</tr>
|
31
31
|
</thead>
|
32
32
|
<tbody>
|
33
33
|
<% @collection.each do |named_type| %>
|
34
|
-
<tr id="<%= spree_dom_id named_type %>" data-hook="named_type_row"
|
35
|
-
<td
|
34
|
+
<tr id="<%= spree_dom_id named_type %>" data-hook="named_type_row">
|
35
|
+
<td>
|
36
36
|
<%= named_type.name %>
|
37
37
|
</td>
|
38
|
-
<td
|
39
|
-
|
38
|
+
<td>
|
39
|
+
<span class="pill pill-<%= named_type.active? ? 'active' : 'inactive' %>">
|
40
|
+
<%= Spree.t(named_type.active? ? :active : :inactive) %>
|
41
|
+
</span>
|
40
42
|
</td>
|
41
43
|
<td class="actions">
|
42
44
|
<% if named_type.mutable? && can?(:update, named_type) %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = local_assigns[:html_options] || {} %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.check_box attribute, html_options %>
|
7
|
+
<%= form.label attribute, label %>
|
8
|
+
<% else %>
|
9
|
+
<%= hidden_field_tag name, 0 %>
|
10
|
+
<%= check_box_tag name, 1, value, html_options %>
|
11
|
+
<%= label_tag name, label %>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = {class: 'input_decimal fullwidth'}.update(local_assigns[:html_options] || {}) %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.label attribute, label %>
|
7
|
+
<%= form.text_field attribute, html_options %>
|
8
|
+
<% else %>
|
9
|
+
<%= label_tag name, label %>
|
10
|
+
<%= text_field_tag name, value, html_options %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = {class: 'input_integer fullwidth'}.update(local_assigns[:html_options] || {}) %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.label attribute, label %>
|
7
|
+
<%= form.number_field attribute, html_options %>
|
8
|
+
<% else %>
|
9
|
+
<%= label_tag name, label %>
|
10
|
+
<%= number_field_tag name, value, html_options %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = {class: 'password_string fullwidth'}.update(local_assigns[:html_options] || {}) %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.label attribute, label %>
|
7
|
+
<%= form.password_field attribute, html_options %>
|
8
|
+
<% else %>
|
9
|
+
<%= label_tag name, label %>
|
10
|
+
<%= password_field_tag name, value, html_options %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = {class: 'input_string fullwidth'}.update(local_assigns[:html_options] || {}) %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.label attribute, label %>
|
7
|
+
<%= form.text_field attribute, html_options %>
|
8
|
+
<% else %>
|
9
|
+
<%= label_tag name, label %>
|
10
|
+
<%= text_field_tag name, value, html_options %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% label = local_assigns[:label].presence %>
|
2
|
+
<% html_options = {cols: 85, rows: 15}.update(local_assigns[:html_options] || {}) %>
|
3
|
+
|
4
|
+
<div class="field">
|
5
|
+
<% if local_assigns[:form] %>
|
6
|
+
<%= form.label attribute, label %>
|
7
|
+
<%= form.text_area attribute, html_options %>
|
8
|
+
<% else %>
|
9
|
+
<%= label_tag name, label %>
|
10
|
+
<%= text_area_tag name, value, html_options %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -27,8 +27,8 @@
|
|
27
27
|
</thead>
|
28
28
|
<tbody>
|
29
29
|
<% @shipping_categories.each do |shipping_category|%>
|
30
|
-
<tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row"
|
31
|
-
<td
|
30
|
+
<tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row">
|
31
|
+
<td><%= shipping_category.name %></td>
|
32
32
|
<td class="actions">
|
33
33
|
<% if can?(:udpate, shipping_category) %>
|
34
34
|
<%= link_to_edit shipping_category, no_text: true %>
|
@@ -33,11 +33,11 @@
|
|
33
33
|
</thead>
|
34
34
|
<tbody>
|
35
35
|
<% @shipping_methods.includes(:zones, :calculator).each do |shipping_method|%>
|
36
|
-
<tr id="<%= spree_dom_id shipping_method %>" data-hook="admin_shipping_methods_index_rows"
|
37
|
-
<td
|
38
|
-
<td
|
39
|
-
<td
|
40
|
-
<td
|
36
|
+
<tr id="<%= spree_dom_id shipping_method %>" data-hook="admin_shipping_methods_index_rows">
|
37
|
+
<td><%= shipping_method.admin_name + ' / ' if shipping_method.admin_name.present? %><%= shipping_method.name %></td>
|
38
|
+
<td><%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %></td>
|
39
|
+
<td><%= shipping_method.calculator.description %></td>
|
40
|
+
<td><%= shipping_method.available_to_users? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
41
41
|
<td data-hook="admin_shipping_methods_index_row_actions" class="actions">
|
42
42
|
<% if can?(:update, shipping_method) %>
|
43
43
|
<%= link_to_edit shipping_method, no_text: true %>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%- row_count = @stock_item_stock_locations.count + 2 %>
|
26
26
|
<tbody class="variant-stock-items">
|
27
27
|
<tr id="<%= spree_dom_id variant %>">
|
28
|
-
<td class="
|
28
|
+
<td class="no-padding" rowspan="<%= row_count %>">
|
29
29
|
<div class='variant-container'>
|
30
30
|
<div class='variant-image'>
|
31
31
|
<%= render 'spree/admin/shared/image', image: variant.display_image(fallback: false), size: :small %>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
</div>
|
47
47
|
</div>
|
48
48
|
</td>
|
49
|
-
<td
|
49
|
+
<td rowspan="<%= row_count %>">
|
50
50
|
<table class='stock-variant-field-table'>
|
51
51
|
<% variant.option_values.sort_by(&:option_type_name).each do |option_value| %>
|
52
52
|
<tr>
|
@@ -78,7 +78,7 @@
|
|
78
78
|
<%= number_field_tag :count_on_hand, "", class: 'fullwidth', id: "variant-count-on-hand-#{variant.id}" %>
|
79
79
|
</td>
|
80
80
|
<td class="actions">
|
81
|
-
<%= link_to_with_icon 'plus', Spree.t('actions.create'), '#', no_text: true, data: {action: '
|
81
|
+
<%= link_to_with_icon 'plus', Spree.t('actions.create'), '#', no_text: true, data: { action: 'add' }, class: "submit" %>
|
82
82
|
</td>
|
83
83
|
</tr>
|
84
84
|
<% end %>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
</colgroup>
|
33
33
|
<thead>
|
34
34
|
<tr data-hook="stock_locations_header">
|
35
|
-
<th
|
35
|
+
<th></th>
|
36
36
|
<th><%= Spree::StockLocation.human_attribute_name(:name) %></th>
|
37
37
|
<th><%= Spree::StockLocation.human_attribute_name(:state_id) %></th>
|
38
38
|
<th><%= plural_resource_name(Spree::StockMovement) %></th>
|
@@ -44,21 +44,19 @@
|
|
44
44
|
@edit_url = edit_admin_stock_location_path(stock_location)
|
45
45
|
@delete_url = admin_stock_location_path(stock_location)
|
46
46
|
%>
|
47
|
-
<tr id="<%= spree_dom_id stock_location %>" data-hook="stock_location_row"
|
48
|
-
<td
|
47
|
+
<tr id="<%= spree_dom_id stock_location %>" data-hook="stock_location_row">
|
48
|
+
<td>
|
49
49
|
<% if can?(:update_positions, Spree::StockLocation) %>
|
50
50
|
<span class="handle"></span>
|
51
51
|
<% end %>
|
52
52
|
</td>
|
53
|
-
<td
|
54
|
-
<td
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
<span class="state inactive"><%= Spree.t('inactive') %></span>
|
59
|
-
<% end %>
|
53
|
+
<td><%= admin_stock_location_display_name(stock_location) %></td>
|
54
|
+
<td>
|
55
|
+
<span class="pill pill-<%= stock_location.active? ? 'active' : 'inactive' %>">
|
56
|
+
<%= Spree.t(stock_location.active? ? :active : :inactive) %>
|
57
|
+
</span>
|
60
58
|
</td>
|
61
|
-
<td
|
59
|
+
<td>
|
62
60
|
<% if can?(:display, Spree::StockMovement) %>
|
63
61
|
<%= link_to plural_resource_name(Spree::StockMovement), admin_stock_location_stock_movements_path(stock_location.id) %>
|
64
62
|
<% else %>
|
@@ -27,12 +27,12 @@
|
|
27
27
|
</thead>
|
28
28
|
<tbody>
|
29
29
|
<% @stock_movements.each do |stock_movement|%>
|
30
|
-
<tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows"
|
31
|
-
<td
|
30
|
+
<tr id="<%= spree_dom_id stock_movement %>" data-hook="admin_stock_movements_index_rows">
|
31
|
+
<td>
|
32
32
|
<%= display_variant(stock_movement) %>
|
33
33
|
</td>
|
34
|
-
<td
|
35
|
-
<td
|
34
|
+
<td><%= stock_movement.quantity %></td>
|
35
|
+
<td><%= pretty_originator(stock_movement) %></td>
|
36
36
|
</tr>
|
37
37
|
<% end %>
|
38
38
|
</tbody>
|
@@ -5,5 +5,5 @@
|
|
5
5
|
<%= link_to_with_icon 'trash', Spree.t('actions.delete'), '#', no_text: true, data: { action: 'remove', id: item.id } if quantity_type == 'expected' && can?(:destroy, item) %>
|
6
6
|
</td>
|
7
7
|
<% else %>
|
8
|
-
<td
|
8
|
+
<td><%= item.send("#{quantity_type}_quantity") %></td>
|
9
9
|
<% end %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<% transfer_items.each do |item| %>
|
20
20
|
<%- variant = item.variant %>
|
21
21
|
<tr data-transfer-item-id="<%= item.id %>" class='<%= "deleted" if variant.deleted? %>'>
|
22
|
-
<td class="
|
22
|
+
<td class="no-padding">
|
23
23
|
<div class='variant-container' data-variant-id="<%= variant.id %>">
|
24
24
|
<div class='variant-image'>
|
25
25
|
<%= render 'spree/admin/shared/image', image: variant.display_image(fallback: false), size: :small %>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</div>
|
50
50
|
</div>
|
51
51
|
</td>
|
52
|
-
<td
|
52
|
+
<td>
|
53
53
|
<table class='stock-variant-field-table'>
|
54
54
|
<% variant.option_values.sort_by(&:option_type_name).each do |option_value| %>
|
55
55
|
<tr>
|
@@ -87,21 +87,25 @@
|
|
87
87
|
</thead>
|
88
88
|
<tbody>
|
89
89
|
<% @stock_transfers.each do |stock_transfer| %>
|
90
|
-
<tr id="<%= spree_dom_id stock_transfer %>"
|
90
|
+
<tr id="<%= spree_dom_id stock_transfer %>">
|
91
91
|
<td><%= handle_stock_transfer(stock_transfer) %></td>
|
92
92
|
<td><%= stock_transfer.source_location.name %></td>
|
93
93
|
<td><%= stock_transfer.destination_location.try(:name) %></td>
|
94
|
-
<td
|
95
|
-
<td
|
94
|
+
<td><%= stock_transfer.expected_item_count %></td>
|
95
|
+
<td><%= stock_transfer.received_item_count %></td>
|
96
96
|
<td><%= stock_transfer.shipped_at.try(:to_date) %></td>
|
97
|
-
<td
|
97
|
+
<td>
|
98
|
+
<span class="pill pill-<%= stock_transfer.closed? ? 'complete' : 'pending' %>">
|
99
|
+
<%= Spree.t(stock_transfer.closed? ? :closed : :open) %>
|
100
|
+
</span>
|
101
|
+
</td>
|
98
102
|
<td class="actions">
|
99
103
|
<% if stock_transfer.receivable? && can?(:edit, stock_transfer) %>
|
100
|
-
<%= link_to_with_icon 'download', Spree.t('actions.receive'), receive_admin_stock_transfer_path(stock_transfer), no_text: true, data: { action: '
|
104
|
+
<%= link_to_with_icon 'download', Spree.t('actions.receive'), receive_admin_stock_transfer_path(stock_transfer), no_text: true, data: { action: 'receive' } %>
|
101
105
|
<% elsif !stock_transfer.closed? && can?(:edit, stock_transfer) %>
|
102
106
|
<%= link_to_with_icon 'edit', Spree.t('actions.edit'), stock_transfer_edit_or_ship_path(stock_transfer), no_text: true, data: { action: 'edit' } %>
|
103
107
|
<% elsif can?(:show, stock_transfer) %>
|
104
|
-
<%= link_to_with_icon 'eye', Spree.t(:show), admin_stock_transfer_path(stock_transfer), no_text: true, data: { action: '
|
108
|
+
<%= link_to_with_icon 'eye', Spree.t(:show), admin_stock_transfer_path(stock_transfer), no_text: true, data: { action: 'show' } %>
|
105
109
|
<% end %>
|
106
110
|
</td>
|
107
111
|
</tr>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<fieldset>
|
26
26
|
<legend align='center'><%= Spree.t(:tracking_info) %></legend>
|
27
27
|
<%= form_for [:admin, @stock_transfer] do |f| %>
|
28
|
-
<div class='field-block
|
28
|
+
<div class='field-block'>
|
29
29
|
<div class='field'>
|
30
30
|
<%= f.label :tracking_number %>
|
31
31
|
<%= f.text_field :tracking_number, value: @stock_transfer.tracking_number, maxlength: 255, size: 0, class: 'fullwidth' %>
|
@@ -12,56 +12,60 @@
|
|
12
12
|
<% end %>
|
13
13
|
|
14
14
|
<% if @store_credits.any? %>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
<% @store_credits.group_by(&:currency).each do |currency, credits| %>
|
16
|
+
<fieldset class="sc-current-balance">
|
17
|
+
<legend>
|
18
|
+
<%= currency %> <%= Spree.t("admin.store_credits.current_balance") %>
|
19
|
+
<% total = credits.sum(&:amount_remaining) %>
|
20
|
+
<%= Spree::Money.new(total, currency: currency) %>
|
21
|
+
</legend>
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
23
|
+
<table class="sc-table">
|
24
|
+
<thead>
|
25
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:amount_credited) %></th>
|
26
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:amount_used) %></th>
|
27
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:amount_authorized) %></th>
|
28
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:category_id) %></th>
|
29
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:created_by_id) %></th>
|
30
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:created_at) %></th>
|
31
|
+
<th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:invalidated_at) %></th>
|
32
|
+
<th data-hook="admin_store_credits_index_header_actions" class="actions"></th>
|
33
|
+
<thead>
|
34
|
+
<tbody>
|
35
|
+
<% credits.each do |store_credit| %>
|
36
|
+
<tr>
|
37
|
+
<td>
|
38
|
+
<span><%= store_credit.display_amount.to_html %></span>
|
39
|
+
</td>
|
40
|
+
<td>
|
41
|
+
<span><%= store_credit.display_amount_used.to_html %></span>
|
42
|
+
</td>
|
43
|
+
<td>
|
44
|
+
<span><%= store_credit.display_amount_authorized.to_html %></span>
|
45
|
+
</td>
|
46
|
+
<td>
|
47
|
+
<span><%= store_credit.category_name %></span>
|
48
|
+
</td>
|
49
|
+
<td>
|
50
|
+
<span><%= store_credit.created_by_email %></span>
|
51
|
+
</td>
|
52
|
+
<td>
|
53
|
+
<span><%= l store_credit.created_at.to_date %></span>
|
54
|
+
</td>
|
55
|
+
<td>
|
56
|
+
<span><%= store_credit.invalidated? %></span>
|
57
|
+
</td>
|
58
|
+
<td class="actions" data-hook="admin_store_credits_index_row_actions">
|
59
|
+
<% if can?(:show, store_credit) %>
|
60
|
+
<%= link_to_edit_url admin_user_store_credit_path(@user, store_credit), { no_text: true, class: 'edit' } %>
|
61
|
+
<% end %>
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
<% end %>
|
65
|
+
</tbody>
|
66
|
+
</table>
|
67
|
+
</fieldset>
|
68
|
+
<% end %>
|
65
69
|
<% else %>
|
66
70
|
<div class="col-9 no-objects-found">
|
67
71
|
<%= render 'spree/admin/shared/no_objects_found',
|
@@ -69,4 +73,3 @@
|
|
69
73
|
new_resource_url: new_object_url %>
|
70
74
|
</div>
|
71
75
|
<% end %>
|
72
|
-
</fieldset>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<td class='js-memo-text'>
|
50
50
|
<%= @store_credit.memo %>
|
51
51
|
</td>
|
52
|
-
<td class='actions
|
52
|
+
<td class='actions'>
|
53
53
|
<% if can?(:update, @store_credit) %>
|
54
54
|
<%= link_to '', '#', class: 'js-edit-memo edit-method fa fa-edit no-text with-tip', data: { action: 'edit' }, title: Spree.t('actions.edit') %>
|
55
55
|
<% end %>
|
@@ -64,10 +64,10 @@
|
|
64
64
|
<%= text_area_tag 'store_credit[memo]', @store_credit.memo %>
|
65
65
|
<% end %>
|
66
66
|
</td>
|
67
|
-
<td class='actions
|
67
|
+
<td class='actions'>
|
68
68
|
<% if can?(:update, @store_credit) %>
|
69
69
|
<%= link_to '', '#', class: 'js-save-memo fa fa-check no-text with-tip', data: { user_id: @user.id, store_credit_id: @store_credit.id, action: 'save' }, title: Spree.t('actions.save') %>
|
70
|
-
<%= link_to '', '#', class: 'js-cancel-memo fa fa-
|
70
|
+
<%= link_to '', '#', class: 'js-cancel-memo fa fa-cancel no-text with-tip', data: { action: 'cancel' }, title: Spree.t('actions.cancel') %>
|
71
71
|
<% end %>
|
72
72
|
</td>
|
73
73
|
</tr>
|
@@ -101,9 +101,9 @@
|
|
101
101
|
<%= pretty_time(event.created_at) %>
|
102
102
|
</td>
|
103
103
|
<td><%= store_credit_event_admin_action_name(event) %></td>
|
104
|
-
<td
|
104
|
+
<td><%= event.display_amount %></td>
|
105
105
|
<td><%= store_credit_event_originator_link(event) %></td>
|
106
|
-
<td
|
106
|
+
<td><%= event.display_user_total_amount %></td>
|
107
107
|
<td><%= event.update_reason.try!(:name) %></td>
|
108
108
|
</tr>
|
109
109
|
<% end %>
|
@@ -40,6 +40,15 @@
|
|
40
40
|
<%= f.error_message_on :mail_from_address %>
|
41
41
|
<% end %>
|
42
42
|
|
43
|
+
<%= f.field_container :default_currency do %>
|
44
|
+
<%= f.label :default_currency %>
|
45
|
+
<%= f.select :default_currency,
|
46
|
+
::Money::Currency.all.map(&:iso_code),
|
47
|
+
{ include_blank: true },
|
48
|
+
{ class: 'select2 fullwidth' } %>
|
49
|
+
<%= f.error_message_on :default_currency %>
|
50
|
+
<% end %>
|
51
|
+
|
43
52
|
<%= f.field_container :cart_tax_country_iso do %>
|
44
53
|
<%= f.label :cart_tax_country_iso %>
|
45
54
|
<%= f.field_hint :cart_tax_country_iso %>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<p>
|
2
|
+
Bootstrap modals are ready to use by rendering the shared partial and creating
|
3
|
+
a trigger.
|
4
|
+
</p>
|
5
|
+
|
6
|
+
<p>The partial requires three locals:</p>
|
7
|
+
|
8
|
+
<ul>
|
9
|
+
<li>
|
10
|
+
<code>target</code>: this should match the <code>data-target</code> in your
|
11
|
+
trigger
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
<code>title</code>: this will appear in the modal's header
|
15
|
+
</li>
|
16
|
+
<li>
|
17
|
+
<code>content</code>: this will appear in the modal's body. This content can
|
18
|
+
be whatever you like – even another partial.
|
19
|
+
</li>
|
20
|
+
</ul>
|
21
|
+
|
22
|
+
<%- snippet = capture do %>
|
23
|
+
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#your-target">
|
24
|
+
Launch demo modal
|
25
|
+
</button>
|
26
|
+
|
27
|
+
<%= render(
|
28
|
+
"spree/admin/shared/modal",
|
29
|
+
target: "your-target",
|
30
|
+
title: "Your Title",
|
31
|
+
content: "The modal's content, could be another partial"
|
32
|
+
) %>
|
33
|
+
<%- end %>
|
34
|
+
|
35
|
+
<div class="style-guide-code half">
|
36
|
+
<pre><code class="language-html"><%= escape_once snippet %></code></pre>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="style-guide-result half">
|
40
|
+
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#your-target">
|
41
|
+
Demo Modal
|
42
|
+
</button>
|
43
|
+
|
44
|
+
<%= render(
|
45
|
+
"spree/admin/shared/modal",
|
46
|
+
target: "your-target",
|
47
|
+
title: "Your Title",
|
48
|
+
content: "The modal's content, could be another partial"
|
49
|
+
) %>
|
50
|
+
</div>
|