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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/spree/backend/components/_labels.scss +1 -1
  3. data/app/assets/stylesheets/spree/backend/shared/_forms.scss +2 -1
  4. data/app/controllers/spree/admin/resource_controller.rb +2 -8
  5. data/app/helpers/spree/admin/base_helper.rb +0 -5
  6. data/app/views/spree/admin/countries/_form.html.erb +6 -4
  7. data/app/views/spree/admin/countries/edit.html.erb +2 -5
  8. data/app/views/spree/admin/countries/new.html.erb +2 -5
  9. data/app/views/spree/admin/option_types/edit.html.erb +2 -3
  10. data/app/views/spree/admin/option_types/new.html.erb +1 -4
  11. data/app/views/spree/admin/orders/cart.html.erb +0 -3
  12. data/app/views/spree/admin/orders/edit.html.erb +0 -3
  13. data/app/views/spree/admin/payment_methods/_form.html.erb +5 -4
  14. data/app/views/spree/admin/payment_methods/edit.html.erb +2 -5
  15. data/app/views/spree/admin/payment_methods/new.html.erb +1 -4
  16. data/app/views/spree/admin/products/edit.html.erb +0 -1
  17. data/app/views/spree/admin/products/new.html.erb +1 -4
  18. data/app/views/spree/admin/promotion_categories/_form.html.erb +2 -1
  19. data/app/views/spree/admin/promotion_categories/edit.html.erb +2 -5
  20. data/app/views/spree/admin/promotion_categories/new.html.erb +1 -4
  21. data/app/views/spree/admin/promotions/_form.html.erb +1 -0
  22. data/app/views/spree/admin/promotions/edit.html.erb +5 -8
  23. data/app/views/spree/admin/promotions/new.html.erb +2 -5
  24. data/app/views/spree/admin/properties/edit.html.erb +2 -5
  25. data/app/views/spree/admin/properties/new.html.erb +1 -4
  26. data/app/views/spree/admin/prototypes/edit.html.erb +2 -5
  27. data/app/views/spree/admin/prototypes/new.html.erb +1 -4
  28. data/app/views/spree/admin/refund_reasons/edit.html.erb +1 -2
  29. data/app/views/spree/admin/refund_reasons/new.html.erb +2 -2
  30. data/app/views/spree/admin/refunds/edit.html.erb +2 -2
  31. data/app/views/spree/admin/refunds/new.html.erb +1 -1
  32. data/app/views/spree/admin/reimbursements/edit.html.erb +1 -1
  33. data/app/views/spree/admin/reports/sales_total.html.erb +1 -4
  34. data/app/views/spree/admin/return_authorization_reasons/edit.html.erb +1 -2
  35. data/app/views/spree/admin/return_authorization_reasons/new.html.erb +2 -2
  36. data/app/views/spree/admin/return_authorizations/edit.html.erb +2 -2
  37. data/app/views/spree/admin/return_authorizations/index.html.erb +5 -1
  38. data/app/views/spree/admin/roles/_form.html.erb +3 -2
  39. data/app/views/spree/admin/roles/edit.html.erb +3 -4
  40. data/app/views/spree/admin/roles/new.html.erb +2 -3
  41. data/app/views/spree/admin/shared/_address_form.html.erb +24 -16
  42. data/app/views/spree/admin/shared/named_types/_edit.html.erb +2 -5
  43. data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -0
  44. data/app/views/spree/admin/shared/named_types/_new.html.erb +1 -4
  45. data/app/views/spree/admin/shipping_categories/_form.html.erb +5 -2
  46. data/app/views/spree/admin/shipping_categories/edit.html.erb +2 -5
  47. data/app/views/spree/admin/shipping_categories/new.html.erb +1 -4
  48. data/app/views/spree/admin/shipping_methods/_form.html.erb +8 -8
  49. data/app/views/spree/admin/shipping_methods/edit.html.erb +2 -1
  50. data/app/views/spree/admin/shipping_methods/new.html.erb +1 -0
  51. data/app/views/spree/admin/states/_form.html.erb +1 -0
  52. data/app/views/spree/admin/states/edit.html.erb +2 -5
  53. data/app/views/spree/admin/states/new.html.erb +1 -4
  54. data/app/views/spree/admin/stock_locations/_form.html.erb +3 -2
  55. data/app/views/spree/admin/stock_locations/edit.html.erb +1 -5
  56. data/app/views/spree/admin/stock_locations/new.html.erb +2 -5
  57. data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
  58. data/app/views/spree/admin/stock_movements/new.html.erb +2 -4
  59. data/app/views/spree/admin/stock_transfers/new.html.erb +2 -1
  60. data/app/views/spree/admin/stock_transfers/show.html.erb +2 -1
  61. data/app/views/spree/admin/store_credit_categories/_form.html.erb +3 -2
  62. data/app/views/spree/admin/store_credit_categories/edit.html.erb +4 -1
  63. data/app/views/spree/admin/store_credit_categories/new.html.erb +3 -0
  64. data/app/views/spree/admin/store_credits/edit.html.erb +5 -3
  65. data/app/views/spree/admin/store_credits/index.html.erb +4 -4
  66. data/app/views/spree/admin/store_credits/new.html.erb +5 -3
  67. data/app/views/spree/admin/tax_categories/_form.html.erb +1 -0
  68. data/app/views/spree/admin/tax_categories/edit.html.erb +2 -5
  69. data/app/views/spree/admin/tax_categories/new.html.erb +1 -4
  70. data/app/views/spree/admin/tax_rates/_form.html.erb +5 -2
  71. data/app/views/spree/admin/tax_rates/edit.html.erb +2 -5
  72. data/app/views/spree/admin/tax_rates/new.html.erb +1 -4
  73. data/app/views/spree/admin/taxonomies/_form.html.erb +2 -2
  74. data/app/views/spree/admin/taxonomies/edit.erb +2 -5
  75. data/app/views/spree/admin/taxonomies/new.html.erb +2 -4
  76. data/app/views/spree/admin/taxons/_form.html.erb +1 -1
  77. data/app/views/spree/admin/taxons/edit.html.erb +3 -1
  78. data/app/views/spree/admin/trackers/_form.html.erb +8 -7
  79. data/app/views/spree/admin/trackers/edit.html.erb +6 -3
  80. data/app/views/spree/admin/trackers/new.html.erb +1 -0
  81. data/app/views/spree/admin/users/_form.html.erb +1 -1
  82. data/app/views/spree/admin/users/_sidebar.html.erb +4 -0
  83. data/app/views/spree/admin/users/_user_page_actions.html.erb +0 -1
  84. data/app/views/spree/admin/users/addresses.html.erb +5 -4
  85. data/app/views/spree/admin/users/edit.html.erb +4 -4
  86. data/app/views/spree/admin/users/items.html.erb +5 -4
  87. data/app/views/spree/admin/users/new.html.erb +1 -4
  88. data/app/views/spree/admin/users/orders.html.erb +5 -4
  89. data/app/views/spree/admin/zones/_form.html.erb +1 -0
  90. data/app/views/spree/admin/zones/edit.html.erb +2 -1
  91. data/app/views/spree/admin/zones/new.html.erb +1 -0
  92. data/spec/controllers/spree/admin/resource_controller_spec.rb +0 -26
  93. data/spec/features/admin/products/option_types_spec.rb +3 -2
  94. data/spec/features/admin/promotions/adjustments_spec.rb +19 -15
  95. data/spec/features/admin/returns/return_authorizations_spec.rb +1 -1
  96. data/spec/features/admin/users_spec.rb +1 -1
  97. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72f29c266e31ffa57b06e31e539805843fd76f6b
