spree_backend 3.3.0.rc3 → 3.3.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c66cca5bda36fa73f859fd3d8fdafc0c6e06b95d
4
- data.tar.gz: f3f65f7e81fea0575ee31b196cf40dc57bd22efb
3
+ metadata.gz: dcbed9a59ff4d3255bc7ac771d5f963acb1a417d
4
+ data.tar.gz: e4b9775933f2d19b397769f794771f4e8542b3bd
5
5
  SHA512:
6
- metadata.gz: bf2227704d8bfbe822faa9b0fa6dad95c0501ba90eaac53b088b66ed167a724369bc3f5b707484dfaafe9385fa4f059e20af71f9a02c762adee5ada80f356485
7
- data.tar.gz: d1aa7ef46bf241efce65841a51d67ba3e6d9781e9cf942d5f29c11550d6822d1f0de21c0faab250dfd432e84b16fbd15c844a3e95d07b25b271aa61d6f8e1e13
6
+ metadata.gz: 72c24116400af9d9f34048037f636af28b93b9f25f5e0c81fae6b49867796d38774496d05174cdcf08fba27543804e80efc11fb952431e677502a38c3204591a
7
+ data.tar.gz: e87afe394986f218222f35b2629a42ee62abffa84a38ddeec6a07ca8121cba3d98353430c07bf507135c4c4ea2dd0bd02c9012deb02e786fde7c9e4111c75f3f
@@ -29,6 +29,7 @@
29
29
  }
30
30
 
31
31
  // Orange
32
+ .label-processing,
32
33
  .label-pending,
33
34
  .label-awaiting_return,
34
35
  .label-returned,
@@ -50,7 +50,7 @@
50
50
  <div class="col-xs-12 col-md-4">
51
51
  <div class="form-group">
52
52
  <%= label_tag :q_state_eq, Spree.t(:status) %>
53
- <%= f.select :state_eq, Spree::Order.state_machines[:state].states.map {|s| [Spree.t("order_states.#{s.name}"), s.value]}, {include_blank: true}, class: 'select2 js-filterable' %>
53
+ <%= f.select :state_eq, Spree::Order.state_machines[:state].states.map {|s| [Spree.t("order_state.#{s.name}"), s.value]}, {include_blank: true}, class: 'select2 js-filterable' %>
54
54
  </div>
55
55
  </div>
56
56
 
@@ -181,7 +181,7 @@
181
181
  </span>
182
182
  </td>
183
183
  <td>
184
- <span class="label label-<%= order.state.downcase %>"><%= Spree.t("order_states.#{order.state.downcase}") %></span>
184
+ <span class="label label-<%= order.state.downcase %>"><%= Spree.t("order_state.#{order.state.downcase}") %></span>
185
185
  <span class="icon icon-filter filterable js-add-filter" data-ransack-field="q_state_eq" data-ransack-value="<%= order.state %>"></span>
186
186
  </td>
187
187
  <td>
@@ -18,14 +18,16 @@
18
18
  <%= f.label :credit_allowed, Spree.t(:credit_allowed) %><br/>
19
19
  <%= @refund.payment.credit_allowed %>
20
20
  </div>
21
- <div class="form-group">
21
+ <%= f.field_container :amount, class: ['form-group'] do %>
22
22
  <%= f.label :amount, Spree.t(:amount) %>
23
23
  <%= f.text_field :amount, class: 'form-control' %>
24
- </div>
25
- <div class="form-group">
24
+ <%= f.error_message_on :amount %>
25
+ <% end %>
26
+ <%= f.field_container :reason, class: ['form-group'] do %>
26
27
  <%= f.label :refund_reason_id, Spree.t(:reason) %>
27
28
  <%= f.collection_select(:refund_reason_id, refund_reasons, :id, :name, {include_blank: true}, {class: 'select2'}) %>
28
- </div>
29
+ <%= f.error_message_on :reason %>
30
+ <% end %>
29
31
  </div>
30
32
 
31
33
  <div class="form-actions" data-hook="buttons">
@@ -40,7 +40,7 @@
40
40
  </ul>
41
41
  <% end %>
42
42
 
43
- <% if can? :admin, current_store && Spree::Config[:admin_show_version] %>
43
+ <% if can?(:admin, current_store) && Spree::Config[:admin_show_version] %>
44
44
  <div class="spree-version hidden-xs hidden-sm">
45
45
  <%= Spree.version %>
46
46
  </div>
@@ -11,7 +11,7 @@
11
11
  </td>
12
12
  <td>
13
13
  <span class="state label label-<%= @order.state %>">
14
- <%= Spree.t(@order.state, scope: :order_states) %>
14
+ <%= Spree.t(@order.state, scope: :order_state) %>
15
15
  </span>
