spree_backend 2.1.7 → 2.1.8

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: cd53e6c39454defcfdc16122be6d38b21cd60ca8
4
- data.tar.gz: 6a3e9ebb4b838cc72862b336cbc6bf5b43d467eb
3
+ metadata.gz: df81aacc016ea405ef389b051b7b58b89fc30ec1
4
+ data.tar.gz: 03d04c5ce4ed98373ab823e10c11707c30087175
5
5
  SHA512:
6
- metadata.gz: 13ccc8fddb1910cdf4568841793c96d0f9fa5d2ac28e2a3b35711369cbb40c9aed0b0ae492013817f8a002909b59ec725649b164e377be0383269f56db1842fe
7
- data.tar.gz: f913deeb7fc1c5680719a3683dbdc46db3773d32a1dfda08167baa5b8b9d1a985ede084b43fb9a3189719aed4de9bf172be6553baa17f3ab4996947cd2526e8d
6
+ metadata.gz: d413378bc8e1b67876c630f77745a663f028eedb121e4a2f20fbc697b58b845b078d4e280b676c5b1a9197aae68817566ed45005ce74ecd6821ca933d4571dd8
7
+ data.tar.gz: ba6b561414b4f01b8a1dc3b180270e63ba04bb94b81f1bd57e316c2335d34fb023497f19f9375e8a26e099ec9caec5ba6767108e6c4900ac34a26b82c3bef664
@@ -1,40 +1,48 @@
1
1
  <div data-hook="admin_product_form_fields">
2
-
3
- <div class="left eight columns alpha" data-hook="admin_product_form_left">
4
- <%= f.field_container :name do %>
5
- <%= f.label :name, raw(Spree.t(:name) + content_tag(:span, ' *', :class => 'required')) %>
6
- <%= f.text_field :name, :class => 'fullwidth title' %>
7
- <%= f.error_message_on :name %>
8
- <% end %>
9
2
 
10
- <%= f.field_container :permalink do %>
11
- <%= f.label :permalink, raw(Spree.t(:permalink) + content_tag(:span, ' *', :class => "required")) %>
12
- <%= f.text_field :permalink, :class => 'fullwidth title' %>
13
- <%= f.error_message_on :permalink %>
14
- <% end %>
3
+ <div class="left eight columns alpha" data-hook="admin_product_form_left">
4
+ <div data-hook="admin_product_form_name">
5
+ <%= f.field_container :name do %>
6
+ <%= f.label :name, raw(Spree.t(:name) + content_tag(:span, ' *', :class => 'required')) %>
7
+ <%= f.text_field :name, :class => 'fullwidth title' %>
8
+ <%= f.error_message_on :name %>
9
+ <% end %>
10
+ </div>
15
11
 
16
- <%= f.field_container :description do %>
17
- <%= f.label :description, Spree.t(:description) %>
18
- <%= f.text_area :description, {:rows => "#{unless @product.has_variants? then '20' else '13' end}", :class => 'fullwidth'} %>
19
- <%= f.error_message_on :description %>
20
- <% end %>
12
+ <div data-hook="admin_product_form_permalink">
13
+ <%= f.field_container :permalink do %>
14
+ <%= f.label :permalink, raw(Spree.t(:permalink) + content_tag(:span, ' *', :class => "required")) %>
15
+ <%= f.text_field :permalink, :class => 'fullwidth title' %>
16
+ <%= f.error_message_on :permalink %>
17
+ <% end %>
18
+ </div>
19
+
20
+ <div data-hook="admin_product_form_description">
21
+ <%= f.field_container :description do %>
22
+ <%= f.label :description, Spree.t(:description) %>
23
+ <%= f.text_area :description, {:rows => "#{unless @product.has_variants? then '20' else '13' end}", :class => 'fullwidth'} %>
24
+ <%= f.error_message_on :description %>
25
+ <% end %>
26
+ </div>
21
27
  </div>
22
28
 
23
29
  <div class="right four columns omega" data-hook="admin_product_form_right">
30
+ <div data-hook="admin_product_form_price">
24
31
  <%= f.field_container :price do %>
25
32
  <%= f.label :price, raw(Spree.t(:master_price) + content_tag(:span, ' *', :class => "required")) %>
26
33
  <%= f.text_field :price, :value => number_to_currency(@product.price, :unit => '') %>
27
34
  <%= f.error_message_on :price %>
28
35
  <% end %>
36
+ </div>
29
37
 
30
- <div class="alpha two columns">
38
+ <div data-hook="admin_product_form_cost_price" class="alpha two columns">
31
39
  <%= f.field_container :cost_price do %>
32
40
  <%= f.label :cost_price, Spree.t(:cost_price) %>
33
41
  <%= f.text_field :cost_price, :value => number_to_currency(@product.cost_price, :unit => '') %>
34
42
  <%= f.error_message_on :cost_price %>
35
43
  <% end %>
36
44
  </div>