4
- data.tar.gz: 783e730217fa4b781cf3943da4f3e11d4b84dc04
3
+ metadata.gz: 23177f6b62d7410c90a9ff8bb4cc5f603fb42440
4
+ data.tar.gz: f70f840a9320ec0fcd89bb6b724f4184c7bc190e
5
5
  SHA512:
6
- metadata.gz: 436b9616f06b71d298ba59c69ed05b2cbdbc2c9b606d58e506dd0a5424c8eb2fea8eebf3d1ab1e2e9981974f20b9892f9d5bb2e010aa39a8cc917c741115f888
7
- data.tar.gz: 48da0978b94d953e2007c97b090fd05fe8db10fa7d010d5406cb7815cc6119a52e195e827980b62d1f088f14d4f323d201fb72c909e79785a7fe10b14aaf1c81
6
+ metadata.gz: e2149d65382ca555ee229d0681f8056973a27b4c7f4ba6df0bb3f3bb1125011c8dc661657459e2997bb0c81946e7979401ade77673fb2436f4f49dc385c3c336
7
+ data.tar.gz: 20e47c99f1b509be5a356f7e108ef75dd00e4eeb50263cfd1dfc884a6b19090f795d695c62d2d87fb49044dd423df2a4e60906aa0d6f38c83fedaf40b64b66af
@@ -8,7 +8,7 @@
8
8
  .label-active,
