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
@@ -3,38 +3,25 @@ table {
|
|
3
3
|
@extend .table;
|
4
4
|
border-spacing: 0;
|
5
5
|
|
6
|
-
|
7
|
-
border-right: 1px solid $color-border;
|
8
|
-
border-bottom: 1px solid $color-border;
|
6
|
+
&.sortable td {
|
9
7
|
vertical-align: middle;
|
10
|
-
|
11
|
-
|
12
|
-
img {
|
13
|
-
border: 1px solid transparent;
|
14
|
-
}
|
15
|
-
|
16
|
-
&:first-child {
|
17
|
-
border-left: 1px solid $color-border;
|
18
|
-
}
|
19
|
-
|
20
|
-
a {
|
21
|
-
border-bottom: 1px dotted lighten($link-color, 10);
|
8
|
+
}
|
22
9
|
|
23
|
-
|
24
|
-
|
25
|
-
}
|
26
|
-
}
|
10
|
+
th, td {
|
11
|
+
text-overflow: ellipsis;
|
27
12
|
|
28
13
|
.handle {
|
14
|
+
@extend .fa;
|
15
|
+
@extend .fa-bars;
|
16
|
+
cursor: move;
|
29
17
|
display: block !important;
|
30
18
|
text-align: center;
|
31
|
-
padding
|
19
|
+
padding: 3px 0;
|
32
20
|
}
|
33
21
|
|
34
22
|
&.actions {
|
35
|
-
|
36
|
-
|
37
|
-
text-align: center;
|
23
|
+
text-align: right;
|
24
|
+
padding-left: 1.25rem;
|
38
25
|
|
39
26
|
span.text {
|
40
27
|
font-size: $font-size-base;
|
@@ -42,29 +29,29 @@ table {
|
|
42
29
|
|
43
30
|
.fa {
|
44
31
|
font-size: 120%;
|
45
|
-
background-color: very-light($color-3);
|
46
|
-
border: 1px solid $color-border;
|
47
|
-
border-radius: 15px;
|
48
|
-
width: 29px;
|
49
|
-
height: 29px;
|
50
32
|
display: inline-block;
|
51
|
-
padding
|
33
|
+
padding: 2px 0;
|
34
|
+
text-align: center;
|
35
|
+
border-bottom: none;
|
36
|
+
vertical-align: middle;
|
52
37
|
|
53
38
|
&:before {
|
54
|
-
text-align: center !important;
|
55
39
|
padding: 0;
|
56
40
|
width: 27px;
|
57
41
|
display: inline-block;
|
58
|
-
|
59
|
-
|
60
|
-
&:hover {
|
61
|
-
border-color: transparent;
|
42
|
+
vertical-align: middle;
|
62
43
|
}
|
63
44
|
}
|
64
45
|
|
65
46
|
button[class*='fa-'] {
|
66
47
|
color: $link-color;
|
48
|
+
background-color: transparent;
|
49
|
+
border: 0 none;
|
67
50
|
padding: 0 !important;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
background-color: transparent;
|
54
|
+
}
|
68
55
|
}
|
69
56
|
|
70
57
|
.fa-envelope-alt, .fa-eye-open {
|
@@ -72,33 +59,33 @@ table {
|
|
72
59
|
padding-left: 0px;
|
73
60
|
|
74
61
|
&:hover {
|
75
|
-
|
76
|
-
color: $color-1;
|
62
|
+
color: $color-3;
|
77
63
|
}
|
78
64
|
}
|
65
|
+
|
79
66
|
.fa-trash:hover, .fa-void:hover, .fa-failure:hover {
|
80
|
-
|
81
|
-
color: $color-1;
|
67
|
+
color: theme-color("danger");
|
82
68
|
}
|
69
|
+
|
83
70
|
.fa-cancel:hover {
|
84
|
-
|
85
|
-
color: $color-1;
|
71
|
+
color: theme-color("warning");
|
86
72
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
73
|
+
|
74
|
+
.fa-edit:hover, .fa-capture:hover, .fa-ok:hover, .fa-plus:hover,
|
75
|
+
.fa-save:hover, .fa-arrows-h:hover, .fa-check:hover {
|
76
|
+
color: theme-color("success");
|
90
77
|
}
|
78
|
+
|
91
79
|
.fa-copy:hover {
|
92
|
-
|
93
|
-
color: $color-1;
|
80
|
+
color: theme-color("warning");
|
94
81
|
}
|
82
|
+
|
95
83
|
.fa-thumbs-up:hover {
|
96
|
-
|
97
|
-
color: $color-1;
|
84
|
+
color: theme-color("success");
|
98
85
|
}
|
86
|
+
|
99
87
|
.fa-thumbs-down:hover {
|
100
|
-
|
101
|
-
color: $color-1;
|
88
|
+
color: theme-color("danger");
|
102
89
|
}
|
103
90
|
}
|
104
91
|
|
@@ -106,66 +93,27 @@ table {
|
|
106
93
|
input[type="text"] {
|
107
94
|
width: 100%;
|
108
95
|
}
|
109
|
-
|
110
|
-
&.no-border {
|
111
|
-
border-right: none;
|
112
|
-
}
|
113
|
-
|
114
|
-
.handle {
|
115
|
-
@extend .fa;
|
116
|
-
@extend .fa-bars;
|
117
|
-
cursor: move;
|
118
|
-
}
|
119
|
-
|
120
96
|
}
|
121
97
|
|
122
98
|
&.no-borders {
|
123
99
|
td, th {
|
124
100
|
border: none !important;
|
125
101
|
}
|
126
|
-
|
127
102
|
}
|
128
103
|
|
129
104
|
th:not(.wrap-text), td.actions, td.no-wrap, .state {
|
130
105
|
white-space: nowrap;
|
131
106
|
}
|
132
107
|
|
133
|
-
|
134
|
-
|
135
|
-
border-top: 1px solid $color-border;
|
136
|
-
border-bottom: none;
|
137
|
-
background-color: $color-tbl-thead;
|
138
|
-
text-align: center;
|
139
|
-
font-weight: $font-weight-bold;
|
140
|
-
vertical-align: top;
|
141
|
-
}
|
108
|
+
th a {
|
109
|
+
color: $color-4;
|
142
110
|
}
|
143
111
|
|
144
112
|
tbody {
|
145
113
|
tr {
|
146
|
-
&:first-child th,
|
147
|
-
&:first-child td {
|
148
|
-
border-top: 1px solid $color-border;
|
149
|
-
}
|
150
|
-
&.even td {
|
151
|
-
background-color: $color-tbl-even;
|
152
|
-
|
153
|
-
img {
|
154
|
-
border: 1px solid very-light($color-3, 6);
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
&:hover td {
|
159
|
-
background-color: very-light($color-3, 5);
|
160
|
-
|
161
|
-
img {
|
162
|
-
border: 1px solid $color-border;
|
163
|
-
}
|
164
|
-
}
|
165
|
-
|
166
114
|
&.deleted td {
|
167
|
-
background-color: very-light(
|
168
|
-
border-color: very-light(
|
115
|
+
background-color: very-light(theme-color("danger"), 6);
|
116
|
+
border-color: very-light(theme-color("danger"), 15);
|
169
117
|
}
|
170
118
|
|
171
119
|
&.ui-sortable-placeholder td {
|
@@ -20,12 +20,12 @@ hr {
|
|
20
20
|
// Headings
|
21
21
|
//--------------------------------------------------------------
|
22
22
|
|
23
|
-
h1 { line-height: $font-size
|
24
|
-
h2 { line-height: $font-size
|
25
|
-
h3 { line-height: $font-size
|
26
|
-
h4 { line-height: $font-size
|
27
|
-
h5 { line-height: $font-size
|
28
|
-
h6 { line-height: $font-size
|
23
|
+
h1 { line-height: $h1-font-size + 6 }
|
24
|
+
h2 { line-height: $h1-font-size + 4 }
|
25
|
+
h3 { line-height: $h1-font-size + 2 }
|
26
|
+
h4 { line-height: $h1-font-size }
|
27
|
+
h5 { line-height: $h1-font-size }
|
28
|
+
h6 { line-height: $h1-font-size }
|
29
29
|
|
30
30
|
|
31
31
|
// Lists
|
@@ -10,7 +10,6 @@
|
|
10
10
|
|
11
11
|
@import 'spree/backend/globals/mixins';
|
12
12
|
|
13
|
-
@import 'spree/backend/shared/skeleton';
|
14
13
|
@import 'spree/backend/shared/typography';
|
15
14
|
@import 'spree/backend/shared/images';
|
16
15
|
@import 'spree/backend/shared/tables';
|
@@ -36,6 +35,7 @@
|
|
36
35
|
@import 'spree/backend/components/number_field_update';
|
37
36
|
@import 'spree/backend/components/stock_table';
|
38
37
|
@import 'spree/backend/components/editable_table';
|
38
|
+
@import 'spree/backend/components/pills';
|
39
39
|
@import 'spree/backend/components/tabs';
|
40
40
|
|
41
41
|
@import 'font-awesome';
|
@@ -3,7 +3,7 @@ class Spree::Admin::PromotionActionsController < Spree::Admin::BaseController
|
|
3
3
|
before_action :validate_promotion_action_type, only: :create
|
4
4
|
|
5
5
|
def create
|
6
|
-
@calculators =
|
6
|
+
@calculators = Rails.application.config.spree.calculators.promotion_actions_create_adjustments
|
7
7
|
@promotion_action = @promotion_action_type.new(params[:promotion_action])
|
8
8
|
@promotion_action.promotion = @promotion
|
9
9
|
if @promotion_action.save
|
@@ -39,7 +39,7 @@ module Spree
|
|
39
39
|
def load_data
|
40
40
|
@available_zones = Spree::Zone.order(:name)
|
41
41
|
@tax_categories = Spree::TaxCategory.order(:name)
|
42
|
-
@calculators =
|
42
|
+
@calculators = Rails.application.config.spree.calculators.shipping_methods
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -10,8 +10,7 @@ module Spree
|
|
10
10
|
'fonts',
|
11
11
|
'colors',
|
12
12
|
'lists',
|
13
|
-
'icons'
|
14
|
-
'tags'
|
13
|
+
'icons'
|
15
14
|
],
|
16
15
|
forms: [
|
17
16
|
'building_forms',
|
@@ -22,6 +21,8 @@ module Spree
|
|
22
21
|
'validation'
|
23
22
|
],
|
24
23
|
components: [
|
24
|
+
'pills',
|
25
|
+
'modals',
|
25
26
|
'tabs'
|
26
27
|
],
|
27
28
|
messaging: [
|
@@ -8,7 +8,7 @@ module Spree
|
|
8
8
|
def load_data
|
9
9
|
@available_zones = Spree::Zone.order(:name)
|
10
10
|
@available_categories = Spree::TaxCategory.order(:name)
|
11
|
-
@calculators =
|
11
|
+
@calculators = Rails.application.config.spree.calculators.tax_rates
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -1,11 +1,12 @@
|
|
1
1
|
module Spree
|
2
2
|
module Admin
|
3
3
|
class UsersController < ResourceController
|
4
|
-
rescue_from
|
4
|
+
rescue_from ActiveRecord::DeleteRestrictionError, with: :user_destroy_with_orders_error
|
5
5
|
|
6
6
|
after_action :sign_in_if_change_own_password, only: :update
|
7
7
|
|
8
|
-
before_action :load_roles,
|
8
|
+
before_action :load_roles, only: [:index, :edit, :new]
|
9
|
+
before_action :load_stock_locations, only: [:edit, :new]
|
9
10
|
|
10
11
|
def index
|
11
12
|
respond_with(@collection) do |format|
|
@@ -108,7 +109,9 @@ module Spree
|
|
108
109
|
.limit(params[:limit] || 100)
|
109
110
|
else
|
110
111
|
@search = Spree.user_class.ransack(params[:q])
|
111
|
-
@collection = @search.result.
|
112
|
+
@collection = @search.result.includes(:spree_roles)
|
113
|
+
@collection = @collection.includes(:spree_orders)
|
114
|
+
@collection = @collection.page(params[:page]).per(Spree::Config[:admin_products_per_page])
|
112
115
|
end
|
113
116
|
end
|
114
117
|
|
@@ -140,7 +143,9 @@ module Spree
|
|
140
143
|
|
141
144
|
def load_roles
|
142
145
|
@roles = Spree::Role.all
|
143
|
-
|
146
|
+
if @user
|
147
|
+
@user_roles = @user.spree_roles
|
148
|
+
end
|
144
149
|
end
|
145
150
|
|
146
151
|
def load_stock_locations
|
@@ -34,41 +34,25 @@ module Spree
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
# @deprecated Render `spree/admin/shared/preference_fields/\#{preference_type}' instead
|
37
38
|
def preference_field_tag(name, value, options)
|
38
|
-
|
39
|
-
|
40
|
-
text_field_tag(name, value, preference_field_options(options))
|
41
|
-
when :boolean
|
42
|
-
hidden_field_tag(name, 0, id: "#{name}_hidden") +
|
43
|
-
check_box_tag(name, 1, value, preference_field_options(options))
|
44
|
-
when :string
|
45
|
-
text_field_tag(name, value, preference_field_options(options))
|
46
|
-
when :password
|
47
|
-
password_field_tag(name, value, preference_field_options(options))
|
48
|
-
when :text
|
49
|
-
text_area_tag(name, value, preference_field_options(options))
|
50
|
-
else
|
51
|
-
text_field_tag(name, value, preference_field_options(options))
|
52
|
-
end
|
39
|
+
render "spree/admin/shared/preference_fields/#{options.delete(:type)}",
|
40
|
+
name: name, value: value, html_options: options
|
53
41
|
end
|
42
|
+
deprecate preference_field_tag:
|
43
|
+
"Render `spree/admin/shared/preference_fields/\#{preference_type}' instead",
|
44
|
+
deprecator: Spree::Deprecation
|
54
45
|
|
46
|
+
# @deprecated Render `spree/admin/shared/preference_fields/\#{preference_type}' instead
|
55
47
|
def preference_field_for(form, field, options)
|
56
|
-
|
57
|
-
|
58
|
-
form.text_field(field, preference_field_options(options))
|
59
|
-
when :boolean
|
60
|
-
form.check_box(field, preference_field_options(options))
|
61
|
-
when :string
|
62
|
-
form.text_field(field, preference_field_options(options))
|
63
|
-
when :password
|
64
|
-
form.password_field(field, preference_field_options(options))
|
65
|
-
when :text
|
66
|
-
form.text_area(field, preference_field_options(options))
|
67
|
-
else
|
68
|
-
form.text_field(field, preference_field_options(options))
|
69
|
-
end
|
48
|
+
render "spree/admin/shared/preference_fields/#{options[:type]}",
|
49
|
+
form: form, attribute: field, html_options: options
|
70
50
|
end
|
51
|
+
deprecate preference_field_for:
|
52
|
+
"Render `spree/admin/shared/preference_fields/\#{preference_type}' instead",
|
53
|
+
deprecator: Spree::Deprecation
|
71
54
|
|
55
|
+
# @deprecated Pass an `html_options' hash into preference field partial instead
|
72
56
|
def preference_field_options(options)
|
73
57
|
field_options = case options[:type]
|
74
58
|
when :integer
|
@@ -97,16 +81,29 @@ module Spree
|
|
97
81
|
size: options[:size]
|
98
82
|
})
|
99
83
|
end
|
84
|
+
deprecate preference_field_options: "Pass an `html_options' hash into " \
|
85
|
+
"`render('spree/admin/shared/preference_fields/\#{preference_type}')` instead)",
|
86
|
+
deprecator: Spree::Deprecation
|
100
87
|
|
88
|
+
# @deprecated Please render each preference keys partial instead. Example:
|
89
|
+
# <% @object.preferences.keys.each do |key| %>
|
90
|
+
# <%= render "spree/admin/shared/preference_fields/#{@object.preference_type(key)}",
|
91
|
+
# form: f, attribute: "preferred_#{key}", label: Spree.t(key) %>
|
92
|
+
# <% end %>
|
101
93
|
def preference_fields(object, form)
|
102
94
|
return unless object.respond_to?(:preferences)
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
95
|
+
capture do
|
96
|
+
object.preferences.keys.each do |key|
|
97
|
+
concat render("spree/admin/shared/preference_fields/#{object.preference_type(key)}",
|
98
|
+
form: form, attribute: "preferred_#{key}", label: Spree.t(key))
|
99
|
+
end
|
100
|
+
end
|
109
101
|
end
|
102
|
+
deprecate preference_fields: "Please render each preference key's partial instead. Example: \n" \
|
103
|
+
"<% @object.preferences.keys.each do |key| %>\n" \
|
104
|
+
"<%= render \"spree/admin/shared/preference_fields/\#{@object.preference_type(key)}\", \n" \
|
105
|
+
"form: f, attribute: \"preferred_\#{key}\", label: Spree.t(key) %>\n" \
|
106
|
+
"<% end %>", deprecator: Spree::Deprecation
|
110
107
|
|
111
108
|
def link_to_add_fields(name, target, options = {})
|
112
109
|
name = '' if options[:no_text]
|
@@ -17,10 +17,6 @@ module Spree
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
def stock_transfer_status(stock_transfer)
|
21
|
-
stock_transfer.closed? ? Spree.t(:closed) : Spree.t(:open)
|
22
|
-
end
|
23
|
-
|
24
20
|
def deleted_variant_admin_hint(variant)
|
25
21
|
newer_variant_with_same_sku = Spree::Variant.find_by(sku: variant.sku)
|
26
22
|
hint_type = newer_variant_with_same_sku ? :deleted_explanation_with_replacement : :deleted_explanation
|
@@ -10,7 +10,7 @@ module Spree
|
|
10
10
|
:taxons]
|
11
11
|
REPORT_TABS ||= [:reports]
|
12
12
|
CONFIGURATION_TABS ||= [:stores, :tax_categories,
|
13
|
-
:tax_rates, :zones,
|
13
|
+
:tax_rates, :zones,
|
14
14
|
:payment_methods, :shipping_methods,
|
15
15
|
:shipping_categories, :stock_locations,
|
16
16
|
:refund_reasons, :reimbursement_types, :return_authorization_reasons]
|
@@ -28,12 +28,14 @@
|
|
28
28
|
</thead>
|
29
29
|
<tbody>
|
30
30
|
<% @adjustment_reasons.each do |adjustment_reason| %>
|
31
|
-
<tr id="<%= spree_dom_id adjustment_reason %>" data-hook="adjustment_reason_row"
|
32
|
-
<td
|
31
|
+
<tr id="<%= spree_dom_id adjustment_reason %>" data-hook="adjustment_reason_row">
|
32
|
+
<td>
|
33
33
|
<%= adjustment_reason.name %>
|
34
34
|
</td>
|
35
|
-
<td
|
36
|
-
|
35
|
+
<td>
|
36
|
+
<span class="pill pill-<%= adjustment_reason.active? ? 'active' : 'inactive' %>">
|
37
|
+
<%= Spree.t(adjustment_reason.active? ? :active : :inactive) %>
|
38
|
+
</span>
|
37
39
|
</td>
|
38
40
|
<td class="actions">
|
39
41
|
<%= link_to_edit adjustment_reason, no_text: true %>
|
@@ -4,12 +4,12 @@
|
|
4
4
|
%>
|
5
5
|
<tr id="<%= spree_dom_id(adjustment) %>"
|
6
6
|
data-hook="adjustment_row"
|
7
|
-
class="<%=
|
7
|
+
class="<%= "adjustment-ineligible" if !adjustment.eligible? %>"
|
8
8
|
>
|
9
|
-
<td
|
10
|
-
<td
|
11
|
-
<td
|
12
|
-
<td
|
9
|
+
<td><%= display_adjustable(adjustment.adjustable) %></td>
|
10
|
+
<td><%= adjustment.label %></td>
|
11
|
+
<td><%= adjustment.display_amount.to_html %></td>
|
12
|
+
<td><%= adjustment_state(adjustment) %></td>
|
13
13
|
<td class='actions'>
|
14
14
|
<% unless adjustment.finalized? %>
|
15
15
|
<% if can?(:update, adjustment) %>
|
@@ -11,14 +11,14 @@
|
|
11
11
|
<tbody>
|
12
12
|
<%= render partial: "adjustment", collection: @adjustments %>
|
13
13
|
<tr data-hook="adjustment_buttons">
|
14
|
-
<td class="align-
|
14
|
+
<td class="align-right" colspan="2" style="width: 50%">
|
15
15
|
<% if can? :update, Spree::Adjustment %>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
<%= button_to Spree.t(:unfinalize_all_adjustments), adjustments_unfinalize_admin_order_path(@order), method: :get %>
|
17
|
+
<% end %>
|
18
|
+
</td>
|
19
|
+
<td colspan="2" style="width: 50%">
|
20
|
+
<% if can? :update, Spree::Adjustment %>
|
21
|
+
<%= button_to Spree.t(:finalize_all_adjustments), adjustments_finalize_admin_order_path(@order), method: :get %>
|
22
22
|
<% end %>
|
23
23
|
</td>
|
24
24
|
<td class='actions'> </td>
|
@@ -14,10 +14,10 @@
|
|
14
14
|
|
15
15
|
<thead>
|
16
16
|
<th colspan="2"><%= Spree::LineItem.human_attribute_name(:description) %></th>
|
17
|
-
<th><%= Spree::OrderCancellations.human_attribute_name(:quantity) %></th>
|
17
|
+
<th class="align-center"><%= Spree::OrderCancellations.human_attribute_name(:quantity) %></th>
|
18
18
|
<th><%= Spree::OrderCancellations.human_attribute_name(:state) %></th>
|
19
19
|
<th><%= Spree::OrderCancellations.human_attribute_name(:shipment) %></th>
|
20
|
-
<th><%= Spree::OrderCancellations.human_attribute_name(:cancel) %></th>
|
20
|
+
<th class="align-right"><%= Spree::OrderCancellations.human_attribute_name(:cancel) %></th>
|
21
21
|
</thead>
|
22
22
|
|
23
23
|
<tbody>
|
@@ -34,9 +34,13 @@
|
|
34
34
|
<% end %>
|
35
35
|
</td>
|
36
36
|
<td class="inventory-unit-quantity align-center">1</td>
|
37
|
-
<td class="inventory-unit-state
|
38
|
-
|
39
|
-
|
37
|
+
<td class="inventory-unit-state">
|
38
|
+
<span class="pill pill-<%= inventory_unit.state %>">
|
39
|
+
<%= Spree.t(inventory_unit.state, scope: :inventory_states) %>
|
40
|
+
</span>
|
41
|
+
</td>
|
42
|
+
<td class="inventory-unit-shipment"><%= inventory_unit.shipment.number %></td>
|
43
|
+
<td class="inventory-unit-cancel align-right">
|
40
44
|
<%= check_box_tag 'inventory_unit_ids[]', inventory_unit.id %>
|
41
45
|
</td>
|
42
46
|
</tr>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
</thead>
|
11
11
|
<tbody>
|
12
12
|
<% reimbursements.each do |reimbursement| %>
|
13
|
-
<tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row"
|
13
|
+
<tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
|
14
14
|
<td>
|
15
15
|
<% if reimbursement.reimbursed? %>
|
16
16
|
<%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
|
@@ -20,8 +20,11 @@
|
|
20
20
|
</td>
|
21
21
|
<td><%= reimbursement.display_total %></td>
|
22
22
|
<td>
|
23
|
-
<span class="
|
24
|
-
<%=
|
23
|
+
<span class="pill pill-<%= reimbursement.reimbursement_status %>">
|
24
|
+
<%= Spree.t(
|
25
|
+
reimbursement.reimbursement_status,
|
26
|
+
scope: :reimbursement_states
|
27
|
+
) %>
|
25
28
|
</span>
|
26
29
|
</td>
|
27
30
|
<td><%= pretty_time(reimbursement.created_at) %></td>
|
@@ -26,23 +26,28 @@
|
|
26
26
|
<td>
|
27
27
|
<%= return_item.inventory_unit.variant.sku %>
|
28
28
|
</td>
|
29
|
-
<td
|
29
|
+
<td>
|
30
30
|
<%= return_item.display_amount %>
|
31
31
|
</td>
|
32
|
-
<td
|
32
|
+
<td>
|
33
33
|
<%= reimbursement_type_name(return_item.preferred_reimbursement_type) %>
|
34
34
|
</td>
|
35
|
-
<td
|
35
|
+
<td>
|
36
36
|
<%= return_item.exchange_variant.try(:exchange_name) %>
|
37
37
|
</td>
|
38
|
-
<td
|
38
|
+
<td>
|
39
39
|
<%= return_item.acceptance_status_errors %>
|
40
40
|
</td>
|
41
|
-
<td
|
42
|
-
|
41
|
+
<td>
|
42
|
+
<span class="pill pill-<%= return_item.reception_status %>">
|
43
|
+
<%= Spree.t(
|
44
|
+
return_item.reception_status,
|
45
|
+
scope: :reception_states
|
46
|
+
) %>
|
47
|
+
</span>
|
43
48
|
</td>
|
44
49
|
<% unless return_item.received? %>
|
45
|
-
<td
|
50
|
+
<td>
|
46
51
|
<%= form_for [:admin, return_item] do |f| %>
|
47
52
|
<%= f.hidden_field 'reception_status_event', value: 'receive' %>
|
48
53
|
<%= f.button Spree.t('actions.receive'), class: 'with-tip', "data-action" => 'save' %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<% return_item = item_fields.object %>
|
20
20
|
|
21
21
|
<tr>
|
22
|
-
<td class="
|
22
|
+
<td class="inventory-unit-checkbox">
|
23
23
|
<div style="display:none">
|
24
24
|
<%= item_fields.hidden_field :inventory_unit_id %>
|
25
25
|
<%= item_fields.hidden_field :return_authorization_id %>
|
@@ -34,22 +34,27 @@
|
|
34
34
|
<td>
|
35
35
|
<%= return_item.inventory_unit.variant.sku %>
|
36
36
|
</td>
|
37
|
-
<td
|
37
|
+
<td>
|
38
38
|
<%= return_item.display_amount %>
|
39
39
|
</td>
|
40
|
-
<td
|
41
|
-
|
40
|
+
<td>
|
41
|
+
<span class="pill pill-<%= return_item.inventory_unit.state %>">
|
42
|
+
<%= Spree.t(
|
43
|
+
return_item.inventory_unit.state,
|
44
|
+
scope: :inventory_states
|
45
|
+
) %>
|
46
|
+
</span>
|
42
47
|
</td>
|
43
|
-
<td
|
48
|
+
<td>
|
44
49
|
<%= return_item.exchange_variant.try(:exchange_name) %>
|
45
50
|
</td>
|
46
|
-
<td
|
51
|
+
<td>
|
47
52
|
<%= item_fields.check_box :resellable, { checked: return_item.resellable } %>
|
48
53
|
</td>
|
49
|
-
<td
|
54
|
+
<td>
|
50
55
|
<%= item_fields.select :reception_status_event, return_item.potential_reception_transitions, {include_blank: true}, {class: 'add-item custom-select fullwidth'} %>
|
51
56
|
</td>
|
52
|
-
<td
|
57
|
+
<td>
|
53
58
|
<%= item_fields.select :return_reason_id, @reasons.collect{|r|[r.name, r.id]}, {include_blank: true}, {class: 'custom-select fullwidth'} %>
|
54
59
|
</td>
|
55
60
|
</tr>
|