37
- <div class="omega two columns">
45
+ <div data-hook="admin_product_form_cost_currency" class="omega two columns">
38
46
  <%= f.field_container :cost_currency do %>
39
47
  <%= f.label :cost_currency, Spree.t(:cost_currency) %>
40
48
  <%= f.text_field :cost_currency %>
@@ -44,73 +52,89 @@
44
52
 
45
53
  <div class="clear"></div>
46
54
 
47
- <%= f.field_container :available_on do %>
48
- <%= f.label :available_on, Spree.t(:available_on) %>
49
- <%= f.error_message_on :available_on %>
50
- <%= f.text_field :available_on, :value => datepicker_field_value(@product.available_on), :class => 'datepicker' %>
51
- <% end %>
55
+ <div data-hook="admin_product_form_available_on">
56
+ <%= f.field_container :available_on do %>
57
+ <%= f.label :available_on, Spree.t(:available_on) %>
58
+ <%= f.error_message_on :available_on %>
59
+ <%= f.text_field :available_on, :value => datepicker_field_value(@product.available_on), :class => 'datepicker' %>
60
+ <% end %>
61
+ </div>
52
62
 
53
63
  <% unless @product.has_variants? %>
54
- <%= f.field_container :sku do %>
55
- <%= f.label :sku, Spree.t(:sku) %>
56
- <%= f.text_field :sku, :size => 16 %>
57
- <% end %>
64
+ <div data-hook="admin_product_form_sku">
65
+ <%= f.field_container :sku do %>
66
+ <%= f.label :sku, Spree.t(:sku) %>
67
+ <%= f.text_field :sku, :size => 16 %>
68
+ <% end %>
69
+ </div>
58
70
 
59
71
  <ul id="shipping_specs">
60
- <li id="shipping_specs_weight_field" class="field alpha two columns">
72
+ <li id="shipping_specs_weight_field" data-hook="admin_product_form_weight" class="field alpha two columns">
61
73
  <%= f.label :weight, Spree.t(:weight) %>
62
74
  <%= f.text_field :weight, :size => 4 %>
63
75
  </li>
64
- <li id="shipping_specs_height_field" class="field omega two columns">
76
+ <li id="shipping_specs_height_field" data-hook="admin_product_form_height" class="field omega two columns">
65
77
  <%= f.label :height, Spree.t(:height) %>
66
78
  <%= f.text_field :height, :size => 4 %>
67
79
  </li>
68
- <li id="shipping_specs_width_field" class="field alpha two columns">
80
+ <li id="shipping_specs_width_field" data-hook="admin_product_form_width" class="field alpha two columns">
69
81
  <%= f.label :width, Spree.t(:width) %>
70
82
  <%= f.text_field :width, :size => 4 %>
71
83
  </li>
72
- <li id="shipping_specs_depth_field" class="field omega two columns">
84
+ <li id="shipping_specs_depth_field" data-hook="admin_product_form_depth" class="field omega two columns">
73
85
  <%= f.label :depth, Spree.t(:depth) %>
74
86
  <%= f.text_field :depth, :size => 4 %>
75
87
  </li>
76
88
  </ul>
77
89
  <% end %>
78
90
 
79
- <%= f.field_container :shipping_categories do %>
80
- <%= f.label :shipping_category_id, Spree.t(:shipping_categories) %>
81
- <%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
82
- <%= f.error_message_on :shipping_category %>
83
- <% end %>
91
+ <div data-hook="admin_product_form_shipping_categories">
92
+ <%= f.field_container :shipping_categories do %>
93
+ <%= f.label :shipping_category_id, Spree.t(:shipping_categories) %>
94
+ <%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
95
+ <%= f.error_message_on :shipping_category %>
96
+ <% end %>
97
+ </div>
84
98
 
