refinerycms-stores 0.0.14 → 0.0.16

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.
Files changed (39) hide show
  1. data/Gemfile +12 -12
  2. data/Rakefile +3 -3
  3. data/VERSION +1 -1
  4. data/app/assets/stylesheets/refinery/refinerycms-stores.sass +10 -0
  5. data/app/controllers/refinery/customers/customers_controller.rb +76 -0
  6. data/app/controllers/refinery/orders/orders_controller.rb +1 -0
  7. data/app/controllers/refinery/stores/stores_controller.rb +1 -0
  8. data/app/helpers/refinery/stores/stores_helper.rb +27 -0
  9. data/app/models/refinery/addresses/address.rb +3 -0
  10. data/app/models/refinery/customers/customer.rb +17 -0
  11. data/app/models/refinery/orders/order.rb +2 -1
  12. data/app/views/refinery/customers/edit.html.haml +17 -0
  13. data/app/views/refinery/customers/new.html.haml +17 -0
  14. data/app/views/refinery/products/products/show.html.haml +38 -0
  15. data/app/views/refinery/stores/stores/_cart.html.haml +20 -0
  16. data/app/views/refinery/stores/stores/_cart_item.html.haml +9 -0
  17. data/app/views/refinery/stores/stores/_customer_head.html.haml +12 -0
  18. data/app/views/refinery/stores/stores/_list_product.html.haml +11 -0
  19. data/app/views/refinery/stores/stores/index.html.haml +6 -0
  20. data/app/views/refinery/stores/stores/show.html.haml +14 -0
  21. data/config/locales/en.yml +23 -0
  22. data/config/locales/es.yml +24 -0
  23. data/config/locales/fr.yml +23 -0
  24. data/config/locales/nb.yml +24 -0
  25. data/config/locales/nl.yml +24 -0
  26. data/config/routes.rb +17 -11
  27. data/db/migrate/6_create_customers_customers.rb +22 -0
  28. data/lib/refinery/customers.rb +21 -0
  29. data/lib/refinery/customers/engine.rb +31 -0
  30. data/lib/refinerycms-stores.rb +1 -0
  31. data/refinerycms-stores.gemspec +21 -445
  32. metadata +37 -1612
  33. data/Gemfile.lock +0 -338
  34. data/app/views/refinery/products/products/show.html.erb +0 -76
  35. data/app/views/refinery/stores/stores/_cart.html.erb +0 -22
  36. data/app/views/refinery/stores/stores/_cart_item.html.erb +0 -9
  37. data/app/views/refinery/stores/stores/_list_product.html.erb +0 -16
  38. data/app/views/refinery/stores/stores/index.html.erb +0 -11
  39. data/app/views/refinery/stores/stores/show.html.erb +0 -29
@@ -1,16 +0,0 @@
1
- <dl>
2
- <dt>
3
- <% if list_product.main_pic_id -%>
4
- <%= image_fu list_product.main_pic, Refinery::Images.user_image_sizes[:small], :class => "catalog-pic", :alt => list_product.name %>
5
- <% else -%>
6
- &nbsp;
7
- <% end %>
8
- </dt>
9
- <dd>
10
- <%= link_to( ( truncate( list_product.name, :length => 60 ) + " &raquo;" ).html_safe, refinery.products_product_path( list_product ) ) %>
11
- <br/>
12
- <%= number_to_currency(list_product.price) %>
13
- <% # = button_to( "add to cart", refinery.add_to_cart_stores_stores_path(:id => list_product), :class => "add-to-cart" ) %>
14
-
15
- </dd>
16
- </dl>
@@ -1,11 +0,0 @@
1
- <% content_for :body_content_left do %>
2
- <ul id="stores">
3
- <% @stores.each do |store| %>
4
- <li>
5
- <%= link_to store.name, refinery.stores_store_path(store) %>
6
- </li>
7
- <% end %>
8
- </ul>
9
- <% end %>
10
-
11
- <%= render '/refinery/content_page' %>
@@ -1,29 +0,0 @@
1
- <% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-stores')%>
2
-
3
-
4
- <% content_for :body_content_title do %>
5
- <%= @store.name %>
6
- <% end %>
7
-
8
- <% content_for :body_content_left do %>
9
- <section>
10
- <h1>
11
- <%= @store.name %>
12
- </h1>
13
- <%=raw @store.description %>
14
- </section>
15
-
16
- <section class='catalog-brief-list' >
17
- <%= render :partial => "list_product", :collection => @store.active_products %>
18
- </section>
19
-
20
- <% end %>
21
-
22
- <% content_for :body_content_right do %>
23
- <aside>
24
- <%= render( :partial => "cart", :object => @cart ) %>
25
- </aside>
26
- <% end %>
27
-
28
- <%= render "/refinery/content_page" %>
29
-