refinerycms-stores 0.0.16 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/VERSION +1 -1
- data/app/assets/images/Excel.png +0 -0
- data/app/assets/images/PowerPoint.png +0 -0
- data/app/assets/images/Word.png +0 -0
- data/app/assets/images/audio-icon.png +0 -0
- data/app/assets/images/camera-icon.png +0 -0
- data/app/assets/images/html-icon.png +0 -0
- data/app/assets/images/muku-doc-font-128.png +0 -0
- data/app/assets/images/pdf-icon.png +0 -0
- data/app/assets/images/print-icon.png +0 -0
- data/app/assets/images/video-icon.png +0 -0
- data/app/assets/images/warning-icon.png +0 -0
- data/app/assets/images/zip_thumb.png +0 -0
- data/app/assets/stylesheets/refinery/refinerycms-stores.sass +66 -0
- data/app/controllers/refinery/customers/customers_controller.rb +35 -17
- data/app/controllers/refinery/orders/admin/orders_controller.rb +2 -1
- data/app/controllers/refinery/orders/orders_controller.rb +14 -9
- data/app/controllers/refinery/products/admin/digidownloads_controller.rb +39 -0
- data/app/controllers/refinery/products/admin/products_controller.rb +54 -4
- data/app/controllers/refinery/products/digidownloads_controller.rb +32 -0
- data/app/controllers/refinery/products/products_controller.rb +3 -0
- data/app/controllers/refinery/stores/stores_controller.rb +3 -2
- data/app/controllers/refinery/stores_application_controller.rb +6 -1
- data/app/helpers/refinery/stores/stores_helper.rb +4 -3
- data/app/models/refinery/addresses/address.rb +42 -0
- data/app/models/refinery/customers/customer.rb +7 -1
- data/app/models/refinery/orders/line_item.rb +10 -0
- data/app/models/refinery/orders/order.rb +59 -47
- data/app/models/refinery/products/digidownload.rb +181 -0
- data/app/models/refinery/products/product.rb +21 -1
- data/app/views/refinery/customers/customers/edit.html.haml +54 -0
- data/app/views/refinery/customers/{new.html.haml → customers/new.html.haml} +10 -3
- data/app/views/refinery/orders/admin/orders/_actions.html.haml +4 -0
- data/app/views/refinery/orders/admin/orders/_order.html.haml +13 -0
- data/app/views/refinery/orders/admin/orders/_orders.html.haml +2 -0
- data/app/views/refinery/orders/admin/orders/_records.html.haml +12 -0
- data/app/views/refinery/orders/admin/orders/_sortable_list.html.haml +4 -0
- data/app/views/refinery/orders/admin/orders/index.html.haml +5 -0
- data/app/views/refinery/orders/admin/orders/show.html.haml +80 -0
- data/app/views/refinery/orders/orders/edit.html.haml +2 -2
- data/app/views/refinery/orders/orders/index.html.haml +19 -4
- data/app/views/refinery/orders/orders/show.html.haml +68 -25
- data/app/views/refinery/products/admin/digidownloads/_actions.html.haml +19 -0
- data/app/views/refinery/products/admin/digidownloads/_digidownload.html.haml +13 -0
- data/app/views/refinery/products/admin/digidownloads/_digidownloads.html.haml +2 -0
- data/app/views/refinery/products/admin/digidownloads/_form.html.haml +41 -0
- data/app/views/refinery/products/admin/digidownloads/_records.html.haml +12 -0
- data/app/views/refinery/products/admin/digidownloads/_sortable_list.html.haml +4 -0
- data/app/views/refinery/products/admin/digidownloads/edit.html.haml +2 -0
- data/app/views/refinery/products/admin/digidownloads/index.html.haml +6 -0
- data/app/views/refinery/products/admin/digidownloads/new.html.haml +2 -0
- data/app/views/refinery/products/admin/products/_form.html.haml +98 -0
- data/app/views/refinery/products/digidownloads/index.html.haml +28 -0
- data/app/views/refinery/products/digidownloads/show.html.haml +39 -0
- data/app/views/refinery/products/products/show.html.haml +10 -9
- data/app/views/refinery/shared/_address.html.haml +18 -0
- data/app/views/refinery/{orders/orders → shared}/_address_form.html.haml +0 -0
- data/app/views/refinery/{stores/stores → shared}/_cart.html.haml +2 -2
- data/app/views/refinery/{stores/stores → shared}/_cart_item.html.haml +0 -0
- data/app/views/refinery/shared/_customer_head.html.haml +20 -0
- data/app/views/refinery/stores/admin/stores/_actions.html.haml +46 -0
- data/app/views/refinery/stores/stores/show.html.haml +1 -1
- data/config/locales/en.yml +17 -0
- data/config/routes.rb +24 -9
- data/db/migrate/3_create_orders_orders.rb +2 -0
- data/db/migrate/7_create_products_digidownloads.rb +33 -0
- data/lib/refinery/addresses.rb +11 -11
- data/lib/refinery/addresses/engine.rb +3 -3
- data/lib/refinery/auth_key.rb +44 -0
- data/lib/refinery/customers.rb +11 -11
- data/lib/refinery/customers/engine.rb +3 -3
- data/lib/refinery/orders.rb +1 -1
- data/lib/refinery/products.rb +2 -2
- data/lib/refinery/products/engine.rb +2 -2
- data/lib/refinery/stores.rb +1 -0
- data/lib/refinery/stores/authenticated_system.rb +25 -0
- data/lib/refinery/stores/engine.rb +19 -0
- data/lib/refinerycms-stores.rb +5 -2
- data/readme.md +32 -1
- data/refinerycms-stores.gemspec +54 -20
- metadata +87 -37
- data/app/views/refinery/customers/edit.html.haml +0 -17
- data/app/views/refinery/orders/admin/orders/_actions.html.erb +0 -25
- data/app/views/refinery/orders/admin/orders/_form.html.erb +0 -122
- data/app/views/refinery/orders/admin/orders/_order.html.erb +0 -20
- data/app/views/refinery/orders/admin/orders/_orders.html.erb +0 -2
- data/app/views/refinery/orders/admin/orders/_records.html.erb +0 -18
- data/app/views/refinery/orders/admin/orders/_sortable_list.html.erb +0 -5
- data/app/views/refinery/orders/admin/orders/edit.html.erb +0 -1
- data/app/views/refinery/orders/admin/orders/index.html.erb +0 -7
- data/app/views/refinery/orders/admin/orders/new.html.erb +0 -1
- data/app/views/refinery/products/admin/products/_form.html.erb +0 -127
- data/app/views/refinery/stores/admin/stores/_actions.html.erb +0 -57
- data/app/views/refinery/stores/stores/_customer_head.html.haml +0 -12
@@ -1,20 +0,0 @@
|
|
1
|
-
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(order) -%>">
|
2
|
-
<span class='title'>
|
3
|
-
<%= order.order_status %>
|
4
|
-
|
5
|
-
</span>
|
6
|
-
<span class='actions'>
|
7
|
-
|
8
|
-
<%= link_to refinery_icon_tag("application_go.png"), refinery.orders_order_path(order),
|
9
|
-
:title => t('.view_live_html'),
|
10
|
-
:target => "_blank" %>
|
11
|
-
|
12
|
-
<%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_orders_admin_order_path(order),
|
13
|
-
:title => t('.edit') %>
|
14
|
-
<%= link_to refinery_icon_tag("delete.png"), refinery.orders_admin_order_path(order),
|
15
|
-
:class => "cancel confirm-delete",
|
16
|
-
:title => t('.delete'),
|
17
|
-
:confirm => t('message', :scope => 'refinery.admin.delete', :title => order.order_status),
|
18
|
-
:method => :delete %>
|
19
|
-
</span>
|
20
|
-
</li>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<% if searching? %>
|
2
|
-
<h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2>
|
3
|
-
<% end %>
|
4
|
-
<div class='pagination_container'>
|
5
|
-
<% if @orders.any? %>
|
6
|
-
<%= render 'orders' %>
|
7
|
-
<% else %>
|
8
|
-
<p>
|
9
|
-
<% unless searching? %>
|
10
|
-
<strong>
|
11
|
-
<%= t('.no_items_yet') %>
|
12
|
-
</strong>
|
13
|
-
<% else %>
|
14
|
-
<%= t('no_results', :scope => 'refinery.admin.search') %>
|
15
|
-
<% end %>
|
16
|
-
</p>
|
17
|
-
<% end %>
|
18
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render 'form' %>
|
@@ -1,7 +0,0 @@
|
|
1
|
-
<section id='records'>
|
2
|
-
<%= render 'records' %>
|
3
|
-
</section>
|
4
|
-
<aside id='actions'>
|
5
|
-
<%= render 'actions' %>
|
6
|
-
</aside>
|
7
|
-
<%= render '/refinery/admin/make_sortable', :tree => false if !searching? and ::Refinery::Orders::Admin::OrdersController.sortable? and ::Refinery::Orders::Order.count > 1 %>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render 'form' %>
|
@@ -1,127 +0,0 @@
|
|
1
|
-
<%= form_for [refinery, :products_admin, @product] do |f| -%>
|
2
|
-
<%= render '/refinery/admin/error_messages',
|
3
|
-
:object => @product,
|
4
|
-
:include_object_name => true %>
|
5
|
-
|
6
|
-
<table width="100%" class='product-header' >
|
7
|
-
<tr>
|
8
|
-
<td style="vertical-align: top;" >
|
9
|
-
<div class='field'>
|
10
|
-
<%= f.label 'choose a store' -%>
|
11
|
-
<%= f.select :store_id, ::Refinery::Stores::Store.select_list -%>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class='field '>
|
15
|
-
<%= f.label :name -%>
|
16
|
-
<%= f.text_field :name, :size => 80 -%>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class='field '>
|
20
|
-
<%= f.label :date_available -%>
|
21
|
-
<%= f.datetime_select :date_available -%>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class='field '>
|
25
|
-
<%= f.label :inactive -%>
|
26
|
-
<%= f.check_box :inactive -%>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
|
30
|
-
</td>
|
31
|
-
|
32
|
-
|
33
|
-
<td class="mainpic" >
|
34
|
-
|
35
|
-
<div class='field'>
|
36
|
-
<%= f.label :main_pic -%>
|
37
|
-
<%= render :partial => "/refinery/admin/image_picker", :locals => {
|
38
|
-
:f => f,
|
39
|
-
:field => :main_pic_id,
|
40
|
-
:image => @product.main_pic,
|
41
|
-
:toggle_image_display => false
|
42
|
-
} %>
|
43
|
-
</div>
|
44
|
-
</td>
|
45
|
-
</tr>
|
46
|
-
</table>
|
47
|
-
|
48
|
-
<div class='clearfix' >
|
49
|
-
<div class='field float-field'>
|
50
|
-
<%= f.label :code -%>
|
51
|
-
<%= f.text_field :code -%>
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<div class='field float-field'>
|
55
|
-
<%= f.label :price -%>
|
56
|
-
<%= f.text_field :price -%>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class='field float-field'>
|
60
|
-
<%= f.label :quantity -%>
|
61
|
-
<%= f.text_field :quantity -%>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<div class='field float-field'>
|
65
|
-
<%= f.label :weight -%>
|
66
|
-
<%= f.text_field :weight -%>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<div class='field float-field'>
|
70
|
-
<%= f.label :size_width -%>
|
71
|
-
<%= f.text_field :size_width -%>
|
72
|
-
</div>
|
73
|
-
|
74
|
-
<div class='field float-field'>
|
75
|
-
<%= f.label :size_height -%>
|
76
|
-
<%= f.text_field :size_height -%>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div class='field float-field'>
|
80
|
-
<%= f.label :size_depth -%>
|
81
|
-
<%= f.text_field :size_depth -%>
|
82
|
-
</div>
|
83
|
-
|
84
|
-
<div class='field float-field'>
|
85
|
-
<% #= f.label :tax_type -%>
|
86
|
-
<% #= f.text_field :tax_type -%>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
<div class='field float-field'>
|
90
|
-
<% #= f.label :digital_download -%>
|
91
|
-
<% #= f.check_box :digital_download, :checked => @product[:is_digital_download] -%>
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
<div class='field'>
|
97
|
-
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
98
|
-
<ul id='page_parts'>
|
99
|
-
<% [:description].each_with_index do |part, part_index| %>
|
100
|
-
<li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
|
101
|
-
<%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/products/product", :default => part.to_s.titleize), "##{part}" %>
|
102
|
-
</li>
|
103
|
-
<% end %>
|
104
|
-
</ul>
|
105
|
-
<div id='page_part_editors'>
|
106
|
-
<% [:description].each do |part| %>
|
107
|
-
<div class='page_part' id='<%= part %>'>
|
108
|
-
<%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
|
109
|
-
</div>
|
110
|
-
<% end %>
|
111
|
-
</div>
|
112
|
-
</div>
|
113
|
-
|
114
|
-
</div>
|
115
|
-
|
116
|
-
<%= render '/refinery/admin/form_actions', :f => f,
|
117
|
-
:continue_editing => false,
|
118
|
-
:delete_title => t('delete', :scope => 'refinery.products.admin.products.product'),
|
119
|
-
:delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @product.name) %>
|
120
|
-
<% end -%>
|
121
|
-
<% content_for :javascripts do %>
|
122
|
-
<script>
|
123
|
-
$(document).ready(function(){
|
124
|
-
page_options.init(false, '', '');
|
125
|
-
});
|
126
|
-
</script>
|
127
|
-
<% end %>
|
@@ -1,57 +0,0 @@
|
|
1
|
-
<ul>
|
2
|
-
<% if ::Refinery::Stores::Admin::StoresController.searchable? %>
|
3
|
-
<li>
|
4
|
-
<%= render '/refinery/admin/search', :url => refinery.stores_admin_stores_path %>
|
5
|
-
</li>
|
6
|
-
<% end %>
|
7
|
-
</ul>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<ul class='collapsible_menu'>
|
12
|
-
<li class='not_a_link'>
|
13
|
-
<%= link_to t('.title'), '#',
|
14
|
-
:class => 'page_icon' %>
|
15
|
-
</li>
|
16
|
-
<li>
|
17
|
-
<%= link_to t('.manage'), refinery.stores_admin_stores_path,
|
18
|
-
:class => 'page_icon' %>
|
19
|
-
</li>
|
20
|
-
<li>
|
21
|
-
<%= link_to t('.create_new'), refinery.new_stores_admin_store_path,
|
22
|
-
:class => "add_icon" %>
|
23
|
-
</li>
|
24
|
-
<% if !searching? && ::Refinery::Stores::Admin::StoresController.sortable? && ::Refinery::Stores::Store.any? %>
|
25
|
-
<li>
|
26
|
-
<%= link_to t('.reorder', :what => "Stores"),
|
27
|
-
refinery.stores_admin_stores_path,
|
28
|
-
:id => "reorder_action",
|
29
|
-
:class => "reorder_icon" %>
|
30
|
-
|
31
|
-
<%= link_to t('.reorder_done', :what => "Stores"),
|
32
|
-
refinery.stores_admin_stores_path,
|
33
|
-
:id => "reorder_action_done",
|
34
|
-
:style => "display: none;",
|
35
|
-
:class => "reorder_icon" %>
|
36
|
-
</li>
|
37
|
-
<% end %>
|
38
|
-
|
39
|
-
</ul>
|
40
|
-
|
41
|
-
<ul class='collapsible_menu'>
|
42
|
-
<li class='not_a_link'>
|
43
|
-
<%= link_to t('refinery.products.admin.products.actions.title'), '#',
|
44
|
-
:class => 'folder_icon' %>
|
45
|
-
</li>
|
46
|
-
<li>
|
47
|
-
<%= link_to t('refinery.products.admin.products.actions.manage'), refinery.products_admin_products_path,
|
48
|
-
:class => 'folder_icon' %>
|
49
|
-
</li>
|
50
|
-
<li>
|
51
|
-
<%= link_to t('refinery.products.admin.products.actions.create_new'), refinery.new_products_admin_product_path(),
|
52
|
-
:class => 'add_icon' %>
|
53
|
-
</li>
|
54
|
-
</ul>
|
55
|
-
|
56
|
-
|
57
|
-
</ul>
|
@@ -1,12 +0,0 @@
|
|
1
|
-
#customer-profile
|
2
|
-
.customer-actions
|
3
|
-
= pretty_customer_name( )
|
4
|
-
 
|
5
|
-
- if is_user_signed_in?
|
6
|
-
= link_to( "profile", "#", :title => "update your profile information" )
|
7
|
-
|
8
|
-
= link_to( "sign out", "#", :title => "switch customer profile" )
|
9
|
-
-else
|
10
|
-
= link_to( "sign up", refinery.new_customers_customer_path, :title => "create a new customer profile" )
|
11
|
-
|
12
|
-
= link_to( "sign in", refinery.new_refinery_user_session_path, :title => "sign into your customer profile" )
|