Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 0 stable #150

Merged
merged 14 commits into from
Dec 30, 2016
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- bundle exec rake test_app
- echo 'Rails.application.config.assets.precompile += %w( spinner.gif )' >> spec/dummy/config/initializers/assets.rb
script:
- bundle exec rspec spec
rvm:
- 2.1
- 2.2
- 2.2.2
4 changes: 2 additions & 2 deletions app/views/spree/admin/parts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<div class="input-group">
<input id="searchtext" size="25" class="form-control">
<span class="input-group-btn">
<button id="search_parts_button" class="fa fa-search btn btn-search" name="button">
Search
<button id="search_parts_button" class="btn btn-search" name="button">
<%= Spree.t('.search') %>
</button>
</span>
</div>
Expand Down
10 changes: 5 additions & 5 deletions app/views/spree/admin/products/_product_assembly_fields.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div data-hook="admin_product_form_can_be_part">
<%= f.field_container :can_be_part, class: ['form-group'] do %>
<%= f.label :can_be_part %>
<%= f.label Spree.t('.can_be_part') %>
<%= f.error_message_on :can_be_part %>
<%= f.check_box :can_be_part, class: 'form-control' %>
<%= f.check_box :can_be_part %>
<% end %>
</div>

<div data-hook="admin_product_form_individual_sale">
<%= f.field_container :individual_sale, class: ['form-group'] do %>
<%= f.label :individual_sale %>
<%= f.label Spree.t('.individual_sale') %>
<%= f.error_message_on :individual_sale %>
<%= f.check_box :individual_sale, class: 'form-control' %>
<%= f.check_box :individual_sale %>
<% end %>
</div>

Expand All @@ -23,4 +23,4 @@
});
</script>
<% end %>
<% end %>
<% end %>
12 changes: 10 additions & 2 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
---
ru:
spree:
admin:
parts:
index:
search: Поиск
products:
form:
can_be_part: Может быть частью набора
individual_sale: Может продаваться отдельно
available_parts: Доступные составные части
can_be_part: Может входить в состав других продуктов
individual_sale: Может продаваться отдельно
Expand All @@ -9,6 +17,6 @@ ru:
assembly_cannot_be_part: сборка не может быть частью
product_bundles: Продукт cвязки
parts_included: 'Детали, входящие'
part_of_bundle: 'Часть пучка %{sku}'
part_of_bundle: 'Часть набора %{sku}'
selected_quantity_not_available:
user_selectable:
user_selectable: Выбирается пользователем
4 changes: 2 additions & 2 deletions spree_product_assembly.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'ffaker'
s.add_development_dependency 'launchy'
s.add_development_dependency 'pg'
s.add_development_dependency 'poltergeist', '~> 1.6'
s.add_development_dependency 'rspec-rails', '~> 3.3.0'
s.add_development_dependency 'poltergeist', '~> 1.12.0'
s.add_development_dependency 'rspec-rails', '~> 3.5.2'
s.add_development_dependency 'sass-rails', '~> 5.0.0'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'sqlite3'
Expand Down