spree_backend 3.1.0.rc1 → 3.1.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spree/backend/components/_labels.scss +1 -1
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +2 -1
- data/app/controllers/spree/admin/resource_controller.rb +2 -8
- data/app/helpers/spree/admin/base_helper.rb +0 -5
- data/app/views/spree/admin/countries/_form.html.erb +6 -4
- data/app/views/spree/admin/countries/edit.html.erb +2 -5
- data/app/views/spree/admin/countries/new.html.erb +2 -5
- data/app/views/spree/admin/option_types/edit.html.erb +2 -3
- data/app/views/spree/admin/option_types/new.html.erb +1 -4
- data/app/views/spree/admin/orders/cart.html.erb +0 -3
- data/app/views/spree/admin/orders/edit.html.erb +0 -3
- data/app/views/spree/admin/payment_methods/_form.html.erb +5 -4
- data/app/views/spree/admin/payment_methods/edit.html.erb +2 -5
- data/app/views/spree/admin/payment_methods/new.html.erb +1 -4
- data/app/views/spree/admin/products/edit.html.erb +0 -1
- data/app/views/spree/admin/products/new.html.erb +1 -4
- data/app/views/spree/admin/promotion_categories/_form.html.erb +2 -1
- data/app/views/spree/admin/promotion_categories/edit.html.erb +2 -5
- data/app/views/spree/admin/promotion_categories/new.html.erb +1 -4
- data/app/views/spree/admin/promotions/_form.html.erb +1 -0
- data/app/views/spree/admin/promotions/edit.html.erb +5 -8
- data/app/views/spree/admin/promotions/new.html.erb +2 -5
- data/app/views/spree/admin/properties/edit.html.erb +2 -5
- data/app/views/spree/admin/properties/new.html.erb +1 -4
- data/app/views/spree/admin/prototypes/edit.html.erb +2 -5
- data/app/views/spree/admin/prototypes/new.html.erb +1 -4
- data/app/views/spree/admin/refund_reasons/edit.html.erb +1 -2
- data/app/views/spree/admin/refund_reasons/new.html.erb +2 -2
- data/app/views/spree/admin/refunds/edit.html.erb +2 -2
- data/app/views/spree/admin/refunds/new.html.erb +1 -1
- data/app/views/spree/admin/reimbursements/edit.html.erb +1 -1
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -4
- data/app/views/spree/admin/return_authorization_reasons/edit.html.erb +1 -2
- data/app/views/spree/admin/return_authorization_reasons/new.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/edit.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/index.html.erb +5 -1
- data/app/views/spree/admin/roles/_form.html.erb +3 -2
- data/app/views/spree/admin/roles/edit.html.erb +3 -4
- data/app/views/spree/admin/roles/new.html.erb +2 -3
- data/app/views/spree/admin/shared/_address_form.html.erb +24 -16
- data/app/views/spree/admin/shared/named_types/_edit.html.erb +2 -5
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -0
- data/app/views/spree/admin/shared/named_types/_new.html.erb +1 -4
- data/app/views/spree/admin/shipping_categories/_form.html.erb +5 -2
- data/app/views/spree/admin/shipping_categories/edit.html.erb +2 -5
- data/app/views/spree/admin/shipping_categories/new.html.erb +1 -4
- data/app/views/spree/admin/shipping_methods/_form.html.erb +8 -8
- data/app/views/spree/admin/shipping_methods/edit.html.erb +2 -1
- data/app/views/spree/admin/shipping_methods/new.html.erb +1 -0
- data/app/views/spree/admin/states/_form.html.erb +1 -0
- data/app/views/spree/admin/states/edit.html.erb +2 -5
- data/app/views/spree/admin/states/new.html.erb +1 -4
- data/app/views/spree/admin/stock_locations/_form.html.erb +3 -2
- data/app/views/spree/admin/stock_locations/edit.html.erb +1 -5
- data/app/views/spree/admin/stock_locations/new.html.erb +2 -5
- data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
- data/app/views/spree/admin/stock_movements/new.html.erb +2 -4
- data/app/views/spree/admin/stock_transfers/new.html.erb +2 -1
- data/app/views/spree/admin/stock_transfers/show.html.erb +2 -1
- data/app/views/spree/admin/store_credit_categories/_form.html.erb +3 -2
- data/app/views/spree/admin/store_credit_categories/edit.html.erb +4 -1
- data/app/views/spree/admin/store_credit_categories/new.html.erb +3 -0
- data/app/views/spree/admin/store_credits/edit.html.erb +5 -3
- data/app/views/spree/admin/store_credits/index.html.erb +4 -4
- data/app/views/spree/admin/store_credits/new.html.erb +5 -3
- data/app/views/spree/admin/tax_categories/_form.html.erb +1 -0
- data/app/views/spree/admin/tax_categories/edit.html.erb +2 -5
- data/app/views/spree/admin/tax_categories/new.html.erb +1 -4
- data/app/views/spree/admin/tax_rates/_form.html.erb +5 -2
- data/app/views/spree/admin/tax_rates/edit.html.erb +2 -5
- data/app/views/spree/admin/tax_rates/new.html.erb +1 -4
- data/app/views/spree/admin/taxonomies/_form.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/edit.erb +2 -5
- data/app/views/spree/admin/taxonomies/new.html.erb +2 -4
- data/app/views/spree/admin/taxons/_form.html.erb +1 -1
- data/app/views/spree/admin/taxons/edit.html.erb +3 -1
- data/app/views/spree/admin/trackers/_form.html.erb +8 -7
- data/app/views/spree/admin/trackers/edit.html.erb +6 -3
- data/app/views/spree/admin/trackers/new.html.erb +1 -0
- data/app/views/spree/admin/users/_form.html.erb +1 -1
- data/app/views/spree/admin/users/_sidebar.html.erb +4 -0
- data/app/views/spree/admin/users/_user_page_actions.html.erb +0 -1
- data/app/views/spree/admin/users/addresses.html.erb +5 -4
- data/app/views/spree/admin/users/edit.html.erb +4 -4
- data/app/views/spree/admin/users/items.html.erb +5 -4
- data/app/views/spree/admin/users/new.html.erb +1 -4
- data/app/views/spree/admin/users/orders.html.erb +5 -4
- data/app/views/spree/admin/zones/_form.html.erb +1 -0
- data/app/views/spree/admin/zones/edit.html.erb +2 -1
- data/app/views/spree/admin/zones/new.html.erb +1 -0
- data/spec/controllers/spree/admin/resource_controller_spec.rb +0 -26
- data/spec/features/admin/products/option_types_spec.rb +3 -2
- data/spec/features/admin/promotions/adjustments_spec.rb +19 -15
- data/spec/features/admin/returns/return_authorizations_spec.rb +1 -1
- data/spec/features/admin/users_spec.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23177f6b62d7410c90a9ff8bb4cc5f603fb42440
|
4
|
+
data.tar.gz: f70f840a9320ec0fcd89bb6b724f4184c7bc190e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2149d65382ca555ee229d0681f8056973a27b4c7f4ba6df0bb3f3bb1125011c8dc661657459e2997bb0c81946e7979401ade77673fb2436f4f49dc385c3c336
|
7
|
+
data.tar.gz: 20e47c99f1b509be5a356f7e108ef75dd00e4eeb50263cfd1dfc884a6b19090f795d695c62d2d87fb49044dd423df2a4e60906aa0d6f38c83fedaf40b64b66af
|
@@ -40,10 +40,7 @@ class Spree::Admin::ResourceController < Spree::Admin::BaseController
|
|
40
40
|
else
|
41
41
|
invoke_callbacks(:update, :fails)
|
42
42
|
respond_with(@object) do |format|
|
43
|
-
format.html
|
44
|
-
flash.now[:error] = @object.errors.full_messages.join(", ")
|
45
|
-
render action: 'edit'
|
46
|
-
end
|
43
|
+
format.html { render action: :edit }
|
47
44
|
format.js { render layout: false }
|
48
45
|
end
|
49
46
|
end
|
@@ -62,10 +59,7 @@ class Spree::Admin::ResourceController < Spree::Admin::BaseController
|
|
62
59
|
else
|
63
60
|
invoke_callbacks(:create, :fails)
|
64
61
|
respond_with(@object) do |format|
|
65
|
-
format.html
|
66
|
-
flash.now[:error] = @object.errors.full_messages.join(", ")
|
67
|
-
render action: 'new'
|
68
|
-
end
|
62
|
+
format.html { render action: :new }
|
69
63
|
format.js { render layout: false }
|
70
64
|
end
|
71
65
|
end
|
@@ -144,11 +144,6 @@ module Spree
|
|
144
144
|
resource_class.model_name.human(count: I18N_PLURAL_MANY_COUNT)
|
145
145
|
end
|
146
146
|
|
147
|
-
def back_to_list_button(resource, path)
|
148
|
-
button_text = Spree.t(:back_to_resource_list, resource: resource)
|
149
|
-
link_to_with_icon 'arrow-left', button_text, path, class: 'btn btn-default'
|
150
|
-
end
|
151
|
-
|
152
147
|
def order_time(time)
|
153
148
|
[I18n.l(time.to_date), time.strftime("%l:%M %p")].join('')
|
154
149
|
end
|
@@ -1,13 +1,15 @@
|
|
1
1
|
<div data-hook="admin_country_form_fields">
|
2
|
-
|
2
|
+
<%= f.field_container :name, class: ['form-group'], 'data-hook' => 'name' do %>
|
3
3
|
<%= f.label :name, Spree.t(:name) %>
|
4
4
|
<%= f.text_field :name, :class => 'form-control' %>
|
5
|
-
|
5
|
+
<%= f.error_message_on :name %>
|
6
|
+
<% end %>
|
6
7
|
|
7
|
-
|
8
|
+
<%= f.field_container :iso_name, class: ['form-group'], 'data-hook' => 'iso_name' do %>
|
8
9
|
<%= f.label :iso_name, Spree.t(:iso_name) %>
|
9
10
|
<%= f.text_field :iso_name, :class => 'form-control' %>
|
10
|
-
|
11
|
+
<%= f.error_message_on :iso_name %>
|
12
|
+
<% end %>
|
11
13
|
|
12
14
|
<div data-hook="states_required" class="checkbox">
|
13
15
|
<label>
|
@@ -1,9 +1,6 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::Country.model_name.human, admin_countries_path) %>
|
2
|
+
<%= link_to Spree.t(:countries), spree.admin_countries_url %> /
|
3
|
+
<%= @country.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @country } %>
|
@@ -1,12 +1,9 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:countries), spree.admin_countries_url %> /
|
2
3
|
<%= Spree.t(:new_country) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
|
6
|
-
<%= back_to_list_button(Spree::Country.model_name.human, admin_countries_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
|
-
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @countries } %>
|
6
|
+
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @country } %>
|
10
7
|
|
11
8
|
<%= form_for [:admin, @country] do |f| %>
|
12
9
|
<fieldset>
|
@@ -1,13 +1,12 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
2
|
+
<%= link_to Spree.t(:option_types), spree.admin_option_types_url %> /
|
3
|
+
<%= @option_type.name %>
|
3
4
|
<% end %>
|
4
5
|
|
5
6
|
<% content_for :page_actions do %>
|
6
7
|
<span id="new_add_option_value" data-hook>
|
7
8
|
<%= button_link_to Spree.t(:add_option_value), "javascript:;", { :icon => 'add', :'data-target' => "tbody#option_values", :class => 'btn-success spree_add_fields' } %>
|
8
9
|
</span>
|
9
|
-
|
10
|
-
<%= back_to_list_button(Spree::OptionType.model_name.human, admin_option_types_path) %>
|
11
10
|
<% end %>
|
12
11
|
|
13
12
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @option_type } %>
|
@@ -1,11 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:option_types), spree.admin_option_types_url %> /
|
2
3
|
<%= Spree.t(:new_option_type) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::OptionType.model_name.human, admin_option_types_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
6
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @option_type } %>
|
10
7
|
|
11
8
|
<%= form_for [:admin, @option_type] do |f| %>
|
@@ -1,7 +1,4 @@
|
|
1
1
|
<%= render 'order_actions', order: @order, events: @order_events %>
|
2
|
-
<% content_for :page_actions do %>
|
3
|
-
<%= back_to_list_button(Spree::Order.model_name.human, admin_orders_path) %>
|
4
|
-
<% end %>
|
5
2
|
|
6
3
|
<%= render 'spree/admin/shared/order_tabs', current: :shipments %>
|
7
4
|
|
@@ -42,14 +42,15 @@
|
|
42
42
|
</div>
|
43
43
|
|
44
44
|
<div class="col-md-8">
|
45
|
-
|
45
|
+
<%= field_container :payment_method, :name, class: ['form-group'], 'data-hook' => 'name' do %>
|
46
46
|
<%= label_tag :payment_method_name, Spree.t(:name) %>
|
47
47
|
<%= text_field :payment_method, :name, :class => 'form-control' %>
|
48
|
-
|
49
|
-
|
48
|
+
<%= error_message_on :payment_method, :name %>
|
49
|
+
<% end %>
|
50
|
+
<%= field_container :payment_method, :description, class: ['form-group'], 'data-hook' => 'description' do %>
|
50
51
|
<%= label_tag :payment_method_description, Spree.t(:description) %>
|
51
52
|
<%= text_area :payment_method, :description, { :cols => 60, :rows => 6, :class => 'form-control' } %>
|
52
|
-
|
53
|
+
<% end %>
|
53
54
|
</div>
|
54
55
|
</div>
|
55
56
|
</div>
|
@@ -1,9 +1,6 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::PaymentMethod.model_name.human, admin_payment_methods_path) %>
|
2
|
+
<%= link_to Spree.t(:payment_methods), spree.admin_payment_methods_url %> /
|
3
|
+
<%= @payment_method.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @payment_method } %>
|
@@ -1,11 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:payment_methods), spree.admin_payment_methods_url %> /
|
2
3
|
<%= Spree.t(:new_payment_method) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::PaymentMethod.model_name.human, admin_payment_methods_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
6
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @payment_method } %>
|
10
7
|
|
11
8
|
<%= form_for @payment_method, url: collection_url do |f| %>
|
@@ -2,7 +2,6 @@
|
|
2
2
|
<% if can?(:create, Spree::Product) %>
|
3
3
|
<%= button_link_to Spree.t(:new_product), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_product' } %>
|
4
4
|
<% end %>
|
5
|
-
<%= back_to_list_button(Spree::Product.model_name.human, admin_products_path) %>
|
6
5
|
<% end %>
|
7
6
|
|
8
7
|
<%= render partial: 'spree/admin/shared/product_tabs', locals: {current: :details} %>
|
@@ -1,13 +1,10 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @product } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
+
<%= link_to Spree.t(:products), spree.admin_products_url %> /
|
4
5
|
<%= Spree.t(:new_product) %>
|
5
6
|
<% end %>
|
6
7
|
|
7
|
-
<% content_for :page_actions do %>
|
8
|
-
<%= back_to_list_button(Spree::Product.model_name.human, admin_products_path) %>
|
9
|
-
<% end %>
|
10
|
-
|
11
8
|
<%= form_for [:admin, @product], :html => { :multipart => true } do |f| %>
|
12
9
|
<fieldset data-hook="new_product">
|
13
10
|
<%= f.field_container :name, :class => ['form-group'] do %>
|
@@ -1,8 +1,9 @@
|
|
1
|
-
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @
|
1
|
+
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @promotion_category } %>
|
2
2
|
|
3
3
|
<%= f.field_container :name, class: ['form-group'] do %>
|
4
4
|
<%= f.label :name %>
|
5
5
|
<%= f.text_field :name, :class => 'form-control' %>
|
6
|
+
<%= f.error_message_on :name %>
|
6
7
|
<% end %>
|
7
8
|
<%= f.field_container :code, class: ['form-group'] do %>
|
8
9
|
<%= f.label :code %>
|
@@ -1,9 +1,6 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::PromotionCategory.model_name.human, admin_promotion_categories_path) %>
|
2
|
+
<%= link_to Spree.t(:promotion_categories), spree.admin_promotion_categories_url %> /
|
3
|
+
<%= @promotion_category.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= form_for @promotion_category, :url => object_url, :method => :put do |f| %>
|
@@ -1,11 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:promotion_categories), spree.admin_promotion_categories_url %> /
|
2
3
|
<%= Spree.t(:new_promotion_category) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::PromotionCategory.model_name.human, admin_promotion_categories_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
6
|
<%= form_for :promotion_category, :url => collection_url do |f| %>
|
10
7
|
<fieldset>
|
11
8
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
@@ -1,19 +1,16 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::Promotion.model_name.human, admin_promotions_path) %>
|
2
|
+
<%= link_to Spree.t(:promotions), admin_promotions_url %> /
|
3
|
+
<%= @promotion.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= form_for @promotion, :url => object_url, :method => :put do |f| %>
|
10
7
|
<div class="row">
|
11
8
|
<div class="col-md-12">
|
12
9
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
13
|
-
<%= render :partial => 'spree/admin/shared/edit_resource_links' %>
|
14
|
-
</div>
|
10
|
+
<%= render :partial => 'spree/admin/shared/edit_resource_links' %>
|
11
|
+
</div>
|
15
12
|
</div>
|
16
|
-
|
13
|
+
|
17
14
|
<% end %>
|
18
15
|
|
19
16
|
<div id="promotion-filters" class="row">
|
@@ -1,14 +1,11 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:promotions), admin_promotions_url %> /
|
2
3
|
<%= Spree.t(:new_promotion) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::Promotion.model_name.human, admin_promotions_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
6
|
<%= form_for :promotion, :url => collection_url do |f| %>
|
10
7
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
11
8
|
<div class="text-center">
|
12
|
-
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
|
9
|
+
<%= render :partial => 'spree/admin/shared/new_resource_links' %>
|
13
10
|
</div>
|
14
11
|
<% end %>
|
@@ -1,9 +1,6 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::Property.model_name.human, admin_properties_path) %>
|
2
|
+
<%= link_to Spree.t(:properties), admin_properties_url %> /
|
3
|
+
<%= @property.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @property } %>
|
@@ -1,13 +1,10 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @property } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
+
<%= link_to Spree.t(:properties), admin_properties_url %> /
|
4
5
|
<%= Spree.t(:new_property) %>
|
5
6
|
<% end %>
|
6
7
|
|
7
|
-
<% content_for :page_actions do %>
|
8
|
-
<%= back_to_list_button(Spree::Property.model_name.human, admin_properties_path) %>
|
9
|
-
<% end %>
|
10
|
-
|
11
8
|
<%= form_for [:admin, @property] do |f| %>
|
12
9
|
<fieldset data-hook="new_property">
|
13
10
|
<%= render partial: 'form', locals: { f: f } %>
|
@@ -1,9 +1,6 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
-
<%= Spree.t(:
|
3
|
-
|
4
|
-
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree::Prototype.model_name.human, admin_prototypes_path) %>
|
2
|
+
<%= link_to Spree.t(:prototypes), spree.admin_prototypes_url %> /
|
3
|
+
<%= @prototype.name %>
|
7
4
|
<% end %>
|
8
5
|
|
9
6
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @prototype } %>
|
@@ -1,13 +1,10 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/error_messages', :locals => { :target => @prototype } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
+
<%= link_to Spree.t(:prototypes), spree.admin_prototypes_url %> /
|
4
5
|
<%= Spree.t(:new_prototype) %>
|
5
6
|
<% end %>
|
6
7
|
|
7
|
-
<% content_for :page_actions do %>
|
8
|
-
<%= back_to_list_button(Spree::Prototype.model_name.human, admin_prototypes_path) %>
|
9
|
-
<% end %>
|
10
|
-
|
11
8
|
<%= form_for [:admin, @prototype] do |f| %>
|
12
9
|
<fieldset data-hook="new_prototype">
|
13
10
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
@@ -1,4 +1,3 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/named_types/edit', locals: {
|
2
|
-
|
3
|
-
back_button_text: Spree.t(:back_to_resource_list, resource: Spree::RefundReason.model_name.human)
|
2
|
+
collection_url_label: Spree.t(:refund_reasons)
|
4
3
|
} %>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/named_types/new', locals: {
|
2
|
-
|
3
|
-
|
2
|
+
collection_url_label: Spree.t(:refund_reasons),
|
3
|
+
page_title: Spree.t(:new_refund_reason)
|
4
4
|
} %>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :payments } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
/ <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %>
|
5
|
-
/ <%= Spree.t(:
|
4
|
+
/ <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", spree.admin_order_payment_path(@refund.payment.order, @refund.payment) %>
|
5
|
+
/ <%= Spree.t(:refund) %> <%= @refund.id %>
|
6
6
|
<% end %>
|
7
7
|
|
8
8
|
<%= form_for [:admin, @refund.payment.order, @refund.payment, @refund] do |f| %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/order_tabs', locals: {current: :payments} %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
/ <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", admin_order_payment_path(@refund.payment.order, @refund.payment) %>
|
4
|
+
/ <%= link_to "#{Spree.t(:payment)} #{@refund.payment.id}", spree.admin_order_payment_path(@refund.payment.order, @refund.payment) %>
|
5
5
|
/ <%= Spree.t(:new_refund) %>
|
6
6
|
<% end %>
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :customer_returns } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
/ <%= Spree.t(:
|
4
|
+
/ <%= Spree.t(:reimbursement) %> #<%= @reimbursement.number %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @reimbursement } %>
|
@@ -1,11 +1,8 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:reports), spree.admin_reports_url %> /
|
2
3
|
<%= Spree.t(:sales_totals) %>
|
3
4
|
<% end %>
|
4
5
|
|
5
|
-
<% content_for :page_actions do %>
|
6
|
-
<%= back_to_list_button(Spree.t(:report), admin_reports_path) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
6
|
<div class="well">
|
10
7
|
<%= render :partial => 'spree/admin/shared/report_order_criteria' %>
|
11
8
|
</div>
|