9
9
  .label-success,
10
10
  .label-sold,
11
- .label-open
11
+ .label-open,
12
12
  .label-authorized
13
13
  {
14
14
  background-color: $brand-success;
@@ -33,7 +33,8 @@ input.form-control {
33
33
  color: $brand-danger
34
34
  }
35
35
 
36
- input {
36
+ input,
37
+ .select2-choice {
37
38
  border-color: $brand-danger;
38
39
  }
39
40
  }
@@ -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 do
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 do
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
- <div data-hook="name" class="form-group">
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
- </div>
5
+ <%= f.error_message_on :name %>
6
+ <% end %>
6
7
 
7
- <div data-hook="iso_name" class="form-group">
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
- </div>
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(:editing_resource, resource: Spree::Country.model_name.human) %>
3
- <% end %>
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
- <% content_for :page_actions do %>
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(:editing_resource, resource: Spree::OptionType.model_name.human) %> <span class="green">"<%= @option_type.name %>"</span>
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: :cart %>
7
4
 
@@ -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
- <div data-hook="name" class="form-group">
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
- </div>
49
- <div data-hook="description" class="form-group">
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
- </div>
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(:editing_resource, resource: Spree::PaymentMethod.model_name.human) %> / <%= @payment_method.name %>
3
- <% end %>
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 => @promotion } %>
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(:editing_resource, resource: Spree::PromotionCategory.model_name.human) %>
3
- <% end %>
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 } %>
@@ -5,6 +5,7 @@
5
5
  <%= f.field_container :name, class: ['form-group'] do %>
6
6
  <%= f.label :name %>
7
7
  <%= f.text_field :name, :class => 'form-control' %>
8
+ <%= f.error_message_on :name %>
8
9
  <% end %>
9
10
 
10
11
  <%= f.field_container :code, class: ['form-group'] do %>
@@ -1,19 +1,16 @@
1
1
  <% content_for :page_title do %>
2
- <%= Spree.t(:editing_resource, resource: Spree::Promotion.model_name.human) %>
3
- <% end %>
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(:editing_resource, resource: Spree::Property.model_name.human) %>
3
- <% end %>
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(:editing_resource, resource: Spree::Prototype.model_name.human) %>
3
- <% end %>
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
- page_title: Spree.t(:editing_resource, resource: Spree::RefundReason.model_name.human),
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
- page_title: Spree.t(:new_refund_reason),
3
- back_button_text: Spree.t(:back_to_resource_list, resource: Spree::RefundReason.model_name.human)
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(:editing_resource, resource: Spree::Refund.model_name.human) %> <%= @refund.id %>
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(:editing_resource, resource: Spree::Reimbursement.model_name.human) %> #<%= @reimbursement.number %>
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>