16
16
  </td>
17
17
  </tr>
@@ -1,4 +1,4 @@
1
- $('#order_tab_summary h5#order_status').html('<%= j Spree.t(:status) %>: <%= j Spree.t(@order.state, scope: :order_states) %>');
1
+ $('#order_tab_summary h5#order_status').html('<%= j Spree.t(:status) %>: <%= j Spree.t(@order.state, scope: :order_state) %>');
2
2
  $('#order_tab_summary h5#order_total').html('<%= j Spree.t(:total) %>: <%= j @order.display_total.to_html %>');
3
3
 
4
4
  <% if @order.completed? %>
@@ -21,8 +21,8 @@
21
21
  <% @state_changes.each do |state_change| %>
22
22
  <tr>
23
23
  <td><%= Spree.t("state_machine_states.#{state_change.name}") %></td>
24
- <td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope: "#{ state_change.name }_states") : Spree.t(:previous_state_missing) %></td>
25
- <td><%= Spree.t(state_change.next_state, scope: "#{ state_change.name}_states") %></td>
24
+ <td><%= state_change.previous_state ? Spree.t(state_change.previous_state, scope: "#{ state_change.name }_state") : Spree.t(:previous_state_missing) %></td>
25
+ <td><%= Spree.t(state_change.next_state, scope: "#{ state_change.name }_state") %></td>
26
26
  <td>
27
27
  <% if state_change.user %>
28
28
  <% user_login = state_change.user.try(:login) || state_change.user.try(:email) %>
@@ -39,7 +39,7 @@
39
39
  <td class="item-quantity"><%= item.quantity %></td>
40
40
  <td class="item-total"><%= item.money.to_html %></td>
41
41
  <td class="order-state">
42
- <div class="state <%= order.state.downcase %>"><%= Spree.t("order_states.#{order.state.downcase}") %></div>
42
+ <div class="state <%= order.state.downcase %>"><%= Spree.t("order_state.#{order.state.downcase}") %></div>
43
43
  <% if order.payment_state %>
44
44
  <div class="state <%= order.payment_state %>"><%= link_to Spree.t("payment_states.#{order.payment_state}"), admin_order_payments_path(order) %></div>
45
45
  <% end %>
@@ -26,7 +26,7 @@
26
26
  <td class="order-completed-at"><%= order_time(order.completed_at) if order.completed_at %></td>
27
27
  <td class="order-number"><%= link_to order.number, edit_admin_order_path(order) %></td>
28
28
  <td class="order-state">
29
- <div class="state <%= order.state.downcase %>"><%= Spree.t("order_states.#{order.state.downcase}") %></div>
29
+ <div class="state <%= order.state.downcase %>"><%= Spree.t("order_state.#{order.state.downcase}") %></div>
30
30
  <% if order.payment_state %>
31
31
  <div class="state <%= order.payment_state %>"><%= link_to Spree.t("payment_states.#{order.payment_state}"), admin_order_payments_path(order) %></div>
32
32
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0.rc3
4
+ version: 3.3.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-03 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.0.rc3
19
+ version: 3.3.0.rc4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.3.0.rc3
26
+ version: 3.3.0.rc4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: spree_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.3.0.rc3
33
+ version: 3.3.0.rc4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.3.0.rc3
40
+ version: 3.3.0.rc4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bootstrap-sass
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -304,7 +304,6 @@ files:
304
304
  - app/views/spree/admin/products/_add_stock_form.html.erb
305
305
  - app/views/spree/admin/products/_autocomplete.js.erb
306
306
  - app/views/spree/admin/products/_form.html.erb
307
- - app/views/spree/admin/products/_properties_form.erb
308
307
  - app/views/spree/admin/products/edit.html.erb
309
308
  - app/views/spree/admin/products/index.html.erb
310
309
  - app/views/spree/admin/products/new.html.erb
@@ -536,7 +535,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
536
535
  requirements:
537
536
  - none
538
537
  rubyforge_project:
539
- rubygems_version: 2.6.10
538
+ rubygems_version: 2.6.12
540
539
  signing_key:
541
540
  specification_version: 4
542
541
  summary: backend e-commerce functionality for the Spree project.
@@ -1,10 +0,0 @@
1
- <% content_for :page_title do %>
2
- <%= Spree.t(:properties) %>
3
- <% end %>
4
-
5
- <% f.fields_for :product_properties do |properties_form| %>
6
- <div data-hook="value">
7
- <%= properties_form.label :value, properties_form.object.property.presentation %>
8
- <%= properties_form.text_field :value, class: "form-control" %>
9
- </div>
10
- <% end %>