85
- <%= f.field_container :tax_category do %>
86
- <%= f.label :tax_category_id, Spree.t(:tax_category) %>
87
- <%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
88
- <%= f.error_message_on :tax_category %>
89
- <% end %>
99
+ <div data-hook="admin_product_form_tax_category">
100
+ <%= f.field_container :tax_category do %>
101
+ <%= f.label :tax_category_id, Spree.t(:tax_category) %>
102
+ <%= f.collection_select(:tax_category_id, @tax_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2' }) %>
103
+ <%= f.error_message_on :tax_category %>
104
+ <% end %>
105
+ </div>
90
106
  </div>
91
107
 
92
108
  <div class="twelve columns alpha omega">
93
- <%= f.field_container :taxons do %>
94
- <%= f.label :taxon_ids, Spree.t(:taxons) %><br />
95
- <%= f.hidden_field :taxon_ids, :value => @product.taxon_ids.join(',') %>
96
- <% end %>
109
+ <div data-hook="admin_product_form_taxons">
110
+ <%= f.field_container :taxons do %>
111
+ <%= f.label :taxon_ids, Spree.t(:taxons) %><br />
112
+ <%= f.hidden_field :taxon_ids, :value => @product.taxon_ids.join(',') %>
113
+ <% end %>
114
+ </div>
97
115
 
98
- <%= f.field_container :option_types do %>
99
- <%= f.label :option_type_ids, Spree.t(:option_types) %>
100
- <%= f.hidden_field :option_type_ids, :value => @product.option_type_ids.join(',') %>
101
- <% end %>
116
+ <div data-hook="admin_product_form_option_types">
117
+ <%= f.field_container :option_types do %>
118
+ <%= f.label :option_type_ids, Spree.t(:option_types) %>
119
+ <%= f.hidden_field :option_type_ids, :value => @product.option_type_ids.join(',') %>
120
+ <% end %>
121
+ </div>
102
122
  </div>
103
123
 
104
124
  <div data-hook="admin_product_form_meta" class="alpha omega twelve columns">
105
- <%= f.field_container :meta_keywords do %>
106
- <%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
107
- <%= f.text_field :meta_keywords, :class => 'fullwidth' %>
108
- <% end %>
125
+ <div data-hook="admin_product_form_meta_keywords">
126
+ <%= f.field_container :meta_keywords do %>
127
+ <%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
128
+ <%= f.text_field :meta_keywords, :class => 'fullwidth' %>
129
+ <% end %>
130
+ </div>
109
131
 
110
- <%= f.field_container :meta_description do %>
111
- <%= f.label :meta_description, Spree.t(:meta_description) %>
112
- <%= f.text_field :meta_description, :class => 'fullwidth' %>
113
- <% end %>
132
+ <div data-hook="admin_product_form_meta_description">
133
+ <%= f.field_container :meta_description do %>
134
+ <%= f.label :meta_description, Spree.t(:meta_description) %>
135
+ <%= f.text_field :meta_description, :class => 'fullwidth' %>
136
+ <% end %>
137
+ </div>
114
138
  </div>
115
139
 
116
140
  <div class="clear"></div>
@@ -15,7 +15,7 @@
15
15
 
16
16
  <div data-hook="new_product_attrs" class="row">
17
17
  <% unless @product.has_variants? %>
18
- <div class="alpha four columns">
18
+ <div data-hook="new_product_sku" class="alpha four columns">
19
19
  <%= f.field_container :sku do %>
20
20
  <%= f.label :sku, Spree.t(:sku) %><br />
21
21
  <%= f.text_field :sku, :size => 16, :class => 'fullwidth' %>
@@ -24,14 +24,14 @@
24
24
  </div>
25
25
  <% end %>
26
26
 
27
- <div class="four columns">
27
+ <div data-hook="new_product_prototype" class="four columns">
28
28
  <%= f.field_container :prototype do %>
29
29
  <%= f.label :prototype_id, Spree.t(:prototype) %><br />
30
30
  <%= f.collection_select :prototype_id, Spree::Prototype.all, :id, :name, {:include_blank => true}, {:class => 'select2 fullwidth'} %>
31
31
  <% end %>
32
32
  </div>
33
33
 
34
- <div class="four columns">
34
+ <div data-hook="new_product_price" class="four columns">
35
35
  <%= f.field_container :price do %>
36
36
  <%= f.label :price, Spree.t(:master_price) %> <span class="required">*</span><br />
37
37
  <%= f.text_field :price, :value => number_to_currency(@product.price, :unit => ''), :class => 'fullwidth' %>
@@ -39,7 +39,7 @@
39
39
  <% end %>
40
40
  </div>
41
41
 
42
- <div class="omega four columns">
42
+ <div data-hook="new_product_available_on" class="omega four columns">
43
43
  <%= f.field_container :available_on do %>
44
44
  <%= f.label :available_on, Spree.t(:available_on) %>
45
45
  <%= f.error_message_on :available_on %>
@@ -50,7 +50,7 @@
50
50
  </div>
51
51
 
52
52
  <div class='row'>
53
- <div class="alpha four columns">
53
+ <div data-hook="new_product_shipping_category" class="alpha four columns">
54
54
  <%= f.field_container :shipping_category do %>
55
55
  <%= f.label :shipping_category_id, Spree.t(:shipping_categories) %><span class="required">*</span><br />
56
56
  <%= f.collection_select(:shipping_category_id, @shipping_categories, :id, :name, { :include_blank => Spree.t('match_choices.none') }, { :class => 'select2 fullwidth' }) %>
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: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-08-29 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: 2.1.7
19
+ version: 2.1.8
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: 2.1.7
26
+ version: 2.1.8
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: 2.1.7
33
+ version: 2.1.8
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: 2.1.7
40
+ version: 2.1.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jquery-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -510,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
510
510
  requirements:
511
511
  - none
512
512
  rubyforge_project: spree_backend
513
- rubygems_version: 2.2.0
513
+ rubygems_version: 2.2.2
514
514
  signing_key:
515
515
  specification_version: 4
516
516
  summary: backend e-commerce functionality for the Spree project.