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
@@ -51,7 +51,7 @@
|
|
51
51
|
</fieldset>
|
52
52
|
<% end %>
|
53
53
|
|
54
|
-
<fieldset data-hook="reimbursements" class="no-border-bottom
|
54
|
+
<fieldset data-hook="reimbursements" class="no-border-bottom">
|
55
55
|
<legend align="center"><%= plural_resource_name(Spree::Reimbursement) %></legend>
|
56
56
|
<% if @customer_return.reimbursements.any? %>
|
57
57
|
<%= render partial: 'reimbursements_table', locals: {reimbursements: @customer_return.reimbursements} %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<thead data-hook="customer_return_header">
|
16
16
|
<tr>
|
17
17
|
<th><%= Spree::CustomerReturn.human_attribute_name(:number) %></th>
|
18
|
-
<th><%= Spree::CustomerReturn.human_attribute_name(:
|
18
|
+
<th><%= Spree::CustomerReturn.human_attribute_name(:total_excluding_vat) %></th>
|
19
19
|
<th><%= Spree::CustomerReturn.human_attribute_name(:total) %></th>
|
20
20
|
<th><%= Spree::CustomerReturn.human_attribute_name(:created_at) %></th>
|
21
21
|
<th><%= Spree::CustomerReturn.human_attribute_name(:reimbursement_status) %></th>
|
@@ -24,16 +24,16 @@
|
|
24
24
|
</thead>
|
25
25
|
<tbody>
|
26
26
|
<% @customer_returns.each do |customer_return| %>
|
27
|
-
<tr id="<%= spree_dom_id(customer_return) %>" data-hook="customer_return_row"
|
27
|
+
<tr id="<%= spree_dom_id(customer_return) %>" data-hook="customer_return_row">
|
28
28
|
<td><%= link_to customer_return.number, edit_admin_order_customer_return_path(@order, customer_return) %></td>
|
29
|
-
<td><%= customer_return.
|
29
|
+
<td><%= customer_return.display_total_excluding_vat.to_html %></td>
|
30
30
|
<td><%= customer_return.display_total.to_html %></td>
|
31
31
|
<td><%= pretty_time(customer_return.created_at) %></td>
|
32
32
|
<td>
|
33
33
|
<% if customer_return.fully_reimbursed? %>
|
34
|
-
<span class="
|
34
|
+
<span class="pill pill-complete"><%= Spree.t(:reimbursed) %></span>
|
35
35
|
<% else %>
|
36
|
-
<span class="
|
36
|
+
<span class="pill pill-pending"><%= Spree.t(:incomplete) %></span>
|
37
37
|
<% end %>
|
38
38
|
</td>
|
39
39
|
<td class='actions align-center' data-hook="admin_orders_customer_returns_index_row_actions">
|
@@ -1,15 +1,25 @@
|
|
1
|
-
<tr id="<%= spree_dom_id image %>" data-hook="images_row"
|
1
|
+
<tr id="<%= spree_dom_id image %>" data-hook="images_row">
|
2
2
|
|
3
|
-
<td
|
3
|
+
<td>
|
4
4
|
<% if can?(:update_positions, Spree::Image) %>
|
5
5
|
<span class="handle"></span>
|
6
6
|
<% end %>
|
7
7
|
</td>
|
8
8
|
|
9
9
|
<td>
|
10
|
-
|
10
|
+
<span class="modal-image-trigger" data-toggle="modal" data-target="#modal-image-<%= image.id %>">
|
11
11
|
<%= render 'spree/admin/shared/image', image: image, size: :mini %>
|
12
|
-
|
12
|
+
</span>
|
13
|
+
<%= render(
|
14
|
+
"spree/admin/shared/modal",
|
15
|
+
target: "modal-image-#{image.id}",
|
16
|
+
title: image.alt,
|
17
|
+
content: %{
|
18
|
+
<div class='align-center'>
|
19
|
+
#{image_tag(image.attachment.url(:large))}
|
20
|
+
</div>
|
21
|
+
}.html_safe
|
22
|
+
) %>
|
13
23
|
</td>
|
14
24
|
|
15
25
|
<% if @product.has_variants? %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value"
|
2
|
-
|
3
|
-
|
1
|
+
<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
|
2
|
+
<td>
|
3
|
+
<% if f.object.persisted? %>
|
4
4
|
<span class="handle"></span>
|
5
5
|
<%= f.hidden_field :id %>
|
6
|
-
|
7
|
-
|
8
|
-
<td
|
6
|
+
<% end %>
|
7
|
+
</td>
|
8
|
+
<td class="name"><%= f.text_field :name %></td>
|
9
9
|
<td class="presentation"><%= f.text_field :presentation %></td>
|
10
10
|
<td class="actions"><%= link_to_remove_fields Spree.t('actions.remove'), f, no_text: true %></td>
|
11
11
|
</tr>
|
@@ -25,7 +25,8 @@
|
|
25
25
|
<table class="index sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
26
26
|
<thead data-hook="option_header">
|
27
27
|
<tr>
|
28
|
-
<th
|
28
|
+
<th></th>
|
29
|
+
<th><%= Spree::OptionValue.human_attribute_name(:name) %></th>
|
29
30
|
<th><%= Spree::OptionValue.human_attribute_name(:presentation) %></th>
|
30
31
|
<th class="actions"></th>
|
31
32
|
</tr>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
</colgroup>
|
23
23
|
<thead>
|
24
24
|
<tr data-hook="option_header">
|
25
|
-
<th
|
25
|
+
<th></th>
|
26
26
|
<th><%= Spree::OptionType.human_attribute_name(:name) %></th>
|
27
27
|
<th><%= Spree::OptionType.human_attribute_name(:presentation) %></th>
|
28
28
|
<th class="actions"></th>
|
@@ -30,10 +30,10 @@
|
|
30
30
|
</thead>
|
31
31
|
<tbody>
|
32
32
|
<% @option_types.each do |option_type| %>
|
33
|
-
<tr class="spree_option_type
|
34
|
-
<td
|
35
|
-
<td
|
36
|
-
<td class="
|
33
|
+
<tr class="spree_option_type" id="<%= spree_dom_id option_type %>" data-hook="option_row">
|
34
|
+
<td><span class="handle"></span></td>
|
35
|
+
<td><%= option_type.name %></td>
|
36
|
+
<td class="presentation"><%= option_type.presentation %></td>
|
37
37
|
<td class="actions">
|
38
38
|
<% if can?(:update, option_type) %>
|
39
39
|
<%= link_to_edit(option_type, class: 'admin_edit_option_type', no_text: true) %>
|
@@ -7,11 +7,11 @@
|
|
7
7
|
<th><%= Spree::Adjustment.human_attribute_name(:amount)%></th>
|
8
8
|
</tr>
|
9
9
|
</thead>
|
10
|
-
<tbody data-hook="order_details_adjustments"
|
10
|
+
<tbody data-hook="order_details_adjustments">
|
11
11
|
<% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
|
12
12
|
<tr class="total">
|
13
|
-
<td
|
14
|
-
<td class="total
|
13
|
+
<td><%= label %>:</td>
|
14
|
+
<td class="total"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: adjustments.first.order.try(:currency)) %></span></td>
|
15
15
|
</tr>
|
16
16
|
<% end %>
|
17
17
|
</tbody>
|
@@ -52,7 +52,7 @@
|
|
52
52
|
<% if carton.tracking.present? %>
|
53
53
|
<strong><%= Spree::Carton.human_attribute_name(:tracking) %>:</strong> <%= carton.tracking %>
|
54
54
|
<% else %>
|
55
|
-
|
55
|
+
<i><%= Spree.t(:no_tracking_present) %></i>
|
56
56
|
<% end %>
|
57
57
|
</td>
|
58
58
|
</tr>
|
@@ -10,12 +10,12 @@
|
|
10
10
|
<%= item.variant.sku %>
|
11
11
|
<% end %>
|
12
12
|
</td>
|
13
|
-
<td class="item-price
|
14
|
-
<td class="item-qty-show
|
13
|
+
<td class="item-price"><%= item.line_item.single_money.to_html %></td>
|
14
|
+
<td class="item-qty-show">
|
15
15
|
<% item.states.each do |state,count| %>
|
16
16
|
<%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
|
17
17
|
<% end %>
|
18
18
|
</td>
|
19
|
-
<td class="item-total
|
19
|
+
<td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
|
20
20
|
</tr>
|
21
21
|
<% end %>
|
@@ -10,33 +10,35 @@
|
|
10
10
|
<td><strong>
|
11
11
|
<%= Spree.t(:failed_payment_attempts) %>:
|
12
12
|
</strong></td>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<td>
|
14
|
+
<span class="pill pill-<%= @order.payments.failed.count > 0 ? 'warning' : 'complete' %>">
|
15
|
+
<%= Spree.t(
|
16
|
+
:payments_failed_count,
|
17
|
+
count: @order.payments.failed.count
|
18
|
+
) %>
|
19
|
+
</span>
|
19
20
|
</td>
|
20
21
|
</tr>
|
21
22
|
|
22
23
|
<tr>
|
23
24
|
<td><strong><%= Spree.t(:avs_response) %>:</strong></td>
|
24
|
-
<td
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
<td>
|
26
|
+
<span class="pill pill-<%= latest_payment.is_avs_risky? ? 'warning' : 'complete' %>">
|
27
|
+
<% if latest_payment.is_avs_risky? %>
|
28
|
+
<%= avs_response_code[latest_payment.avs_response] %>
|
29
|
+
<% else %>
|
30
|
+
<%= Spree.t(:success) %>
|
31
|
+
<% end %>
|
32
|
+
</span>
|
31
33
|
</td>
|
32
34
|
</tr>
|
33
35
|
|
34
36
|
<tr>
|
35
37
|
<td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
|
36
|
-
<td
|
37
|
-
<span class="
|
38
|
+
<td>
|
39
|
+
<span class="pill pill-<%= latest_payment.is_cvv_risky? ? 'warning' : 'complete' %>">
|
38
40
|
<% if latest_payment.is_cvv_risky? %>
|
39
|
-
<%=
|
41
|
+
<%= cvv_response_code[latest_payment.cvv_response_code] %>
|
40
42
|
<% else %>
|
41
43
|
<%= Spree.t(:success) %>
|
42
44
|
<% end %>
|
@@ -25,12 +25,12 @@
|
|
25
25
|
|
26
26
|
<table class="stock-contents shipment index" data-hook="stock-contents">
|
27
27
|
<colgroup>
|
28
|
-
<col style="width:
|
28
|
+
<col style="width: 17.5%;" />
|
29
29
|
<col style="width: 30%;" />
|
30
|
+
<col style="width: 12.5%;" />
|
30
31
|
<col style="width: 15%;" />
|
31
32
|
<col style="width: 15%;" />
|
32
|
-
<col style="width:
|
33
|
-
<col style="width: 15%;" />
|
33
|
+
<col style="width: 10%;" />
|
34
34
|
</colgroup>
|
35
35
|
|
36
36
|
<thead>
|
@@ -48,23 +48,17 @@
|
|
48
48
|
|
49
49
|
<% unless shipment.shipped? %>
|
50
50
|
<tr class="edit-method hidden total">
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<%= select_tag :selected_shipping_rate_id,
|
57
|
-
options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
|
58
|
-
{class: 'custom-select fullwidth', data: {'shipment-number' => shipment.number } } %>
|
59
|
-
</div>
|
60
|
-
</div>
|
61
|
-
</div>
|
51
|
+
<th><%= Spree::ShippingMethod.model_name.human %></th>
|
52
|
+
<td colspan="4">
|
53
|
+
<%= select_tag :selected_shipping_rate_id,
|
54
|
+
options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
|
55
|
+
{class: 'custom-select fullwidth', data: {'shipment-number' => shipment.number } } %>
|
62
56
|
</td>
|
63
57
|
<td class="actions">
|
64
58
|
<% if can? :update, shipment %>
|
65
|
-
<%=
|
59
|
+
<%= button_tag '', class: 'save-method fa fa-check no-text with-tip',
|
66
60
|
data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save') %>
|
67
|
-
<%=
|
61
|
+
<%= button_tag '', class: 'cancel-method fa fa-cancel no-text with-tip',
|
68
62
|
data: {action: 'cancel'}, title: Spree.t('actions.cancel') %>
|
69
63
|
<% end %>
|
70
64
|
</td>
|
@@ -73,32 +67,33 @@
|
|
73
67
|
|
74
68
|
<tr class="show-method total">
|
75
69
|
<% if rate = shipment.selected_shipping_rate %>
|
76
|
-
<
|
77
|
-
|
70
|
+
<th><%= Spree::ShippingMethod.model_name.human %></th>
|
71
|
+
<td colspan="3">
|
72
|
+
<%= rate.name %>
|
78
73
|
</td>
|
79
|
-
<td class="total"
|
80
|
-
|
74
|
+
<td class="total">
|
75
|
+
<%= shipment.display_cost %>
|
81
76
|
</td>
|
82
77
|
<% else %>
|
83
|
-
<td colspan=
|
78
|
+
<td colspan="5"><%= Spree.t(:no_shipping_method_selected) %></td>
|
84
79
|
<% end %>
|
85
80
|
|
86
81
|
<td class="actions">
|
87
82
|
<% if can?(:update, shipment) && !shipment.shipped? %>
|
88
|
-
<%=
|
83
|
+
<%= button_tag '', class: 'edit-method fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit'), type: :button %>
|
89
84
|
<% end %>
|
90
85
|
</td>
|
91
86
|
</tr>
|
92
87
|
|
93
88
|
<tr class="edit-tracking hidden total">
|
94
|
-
<
|
95
|
-
|
89
|
+
<th><%= Spree::Shipment.human_attribute_name(:tracking) %></th>
|
90
|
+
<td colspan="4">
|
96
91
|
<%= text_field_tag :tracking, shipment.tracking, id: nil %>
|
97
92
|
</td>
|
98
93
|
<td class="actions">
|
99
94
|
<% if can? :update, shipment %>
|
100
|
-
<%=
|
101
|
-
<%=
|
95
|
+
<%= button_tag '', class: 'save-tracking fa fa-check no-text with-tip', data: { action: 'save', 'shipment-number' => shipment.number }, title: Spree.t('actions.save'), type: :button %>
|
96
|
+
<%= button_tag '', class: 'cancel-tracking fa fa-cancel no-text with-tip', data: { action: 'cancel' }, title: Spree.t('actions.cancel'), type: :button %>
|
102
97
|
<% end %>
|
103
98
|
</td>
|
104
99
|
</tr>
|
@@ -112,16 +107,17 @@
|
|
112
107
|
<% end %>
|
113
108
|
|
114
109
|
<tr class="show-tracking total">
|
115
|
-
<
|
110
|
+
<th><%= Spree::Shipment.human_attribute_name(:tracking) %></th>
|
111
|
+
<td colspan="4" class="tracking-value">
|
116
112
|
<% if shipment.tracking.present? %>
|
117
|
-
|
113
|
+
<%= shipment.tracking %>
|
118
114
|
<% else %>
|
119
|
-
|
115
|
+
<i><%= Spree.t(:no_tracking_present) %></i>
|
120
116
|
<% end %>
|
121
117
|
</td>
|
122
118
|
<td class="actions">
|
123
119
|
<% if can? :update, shipment %>
|
124
|
-
<%=
|
120
|
+
<%= button_tag '', class: 'edit-tracking fa fa-edit no-text with-tip', data: {action: 'edit'}, title: Spree.t('actions.edit'), type: :button %>
|
125
121
|
<% end %>
|
126
122
|
</td>
|
127
123
|
</tr>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
data-item-quantity="<%= item.quantity %>"
|
4
4
|
data-variant-id="<%= item.variant.id %>"
|
5
5
|
>
|
6
|
-
<td class="item-image">
|
6
|
+
<td class="item-image align-center">
|
7
7
|
<%= render 'spree/admin/shared/image', image: item.variant.display_image, size: :mini %>
|
8
8
|
</td>
|
9
9
|
<td class="item-name">
|
@@ -12,18 +12,18 @@
|
|
12
12
|
<strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %>
|
13
13
|
<% end %>
|
14
14
|
</td>
|
15
|
-
<td class="item-price
|
16
|
-
<td class="item-qty-show
|
15
|
+
<td class="item-price"><%= item.line_item.single_money.to_html %></td>
|
16
|
+
<td class="item-qty-show">
|
17
17
|
<% item.states.each do |state,count| %>
|
18
18
|
<%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
|
19
19
|
<% end %>
|
20
20
|
</td>
|
21
|
-
<td class="item-total
|
21
|
+
<td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
|
22
22
|
|
23
23
|
<td class="cart-item-delete actions" data-hook="cart_item_delete">
|
24
24
|
<% if can? :update, item %>
|
25
|
-
<%=
|
26
|
-
<%=
|
25
|
+
<%= button_tag '', class: 'split-item icon_link fa fa-arrows-h no-text with-tip', data: { action: 'edit', 'variant-id' => item.variant.id }, title: Spree.t('actions.split'), type: :button %>
|
26
|
+
<%= button_tag '', class: 'delete-item fa fa-trash no-text with-tip', data: { action: 'remove', 'variant-id' => item.variant.id }, title: Spree.t('actions.delete'), type: :button %>
|
27
27
|
<% end %>
|
28
28
|
</td>
|
29
29
|
</tr>
|
@@ -17,13 +17,13 @@
|
|
17
17
|
<td class="line-item-name">
|
18
18
|
<%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
|
19
19
|
</td>
|
20
|
-
<td class="line-item-price
|
20
|
+
<td class="line-item-price">
|
21
21
|
<%= item.single_money.to_html %>
|
22
22
|
</td>
|
23
|
-
<td class="line-item-qty-show
|
23
|
+
<td class="line-item-qty-show">
|
24
24
|
<%= item.quantity %>
|
25
25
|
</td>
|
26
|
-
<td class="line-item-total
|
26
|
+
<td class="line-item-total">
|
27
27
|
<%= line_item_shipment_price(item, item.quantity) %>
|
28
28
|
</td>
|
29
29
|
</tr>
|
@@ -20,18 +20,18 @@
|
|
20
20
|
<td>
|
21
21
|
<%= pretty_time(payment.created_at) %>
|
22
22
|
</td>
|
23
|
-
<td class="
|
23
|
+
<td class="amount">
|
24
24
|
<%= payment.display_amount.to_html %>
|
25
25
|
</td>
|
26
|
-
<td
|
26
|
+
<td>
|
27
27
|
<%= payment_method_name(payment) %>
|
28
28
|
</td>
|
29
|
-
<td
|
29
|
+
<td>
|
30
30
|
<%= payment.transaction_id %>
|
31
31
|
</td>
|
32
|
-
<td
|
33
|
-
<span class="
|
34
|
-
<%= Spree.t(payment.state, scope: :payment_states
|
32
|
+
<td>
|
33
|
+
<span class="pill pill-<%= payment.state %>">
|
34
|
+
<%= Spree.t(payment.state, scope: :payment_states) %>
|
35
35
|
</span>
|
36
36
|
</td>
|
37
37
|
</tr>
|
@@ -9,12 +9,12 @@
|
|
9
9
|
<strong><%= Spree::Variant.human_attribute_name(:sku) %>:</strong> <%= item.variant.sku %>
|
10
10
|
<% end %>
|
11
11
|
</td>
|
12
|
-
<td class="item-price
|
13
|
-
<td class="item-qty-show
|
12
|
+
<td class="item-price"><%= item.line_item.single_money.to_html %></td>
|
13
|
+
<td class="item-qty-show">
|
14
14
|
<% item.states.each do |state,count| %>
|
15
15
|
<%= count %> x <%= Spree.t(state, scope: 'inventory_states') %>
|
16
16
|
<% end %>
|
17
17
|
</td>
|
18
|
-
<td class="item-total
|
18
|
+
<td class="item-total"><%= line_item_shipment_price(item.line_item, item.quantity) %></td>
|
19
19
|
</tr>
|
20
20
|
<% end %>
|
@@ -141,20 +141,36 @@
|
|
141
141
|
<th><%= sort_link @search, :shipment_state %></th>
|
142
142
|
<% end %>
|
143
143
|
<th><%= sort_link @search, :email %></th>
|
144
|
-
<th><%= sort_link @search, :total %></th>
|
144
|
+
<th class="align-right"><%= sort_link @search, :total %></th>
|
145
145
|
<th data-hook="admin_orders_index_header_actions" class="actions"></th>
|
146
146
|
</tr>
|
147
147
|
</thead>
|
148
148
|
<tbody>
|
149
149
|
<% @orders.each do |order| %>
|
150
|
-
<tr data-hook="admin_orders_index_rows"
|
151
|
-
<td
|
152
|
-
<td
|
153
|
-
<td
|
154
|
-
|
155
|
-
|
156
|
-
|
150
|
+
<tr data-hook="admin_orders_index_rows">
|
151
|
+
<td><%= l (@show_only_completed ? order.completed_at : order.created_at).to_date %></td>
|
152
|
+
<td><%= link_to order.number, edit_admin_order_path(order) %></td>
|
153
|
+
<td>
|
154
|
+
<span class="pill pill-<%= order.state %>">
|
155
|
+
<%= Spree.t(order.state, scope: :order_state) %>
|
156
|
+
</span>
|
157
|
+
</td>
|
158
|
+
<td>
|
159
|
+
<% if order.payment_state %>
|
160
|
+
<span class="pill pill-<%= order.payment_state %>">
|
161
|
+
<%= Spree.t(order.payment_state, scope: :payment_states) %>
|
162
|
+
</span>
|
157
163
|
<% end %>
|
164
|
+
</td>
|
165
|
+
<% if Spree::Order.checkout_step_names.include?(:delivery) %>
|
166
|
+
<td>
|
167
|
+
<% if order.shipment_state %>
|
168
|
+
<span class="pill pill-<%= order.shipment_state %>">
|
169
|
+
<%= Spree.t(order.shipment_state, scope: :shipment_states) %>
|
170
|
+
</span>
|
171
|
+
<% end %>
|
172
|
+
</td>
|
173
|
+
<% end %>
|
158
174
|
<td>
|
159
175
|
<% if order.user %>
|
160
176
|
<%= link_to order.email, edit_admin_user_path(order.user) %>
|
@@ -162,7 +178,7 @@
|
|
162
178
|
<%= mail_to order.email %>
|
163
179
|
<% end %>
|
164
180
|
</td>
|
165
|
-
<td class="align-
|
181
|
+
<td class="align-right"><%= order.display_total.to_html %></td>
|
166
182
|
<td class='actions align-center' data-hook="admin_orders_index_row_actions">
|
167
183
|
<%= link_to_edit_url edit_admin_order_path(order), title: "admin_edit_#{dom_id(order)}", no_text: true %>
|
168
184
|
</td>
|
@@ -19,7 +19,10 @@
|
|
19
19
|
<% if @object.preference_source.present? %>
|
20
20
|
<%= Spree.t :preference_source_using, name: @object.preference_source %>
|
21
21
|
<% elsif !@object.new_record? %>
|
22
|
-
|
22
|
+
<% @object.preferences.keys.each do |key| %>
|
23
|
+
<%= render "spree/admin/shared/preference_fields/#{@object.preference_type(key)}",
|
24
|
+
form: f, attribute: "preferred_#{key}", label: Spree.t(key) %>
|
25
|
+
<% end %>
|
23
26
|
<% end %>
|
24
27
|
</div>
|
25
28
|
|
@@ -26,24 +26,28 @@
|
|
26
26
|
</colgroup>
|
27
27
|
<thead>
|
28
28
|
<tr data-hook="admin_payment_methods_index_headers">
|
29
|
-
<th
|
29
|
+
<th></th>
|
30
30
|
<th><%= Spree::PaymentMethod.human_attribute_name(:name) %></th>
|
31
31
|
<th><%= Spree::PaymentMethod.human_attribute_name(:type) %></th>
|
32
32
|
<th><%= Spree::PaymentMethod.human_attribute_name(:available_to_users) %></th>
|
33
33
|
<th><%= Spree::PaymentMethod.human_attribute_name(:available_to_admin) %></th>
|
34
|
-
<th><%= Spree::PaymentMethod.human_attribute_name(:
|
34
|
+
<th><%= Spree::PaymentMethod.human_attribute_name(:state) %></th>
|
35
35
|
<th data-hook="admin_payment_methods_index_header_actions" class="actions"></th>
|
36
36
|
</tr>
|
37
37
|
</thead>
|
38
38
|
<tbody>
|
39
39
|
<% @payment_methods.each do |method|%>
|
40
|
-
<tr id="<%= spree_dom_id method %>" data-hook="admin_payment_methods_index_rows"
|
41
|
-
<td
|
42
|
-
<td
|
43
|
-
<td
|
40
|
+
<tr id="<%= spree_dom_id method %>" data-hook="admin_payment_methods_index_rows">
|
41
|
+
<td><span class="handle"></span></td>
|
42
|
+
<td><%= method.name %></td>
|
43
|
+
<td><%= method.model_name.human %></td>
|
44
44
|
<td class="align-center"><%= method.available_to_users ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
45
45
|
<td class="align-center"><%= method.available_to_admin ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
46
|
-
<td class="align-center"
|
46
|
+
<td class="align-center">
|
47
|
+
<span class="pill pill-<%= method.active ? 'active' : 'inactive' %>">
|
48
|
+
<%= Spree.t(method.active? ? :active : :inactive) %>
|
49
|
+
</span>
|
50
|
+
</td>
|
47
51
|
<td data-hook="admin_payment_methods_index_row_actions" class="actions">
|
48
52
|
<% if can?(:update, method.becomes(Spree::PaymentMethod)) %>
|
49
53
|
<%= link_to_edit method.becomes(Spree::PaymentMethod), no_text: true %>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
</thead>
|
10
10
|
<tbody>
|
11
11
|
<% @payment.capture_events.each do |capture_event| %>
|
12
|
-
<tr id="<%= dom_id(capture_event) %>" data-hook="capture_events_row"
|
12
|
+
<tr id="<%= dom_id(capture_event) %>" data-hook="capture_events_row">
|
13
13
|
<td><%= pretty_time(capture_event.created_at) %></td>
|
14
14
|
<td><%= capture_event.display_amount %></td>
|
15
15
|
</tr>
|
@@ -12,16 +12,20 @@
|
|
12
12
|
</thead>
|
13
13
|
<tbody>
|
14
14
|
<% payments.each do |payment| %>
|
15
|
-
<tr id="<%= dom_id(payment) %>" data-hook="payments_row" class="payment
|
15
|
+
<tr id="<%= dom_id(payment) %>" data-hook="payments_row" class="payment" data-payment-id="<%= payment.id %>">
|
16
16
|
<td><%= link_to payment.number, spree.admin_order_payment_path(@order, payment) %></td>
|
17
17
|
<td><%= pretty_time(payment.created_at) %></td>
|
18
|
-
<td class="
|
18
|
+
<td class="amount">
|
19
19
|
<%= text_field_tag :amount, payment.amount, class: 'js-edit-amount align-right editing-show' %>
|
20
20
|
<span class="js-display-amount editing-hide"><%= payment.display_amount.to_html %></span>
|
21
21
|
</td>
|
22
|
-
<td
|
23
|
-
<td
|
24
|
-
<td
|
22
|
+
<td><%= payment_method_name(payment) %></td>
|
23
|
+
<td><%= payment.transaction_id %></td>
|
24
|
+
<td>
|
25
|
+
<span class="pill pill-<%= payment.state %>">
|
26
|
+
<%= Spree.t(payment.state, scope: :payment_states) %>
|
27
|
+
</span>
|
28
|
+
</td>
|
25
29
|
<td class="actions">
|
26
30
|
<div class="editing-show">
|
27
31
|
<%= link_to_with_icon 'save', Spree.t('actions.save'), nil, no_text: true, class: "js-save", data: {action: 'save'} %>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<% admin_breadcrumb(link_to plural_resource_name(Spree::Payment), spree.admin_order_payments_path(@order)) %>
|
4
4
|
<% admin_breadcrumb do %>
|
5
5
|
<%= payment_method_name(@payment) %>
|
6
|
-
<span class="
|
7
|
-
<%= Spree.t(@payment.state, scope: :payment_states
|
6
|
+
<span class="pill pill-<%= @payment.state %>">
|
7
|
+
<%= Spree.t(@payment.state, scope: :payment_states ) %>
|
8
8
|
</span>
|
9
9
|
<% end %>
|
10
10
|
|