shoppe 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/shoppe/table-tear-off.png +0 -0
- data/app/assets/javascripts/shoppe/application.coffee +2 -2
- data/app/assets/stylesheets/shoppe/application.scss +80 -37
- data/app/assets/stylesheets/shoppe/elements.scss +1 -2
- data/app/controllers/shoppe/attachments_controller.rb +3 -3
- data/app/controllers/shoppe/countries_controller.rb +13 -13
- data/app/controllers/shoppe/delivery_service_prices_controller.rb +11 -11
- data/app/controllers/shoppe/delivery_services_controller.rb +13 -13
- data/app/controllers/shoppe/orders_controller.rb +20 -20
- data/app/controllers/shoppe/payments_controller.rb +8 -8
- data/app/controllers/shoppe/product_categories_controller.rb +13 -13
- data/app/controllers/shoppe/products_controller.rb +24 -13
- data/app/controllers/shoppe/sessions_controller.rb +7 -7
- data/app/controllers/shoppe/settings_controller.rb +6 -6
- data/app/controllers/shoppe/stock_level_adjustments_controller.rb +5 -5
- data/app/controllers/shoppe/tax_rates_controller.rb +13 -13
- data/app/controllers/shoppe/users_controller.rb +15 -15
- data/app/controllers/shoppe/variants_controller.rb +13 -13
- data/app/helpers/shoppe/application_helper.rb +12 -12
- data/app/models/shoppe/order/actions.rb +17 -3
- data/app/models/shoppe/order/billing.rb +18 -18
- data/app/models/shoppe/order/delivery.rb +30 -31
- data/app/models/shoppe/order_item.rb +33 -34
- data/app/models/shoppe/payment.rb +15 -15
- data/app/models/shoppe/product.rb +82 -21
- data/app/models/shoppe/product/variants.rb +10 -10
- data/app/models/shoppe/product_category.rb +7 -7
- data/app/models/shoppe/stock_level_adjustment.rb +6 -6
- data/app/validators/permalink_validator.rb +7 -0
- data/app/views/layouts/shoppe/application.html.haml +10 -20
- data/app/views/shoppe/countries/_form.html.haml +15 -11
- data/app/views/shoppe/countries/edit.html.haml +5 -4
- data/app/views/shoppe/countries/index.html.haml +9 -9
- data/app/views/shoppe/countries/new.html.haml +6 -4
- data/app/views/shoppe/delivery_service_prices/_form.html.haml +16 -16
- data/app/views/shoppe/delivery_service_prices/edit.html.haml +5 -4
- data/app/views/shoppe/delivery_service_prices/index.html.haml +8 -9
- data/app/views/shoppe/delivery_service_prices/new.html.haml +5 -4
- data/app/views/shoppe/delivery_services/_form.html.haml +15 -14
- data/app/views/shoppe/delivery_services/edit.html.haml +7 -5
- data/app/views/shoppe/delivery_services/index.html.haml +11 -12
- data/app/views/shoppe/delivery_services/new.html.haml +5 -4
- data/app/views/shoppe/orders/_form.html.haml +19 -19
- data/app/views/shoppe/orders/_order_details.html.haml +20 -15
- data/app/views/shoppe/orders/_order_items.html.haml +6 -6
- data/app/views/shoppe/orders/_order_items_form.html.haml +11 -11
- data/app/views/shoppe/orders/_payments_form.html.haml +4 -4
- data/app/views/shoppe/orders/_payments_table.html.haml +12 -12
- data/app/views/shoppe/orders/_search_form.html.haml +10 -10
- data/app/views/shoppe/orders/_status_bar.html.haml +17 -13
- data/app/views/shoppe/orders/despatch_note.html.haml +15 -15
- data/app/views/shoppe/orders/edit.html.haml +8 -8
- data/app/views/shoppe/orders/index.html.haml +12 -12
- data/app/views/shoppe/orders/new.html.haml +7 -7
- data/app/views/shoppe/orders/show.html.haml +9 -12
- data/app/views/shoppe/payments/refund.html.haml +6 -7
- data/app/views/shoppe/product_categories/_form.html.haml +9 -9
- data/app/views/shoppe/product_categories/edit.html.haml +4 -4
- data/app/views/shoppe/product_categories/index.html.haml +5 -5
- data/app/views/shoppe/product_categories/new.html.haml +4 -3
- data/app/views/shoppe/products/_form.html.haml +49 -50
- data/app/views/shoppe/products/_table.html.haml +10 -10
- data/app/views/shoppe/products/edit.html.haml +6 -6
- data/app/views/shoppe/products/import.html.haml +63 -0
- data/app/views/shoppe/products/index.html.haml +6 -4
- data/app/views/shoppe/products/new.html.haml +6 -4
- data/app/views/shoppe/sessions/new.html.haml +5 -5
- data/app/views/shoppe/sessions/reset.html.haml +6 -5
- data/app/views/shoppe/settings/edit.html.haml +5 -5
- data/app/views/shoppe/shared/error.html.haml +3 -3
- data/app/views/shoppe/stock_level_adjustments/index.html.haml +13 -12
- data/app/views/shoppe/tax_rates/form.html.haml +13 -13
- data/app/views/shoppe/tax_rates/index.html.haml +5 -5
- data/app/views/shoppe/users/_form.html.haml +10 -11
- data/app/views/shoppe/users/edit.html.haml +4 -4
- data/app/views/shoppe/users/index.html.haml +5 -5
- data/app/views/shoppe/users/new.html.haml +6 -4
- data/app/views/shoppe/variants/form.html.haml +27 -29
- data/app/views/shoppe/variants/index.html.haml +11 -11
- data/config/locales/en.yml +619 -14
- data/config/locales/es.yml +650 -0
- data/config/locales/pl.yml +650 -0
- data/config/locales/pt-BR.yml +643 -0
- data/config/routes.rb +16 -8
- data/db/migrate/20141026175622_add_indexes_to_shoppe_order_items.rb +6 -0
- data/db/migrate/20141026175943_add_indexes_to_shoppe_orders.rb +7 -0
- data/db/migrate/20141026180333_add_indexes_to_shoppe_payments.rb +6 -0
- data/db/migrate/20141026180835_add_indexes_to_shoppe_product_attributes.rb +7 -0
- data/db/migrate/20141026180952_add_indexes_to_shoppe_product_categories.rb +5 -0
- data/db/migrate/20141026181040_add_indexes_to_shoppe_products.rb +8 -0
- data/db/migrate/20141026181312_add_indexes_to_shoppe_settings.rb +5 -0
- data/db/migrate/20141026181354_add_indexes_to_shoppe_stock_level_adjustments.rb +6 -0
- data/db/migrate/20141026181559_add_indexes_to_shoppe_users.rb +5 -0
- data/db/migrate/20141026181716_add_indexes_to_shoppe_delivery_services.rb +9 -0
- data/db/schema.rb +36 -1
- data/lib/shoppe/engine.rb +6 -0
- data/lib/shoppe/navigation_manager.rb +1 -1
- data/lib/shoppe/version.rb +1 -1
- metadata +67 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.products.products')
|
|
2
2
|
= content_for :header do
|
|
3
3
|
%p.buttons
|
|
4
|
-
= link_to
|
|
5
|
-
= link_to
|
|
6
|
-
= link_to
|
|
7
|
-
%h2.products
|
|
8
|
-
= render 'form'
|
|
4
|
+
= link_to t('shoppe.products.variants') , [@product, :variants], :class => 'button'
|
|
5
|
+
= link_to t('shoppe.products.stock_levels') , stock_level_adjustments_path(:item_id => @product.id, :item_type => @product.class), :class => 'button', :rel => 'dialog', :data => {:dialog_width => 700, :dialog_behavior => 'stockLevelAdjustments'}
|
|
6
|
+
= link_to t('shoppe.products.back_to_products') , :products, :class => 'button'
|
|
7
|
+
%h2.products= t('shoppe.products.products')
|
|
8
|
+
= render 'form'
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
- @page_title = t('shoppe.products.products')
|
|
2
|
+
|
|
3
|
+
= content_for :header do
|
|
4
|
+
%h2.products= t('shoppe.products.import_products')
|
|
5
|
+
|
|
6
|
+
= form_for "import", :url => import_products_path, :html => {:multipart => true} do |f|
|
|
7
|
+
= f.error_messages
|
|
8
|
+
|
|
9
|
+
= field_set_tag t('shoppe.imports.file_upload') do
|
|
10
|
+
%dl
|
|
11
|
+
%dt= f.label :import_file, t('shoppe.imports.required_formats')
|
|
12
|
+
%dd= f.file_field :import_file
|
|
13
|
+
|
|
14
|
+
= field_set_tag t('shoppe.imports.example_file') do
|
|
15
|
+
%dl
|
|
16
|
+
%dd
|
|
17
|
+
%table.importExample
|
|
18
|
+
%thead
|
|
19
|
+
%tr
|
|
20
|
+
%th name
|
|
21
|
+
%th sku
|
|
22
|
+
%th description
|
|
23
|
+
%th short_description
|
|
24
|
+
%th weight
|
|
25
|
+
%th price
|
|
26
|
+
%th category_name
|
|
27
|
+
%th qty
|
|
28
|
+
%tbody
|
|
29
|
+
%tr
|
|
30
|
+
%td= t('shoppe.products.imports.examples.first.name')
|
|
31
|
+
%td= t('shoppe.products.imports.examples.first.sku')
|
|
32
|
+
%td= t('shoppe.products.imports.examples.first.description')
|
|
33
|
+
%td= t('shoppe.products.imports.examples.first.short_description')
|
|
34
|
+
%td= t('shoppe.products.imports.examples.first.weight')
|
|
35
|
+
%td= t('shoppe.products.imports.examples.first.price')
|
|
36
|
+
%td= t('shoppe.products.imports.examples.first.category_name')
|
|
37
|
+
%td= t('shoppe.products.imports.examples.first.qty')
|
|
38
|
+
%tr
|
|
39
|
+
%td= t('shoppe.products.imports.examples.second.name')
|
|
40
|
+
%td= t('shoppe.products.imports.examples.second.sku')
|
|
41
|
+
%td= t('shoppe.products.imports.examples.second.description')
|
|
42
|
+
%td= t('shoppe.products.imports.examples.second.short_description')
|
|
43
|
+
%td= t('shoppe.products.imports.examples.second.weight')
|
|
44
|
+
%td= t('shoppe.products.imports.examples.second.price')
|
|
45
|
+
%td= t('shoppe.products.imports.examples.second.category_name')
|
|
46
|
+
%td= t('shoppe.products.imports.examples.second.qty')
|
|
47
|
+
%tr
|
|
48
|
+
%td= t('shoppe.products.imports.examples.third.name')
|
|
49
|
+
%td= t('shoppe.products.imports.examples.third.sku')
|
|
50
|
+
%td= t('shoppe.products.imports.examples.third.description')
|
|
51
|
+
%td= t('shoppe.products.imports.examples.third.short_description')
|
|
52
|
+
%td= t('shoppe.products.imports.examples.third.weight')
|
|
53
|
+
%td= t('shoppe.products.imports.examples.third.price')
|
|
54
|
+
%td= t('shoppe.products.imports.examples.third.category_name')
|
|
55
|
+
%td= t('shoppe.products.imports.examples.third.qty')
|
|
56
|
+
%tr.tear-off
|
|
57
|
+
%td{:colspan => "8"}
|
|
58
|
+
%dd
|
|
59
|
+
%p.help= t('shoppe.products.imports.help')
|
|
60
|
+
|
|
61
|
+
%p.submit
|
|
62
|
+
= f.submit t('shoppe.import'), :class => "button green"
|
|
63
|
+
= link_to t('shoppe.cancel'), :products, :class => "button"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.products.products')
|
|
2
2
|
|
|
3
3
|
= content_for :header do
|
|
4
|
-
%p.buttons
|
|
5
|
-
|
|
4
|
+
%p.buttons
|
|
5
|
+
= link_to t('shoppe.products.new_product'), :new_product, :class => 'button green'
|
|
6
|
+
= link_to t('shoppe.products.import_products'), :import_products, :class => 'button gray'
|
|
7
|
+
%h2.products= t('shoppe.products.products')
|
|
6
8
|
|
|
7
|
-
= render 'table', :products => @products
|
|
9
|
+
= render 'table', :products => @products
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.products.products')
|
|
2
|
+
|
|
2
3
|
= content_for :header do
|
|
3
|
-
%p.buttons= link_to
|
|
4
|
-
%h2.products
|
|
5
|
-
|
|
4
|
+
%p.buttons= link_to t('shoppe.products.back_to_products') , :products, :class => 'button'
|
|
5
|
+
%h2.products= t('shoppe.products.products')
|
|
6
|
+
|
|
7
|
+
= render 'form'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.sessions.admin_login')
|
|
2
2
|
= display_flash
|
|
3
3
|
.loginArea
|
|
4
4
|
= form_tag :login, :class => 'login' do
|
|
5
5
|
%p.field
|
|
6
|
-
= text_field_tag 'email_address', params[:email_address], :class => 'focus', :placeholder => '
|
|
6
|
+
= text_field_tag 'email_address', params[:email_address], :class => 'focus', :placeholder => t('shoppe.sessions.email')
|
|
7
7
|
%p.field
|
|
8
|
-
= password_field_tag 'password', params[:password], :class => '', :placeholder =>
|
|
8
|
+
= password_field_tag 'password', params[:password], :class => '', :placeholder => t('shoppe.sessions.password')
|
|
9
9
|
%p.submit
|
|
10
|
-
= submit_tag
|
|
10
|
+
= submit_tag t('shoppe.sessions.login'), :class => 'button green'
|
|
11
11
|
%p.reset
|
|
12
|
-
= link_to
|
|
12
|
+
= link_to t('shoppe.sessions.reset_password?'), login_reset_path
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.sessions.reset_password')
|
|
2
|
+
|
|
2
3
|
= display_flash
|
|
3
4
|
.loginArea
|
|
4
|
-
%h2
|
|
5
|
+
%h2= t('shoppe.sessions.reset_password')
|
|
5
6
|
= form_tag :login_reset, :class => 'login' do
|
|
6
7
|
%p.field
|
|
7
|
-
= text_field_tag 'email_address', params[:email_address], :class => 'focus', :placeholder => '
|
|
8
|
+
= text_field_tag 'email_address', params[:email_address], :class => 'focus', :placeholder => t('shoppe.sessions.email')
|
|
8
9
|
%p.submit
|
|
9
|
-
= submit_tag
|
|
10
|
+
= submit_tag t('shoppe.sessions.reset') , :class => 'button green'
|
|
10
11
|
%p.reset
|
|
11
|
-
= link_to
|
|
12
|
+
= link_to t('shoppe.sessions.back_to_login') , login_path
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
- @page_title = "
|
|
1
|
+
- @page_title = t("shoppe.settings.settings")
|
|
2
2
|
|
|
3
3
|
= content_for :header do
|
|
4
|
-
%h2.settings
|
|
4
|
+
%h2.settings= t("shoppe.settings.settings")
|
|
5
5
|
|
|
6
6
|
= form_tag :url => settings_path do |f|
|
|
7
7
|
|
|
8
8
|
- Shoppe.settings_groups.each do |group, fields|
|
|
9
|
-
= field_set_tag t(group) do
|
|
9
|
+
= field_set_tag t("shoppe.settings.#{group}") do
|
|
10
10
|
- fields.each do |f|
|
|
11
11
|
%dl.sided
|
|
12
12
|
%dt= settings_label f
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
= settings_field f
|
|
15
15
|
- if v = t("shoppe.settings.help")[f]
|
|
16
16
|
%p.help= v
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
%p.submit.sided
|
|
19
|
-
= submit_tag "
|
|
19
|
+
= submit_tag t("shoppe.settings.save_settings"), :class => 'button green'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.shared.error')
|
|
2
2
|
= display_flash
|
|
3
3
|
.error
|
|
4
|
-
%h2
|
|
4
|
+
%h2= t('shoppe.shared.error_occured')
|
|
5
5
|
%p.message= @exception.message
|
|
6
|
-
%p.back= link_to "&larr
|
|
6
|
+
%p.back= link_to "←#{t('shoppe.shared.back_to_shoppe')}".html_safe, root_path, :class => 'button'
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.stock_level_adjustments.stock_levels_title', item_name: @item.name)
|
|
2
|
+
|
|
2
3
|
= content_for :header do
|
|
3
4
|
%p.buttons
|
|
4
5
|
- case @item
|
|
5
6
|
- when Shoppe::Product
|
|
6
7
|
- @active_nav = :products
|
|
7
|
-
= link_to
|
|
8
|
-
= link_to
|
|
9
|
-
|
|
10
|
-
%h2.products
|
|
8
|
+
= link_to t('shoppe.stock_level_adjustments.edit_product'), [:edit, @item], :class => 'button'
|
|
9
|
+
= link_to t('shoppe.stock_level_adjustments.back_to_product'), :products, :class => 'button'
|
|
10
|
+
|
|
11
|
+
%h2.products= t('shoppe.stock_level_adjustments.stock_levels_for', item_name: @item.name)
|
|
11
12
|
|
|
12
13
|
.table
|
|
13
14
|
%p.info
|
|
14
|
-
|
|
15
|
+
= t('shoppe.stock_level_adjustments.current_stock_level_html', item_stock: @item.stock).html_safe
|
|
15
16
|
%span.float-right= page_entries_info @stock_level_adjustments
|
|
16
17
|
|
|
17
18
|
= form_for @new_sla do |f|
|
|
@@ -20,20 +21,20 @@
|
|
|
20
21
|
%table.data
|
|
21
22
|
%thead
|
|
22
23
|
%tr
|
|
23
|
-
%th{:width => '25%'}
|
|
24
|
-
%th{:width => '50%'}
|
|
25
|
-
%th{:width => '25%'}
|
|
24
|
+
%th{:width => '25%'}= t('shoppe.stock_level_adjustments.date')
|
|
25
|
+
%th{:width => '50%'}= t('shoppe.stock_level_adjustments.description')
|
|
26
|
+
%th{:width => '25%'}= t('shoppe.stock_level_adjustments.adjustment')
|
|
26
27
|
%tbody
|
|
27
28
|
%tr.form
|
|
28
29
|
%td
|
|
29
30
|
%td.desc= f.text_field :description
|
|
30
31
|
%td.adjustment
|
|
31
32
|
= f.text_field :adjustment
|
|
32
|
-
= f.submit
|
|
33
|
+
= f.submit t('shoppe.stock_level_adjustments.add'), :class => 'button button-mini green'
|
|
33
34
|
- for sla in @stock_level_adjustments
|
|
34
35
|
%tr
|
|
35
|
-
%td= sla.created_at
|
|
36
|
+
%td= l(sla.created_at, format: :long)
|
|
36
37
|
%td= sla.description
|
|
37
38
|
%td= sla.adjustment > 0 ? "+#{sla.adjustment}" : sla.adjustment
|
|
38
39
|
|
|
39
|
-
= paginate @stock_level_adjustments
|
|
40
|
+
= paginate @stock_level_adjustments
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.tax_rates.tax_rates')
|
|
2
2
|
= content_for :header do
|
|
3
|
-
%p.buttons= link_to
|
|
4
|
-
%h2.tax_rates
|
|
3
|
+
%p.buttons= link_to t('shoppe.tax_rates.back_to_tax_rates'), :tax_rates, :class => 'button grey'
|
|
4
|
+
%h2.tax_rates= t('shoppe.tax_rates.tax_rates')
|
|
5
5
|
|
|
6
6
|
= form_for @tax_rate do |f|
|
|
7
7
|
= f.error_messages
|
|
8
|
-
= field_set_tag
|
|
8
|
+
= field_set_tag t('shoppe.tax_rates.rate_details') do
|
|
9
9
|
.splitContainer
|
|
10
10
|
%dl.half
|
|
11
|
-
%dt= f.label :name
|
|
11
|
+
%dt= f.label :name, t('shoppe.tax_rates.name')
|
|
12
12
|
%dd= f.text_field :name, :class => 'focus text'
|
|
13
13
|
%dl.half
|
|
14
|
-
%dt= f.label :rate
|
|
14
|
+
%dt= f.label :rate, t('shoppe.tax_rates.rate')
|
|
15
15
|
%dd= f.text_field :rate, :class => 'text'
|
|
16
|
-
|
|
17
|
-
= field_set_tag
|
|
16
|
+
|
|
17
|
+
= field_set_tag t('shoppe.tax_rates.country_restriction') do
|
|
18
18
|
%dl
|
|
19
19
|
%dd
|
|
20
|
-
= f.select :address_type, Shoppe::TaxRate::ADDRESS_TYPES.map { |a| [
|
|
20
|
+
= f.select :address_type, Shoppe::TaxRate::ADDRESS_TYPES.map { |a| [t('shoppe.tax_rates.address_type_option', address: t("shoppe.tax_rates.#{a}")).html_safe, a]}, {}, :class => 'chosen-basic'
|
|
21
21
|
%dl
|
|
22
22
|
%dd
|
|
23
|
-
= f.collection_select :country_ids, Shoppe::Country.ordered, :id, :name, {}, {:class => 'chosen', :multiple => true, :data => {:placeholder =>
|
|
23
|
+
= f.collection_select :country_ids, Shoppe::Country.ordered, :id, :name, {}, {:class => 'chosen', :multiple => true, :data => {:placeholder => t('shoppe.tax_rates.all_countries') }}
|
|
24
24
|
%p.submit
|
|
25
25
|
- unless @tax_rate.new_record?
|
|
26
|
-
%span.right= link_to
|
|
27
|
-
= f.submit :class => 'button green'
|
|
28
|
-
= link_to
|
|
26
|
+
%span.right= link_to t('shoppe.delete'), @tax_rate, :class => 'button purple', :method => :delete, :data => {:confirm => t('shoppe.tax_rates.delete_confirmation') }
|
|
27
|
+
= f.submit t('shoppe.submit'), :class => 'button green'
|
|
28
|
+
= link_to t('shoppe.cancel'), :tax_rates, :class => 'button'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.tax_rates.tax_rates')
|
|
2
2
|
|
|
3
3
|
= content_for :header do
|
|
4
|
-
%p.buttons=link_to
|
|
5
|
-
%h2.tax_rates
|
|
4
|
+
%p.buttons= link_to t('shoppe.tax_rates.new_tax_rate'), :new_tax_rate, :class => 'button green'
|
|
5
|
+
%h2.tax_rates= t('shoppe.tax_rates.tax_rates')
|
|
6
6
|
|
|
7
7
|
.table
|
|
8
8
|
%table.data
|
|
9
9
|
%thead
|
|
10
10
|
%tr
|
|
11
|
-
%th
|
|
12
|
-
%th
|
|
11
|
+
%th= t('shoppe.tax_rates.name')
|
|
12
|
+
%th= t('shoppe.tax_rates.rate')
|
|
13
13
|
%tbody
|
|
14
14
|
- for tax_rate in @tax_rates
|
|
15
15
|
%tr
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
= form_for @user do |f|
|
|
2
2
|
= f.error_messages
|
|
3
|
-
= field_set_tag
|
|
3
|
+
= field_set_tag t('shoppe.users.user_details') do
|
|
4
4
|
.splitContainer
|
|
5
5
|
%dl.half
|
|
6
|
-
%dt= f.label :first_name
|
|
6
|
+
%dt= f.label :first_name, t('shoppe.users.first_name')
|
|
7
7
|
%dd= f.text_field :first_name, :class => 'focus text'
|
|
8
8
|
%dl.half
|
|
9
|
-
%dt= f.label :last_name
|
|
9
|
+
%dt= f.label :last_name, t('shoppe.users.last_name')
|
|
10
10
|
%dd= f.text_field :last_name, :class => 'text'
|
|
11
|
-
= field_set_tag "
|
|
11
|
+
= field_set_tag t("shoppe.users.login") do
|
|
12
12
|
.splitContainer
|
|
13
13
|
%dl.third
|
|
14
|
-
%dt= f.label :email_address
|
|
14
|
+
%dt= f.label :email_address, t('shoppe.users.email')
|
|
15
15
|
%dd= f.text_field :email_address, :class => 'text'
|
|
16
16
|
%dl.third
|
|
17
|
-
%dt= f.label :password
|
|
17
|
+
%dt= f.label :password, t('shoppe.users.password')
|
|
18
18
|
%dd= f.password_field :password, :class => 'text'
|
|
19
19
|
%dl.third
|
|
20
|
-
%dt= f.label :password_confirmation,
|
|
20
|
+
%dt= f.label :password_confirmation, t('shoppe.users.password_confirmation')
|
|
21
21
|
%dd= f.password_field :password_confirmation, :class => 'text'
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
%p.submit
|
|
25
24
|
- unless @user.new_record?
|
|
26
|
-
%span.right= link_to
|
|
27
|
-
= f.submit :class => 'button green'
|
|
28
|
-
= link_to
|
|
25
|
+
%span.right= link_to t('shoppe.delete'), @user, :class => 'button purple', :method => :delete, :data => {:confirm => t('shoppe.users.delete_confirmation')}
|
|
26
|
+
= f.submit t('shoppe.submit'), :class => 'button green'
|
|
27
|
+
= link_to t('shoppe.cancel'), :users, :class => 'button'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.users.users')
|
|
2
2
|
= content_for :header do
|
|
3
|
-
%p.buttons= link_to
|
|
4
|
-
%h2.users
|
|
5
|
-
= render 'form'
|
|
3
|
+
%p.buttons= link_to t('shoppe.users.back_to_users'), :users, :class => 'button'
|
|
4
|
+
%h2.users= t('shoppe.users.users')
|
|
5
|
+
= render 'form'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.users.users')
|
|
2
2
|
|
|
3
3
|
= content_for :header do
|
|
4
|
-
%p.buttons=link_to
|
|
5
|
-
%h2.users
|
|
4
|
+
%p.buttons= link_to t('shoppe.users.new_user'), :new_user, :class => 'button green'
|
|
5
|
+
%h2.users= t('shoppe.users.users')
|
|
6
6
|
|
|
7
7
|
.table
|
|
8
8
|
%table.data
|
|
9
9
|
%thead
|
|
10
10
|
%tr
|
|
11
|
-
%th
|
|
12
|
-
%th
|
|
11
|
+
%th= t('shoppe.users.name')
|
|
12
|
+
%th= t('shoppe.users.email')
|
|
13
13
|
%tbody
|
|
14
14
|
- for user in @users
|
|
15
15
|
%tr
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
- @page_title =
|
|
1
|
+
- @page_title = t('shoppe.users.users')
|
|
2
|
+
|
|
2
3
|
= content_for :header do
|
|
3
|
-
%p.buttons= link_to
|
|
4
|
-
%h2.users
|
|
5
|
-
|
|
4
|
+
%p.buttons= link_to t('shoppe.users.back_to_users'), :users, :class => 'button'
|
|
5
|
+
%h2.users= t('shoppe.users.users')
|
|
6
|
+
|
|
7
|
+
= render 'form'
|
|
@@ -1,68 +1,66 @@
|
|
|
1
|
-
- @page_title = "
|
|
1
|
+
- @page_title = "#{t('shoppe.variants.variants')} - #{@product.name}"
|
|
2
2
|
= content_for :header do
|
|
3
|
-
%p.buttons= link_to
|
|
4
|
-
%h2.products
|
|
5
|
-
|
|
3
|
+
%p.buttons= link_to t('shoppe.variants.back_to_variants'), [@product, :variants], :class => 'button'
|
|
4
|
+
%h2.products= t('shoppe.variants.variants_of', product:@product.name)
|
|
6
5
|
|
|
7
6
|
= form_for [@product, @variant], :url => @variant.new_record? ? product_variants_path(@product) : product_variant_path(@product, @variant), :html => {:multipart => true} do |f|
|
|
8
7
|
= f.error_messages
|
|
9
|
-
= field_set_tag
|
|
8
|
+
= field_set_tag t('shoppe.variants.product_information') do
|
|
10
9
|
.splitContainer
|
|
11
10
|
%dl.third
|
|
12
|
-
%dt= f.label :name
|
|
11
|
+
%dt= f.label :name, t('shoppe.variants.name')
|
|
13
12
|
%dd= f.text_field :name, :class => 'text focus'
|
|
14
13
|
%dl.third
|
|
15
|
-
%dt= f.label :permalink
|
|
14
|
+
%dt= f.label :permalink, t('shoppe.variants.permalink')
|
|
16
15
|
%dd= f.text_field :permalink, :class => 'text'
|
|
17
16
|
%dl.third
|
|
18
|
-
%dt= f.label :sku, '
|
|
17
|
+
%dt= f.label :sku, t('shoppe.variants.sku')
|
|
19
18
|
%dd= f.text_field :sku, :class => 'text'
|
|
20
|
-
|
|
21
|
-
= field_set_tag
|
|
19
|
+
|
|
20
|
+
= field_set_tag t('shoppe.variants.image') do
|
|
22
21
|
%dl
|
|
23
22
|
%dd
|
|
24
23
|
= attachment_preview @variant.default_image, :hide_if_blank => true
|
|
25
24
|
%p= f.file_field :default_image_file
|
|
26
|
-
|
|
27
|
-
= field_set_tag "Pricing" do
|
|
25
|
+
= field_set_tag t("shoppe.variants.pricing") do
|
|
28
26
|
.splitContainer
|
|
29
27
|
%dl.third
|
|
30
|
-
%dt= f.label :price
|
|
28
|
+
%dt= f.label :price, t('shoppe.variants.price')
|
|
31
29
|
%dd= f.text_field :price, :class => 'text'
|
|
32
30
|
%dl.third
|
|
33
|
-
%dt= f.label :cost_price
|
|
31
|
+
%dt= f.label :cost_price, t('shoppe.variants.cost_price')
|
|
34
32
|
%dd= f.text_field :cost_price, :class => 'text'
|
|
35
33
|
%dl.third
|
|
36
|
-
%dt= f.label :tax_rate_id
|
|
37
|
-
%dd= f.collection_select :tax_rate_id, Shoppe::TaxRate.ordered, :id, :description, {:include_blank => true}, {:class => 'chosen-with-deselect', :data => {:placeholder =>
|
|
34
|
+
%dt= f.label :tax_rate_id, t('shoppe.variants.tax_rate')
|
|
35
|
+
%dd= f.collection_select :tax_rate_id, Shoppe::TaxRate.ordered, :id, :description, {:include_blank => true}, {:class => 'chosen-with-deselect', :data => {:placeholder => t('shoppe.variants.no_tax')}}
|
|
38
36
|
|
|
39
|
-
= field_set_tag
|
|
37
|
+
= field_set_tag t('shoppe.variants.stock_control') do
|
|
40
38
|
.splitContainer
|
|
41
39
|
%dl.half
|
|
42
|
-
%dt= f.label :weight
|
|
40
|
+
%dt= f.label :weight, t('shoppe.variants.weight')
|
|
43
41
|
%dd= f.text_field :weight, :class => 'text'
|
|
44
42
|
|
|
45
43
|
%dl.half
|
|
46
|
-
%dt= f.label :stock_control
|
|
44
|
+
%dt= f.label :stock_control, t('shoppe.variants.stock_control')
|
|
47
45
|
%dd.checkbox
|
|
48
46
|
= f.check_box :stock_control
|
|
49
|
-
= f.label :stock_control,
|
|
47
|
+
= f.label :stock_control, t('shoppe.variants.enable_stock_control?')
|
|
50
48
|
|
|
51
|
-
= field_set_tag
|
|
49
|
+
= field_set_tag t('shoppe.variants.website_properties') do
|
|
52
50
|
.splitContainer
|
|
53
51
|
%dl.half
|
|
54
|
-
%dt= f.label :active,
|
|
52
|
+
%dt= f.label :active, t('shoppe.variants.on_sale?')
|
|
55
53
|
%dd.checkbox
|
|
56
54
|
= f.check_box :active
|
|
57
|
-
= f.label :active,
|
|
55
|
+
= f.label :active, t('shoppe.variants.on_sale_info')
|
|
58
56
|
%dl.half
|
|
59
|
-
%dt= f.label :default,
|
|
57
|
+
%dt= f.label :default, t('shoppe.variants.default_variant?')
|
|
60
58
|
%dd.checkbox
|
|
61
59
|
= f.check_box :default
|
|
62
|
-
= f.label :default,
|
|
63
|
-
|
|
60
|
+
= f.label :default, t('shoppe.variants.default_variant_info')
|
|
61
|
+
|
|
64
62
|
%p.submit
|
|
65
63
|
- unless @variant.new_record?
|
|
66
|
-
%span.right= link_to
|
|
67
|
-
= f.submit
|
|
68
|
-
= link_to
|
|
64
|
+
%span.right= link_to t('shoppe.delete'), product_variant_path(@product, @variant), :class => 'button purple', :method => :delete, :data => {:confirm => t('shoppe.variants.delete_confirmation')}
|
|
65
|
+
= f.submit t('shoppe.variants.save_variant'), :class => 'button green'
|
|
66
|
+
= link_to t('shoppe.cancel'), :products, :class => 'button'
|