refinerycms-products 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/addresses_controller.rb +22 -22
- data/app/controllers/admin/carts_controller.rb +7 -7
- data/app/controllers/admin/categories_controller.rb +50 -50
- data/app/controllers/admin/customers_controller.rb +12 -12
- data/app/controllers/admin/line_items_controller.rb +7 -7
- data/app/controllers/admin/products_controller.rb +23 -23
- data/app/controllers/carts_controller.rb +110 -110
- data/app/controllers/categories_controller.rb +32 -32
- data/app/controllers/customers_controller.rb +33 -33
- data/app/controllers/line_items_controller.rb +8 -8
- data/app/controllers/products_controller.rb +61 -61
- data/app/controllers/profiles_controller.rb +36 -36
- data/app/helpers/address_helper.rb +20 -20
- data/app/helpers/products_helper.rb +41 -33
- data/app/models/address.rb +18 -18
- data/app/models/cart.rb +54 -54
- data/app/models/category.rb +28 -28
- data/app/models/customer.rb +32 -32
- data/app/models/line_item.rb +28 -28
- data/app/models/product.rb +46 -46
- data/app/views/addresses/edit.html.erb +42 -42
- data/app/views/admin/carts/_actions.html.erb +27 -27
- data/app/views/admin/carts/_cart.html.erb +18 -18
- data/app/views/admin/carts/_carts.html.erb +1 -1
- data/app/views/admin/carts/_form.html.erb +24 -24
- data/app/views/admin/carts/_records.html.erb +17 -17
- data/app/views/admin/carts/_sortable_list.html.erb +7 -7
- data/app/views/admin/carts/edit.html.erb +1 -1
- data/app/views/admin/carts/index.html.erb +10 -10
- data/app/views/admin/carts/new.html.erb +1 -1
- data/app/views/admin/categories/_actions.html.erb +27 -27
- data/app/views/admin/categories/_categories.html.erb +1 -1
- data/app/views/admin/categories/_category.html.erb +25 -25
- data/app/views/admin/categories/_form.html.erb +49 -49
- data/app/views/admin/categories/_records.html.erb +17 -17
- data/app/views/admin/categories/_sortable_list.html.erb +10 -10
- data/app/views/admin/categories/edit.html.erb +1 -1
- data/app/views/admin/categories/index.html.erb +12 -12
- data/app/views/admin/categories/new.html.erb +1 -1
- data/app/views/admin/customers/_actions.html.erb +27 -27
- data/app/views/admin/customers/_customer.html.erb +18 -18
- data/app/views/admin/customers/_customers.html.erb +1 -1
- data/app/views/admin/customers/_form.html.erb +40 -40
- data/app/views/admin/customers/_records.html.erb +17 -17
- data/app/views/admin/customers/_sortable_list.html.erb +7 -7
- data/app/views/admin/customers/edit.html.erb +1 -1
- data/app/views/admin/customers/index.html.erb +10 -10
- data/app/views/admin/customers/new.html.erb +1 -1
- data/app/views/admin/customers/show.html.erb +59 -59
- data/app/views/admin/line_items/_actions.html.erb +27 -27
- data/app/views/admin/line_items/_form.html.erb +29 -29
- data/app/views/admin/line_items/_line_item.html.erb +18 -18
- data/app/views/admin/line_items/_line_items.html.erb +1 -1
- data/app/views/admin/line_items/_records.html.erb +17 -17
- data/app/views/admin/line_items/_sortable_list.html.erb +7 -7
- data/app/views/admin/line_items/edit.html.erb +1 -1
- data/app/views/admin/line_items/index.html.erb +10 -10
- data/app/views/admin/line_items/new.html.erb +1 -1
- data/app/views/admin/products/_actions.html.erb +42 -42
- data/app/views/admin/products/_form.html.erb +120 -120
- data/app/views/admin/products/_product.html.erb +23 -23
- data/app/views/admin/products/_products.html.erb +1 -1
- data/app/views/admin/products/_records.html.erb +17 -17
- data/app/views/admin/products/_sortable_list.html.erb +13 -13
- data/app/views/admin/products/edit.html.erb +1 -1
- data/app/views/admin/products/index.html.erb +12 -12
- data/app/views/admin/products/new.html.erb +1 -1
- data/app/views/carts/show.html.erb +56 -56
- data/app/views/categories/index.html.erb +11 -11
- data/app/views/categories/show.html.erb +33 -33
- data/app/views/customers/index.html.erb +11 -11
- data/app/views/customers/show.html.erb +52 -52
- data/app/views/line_items/index.html.erb +11 -11
- data/app/views/line_items/show.html.erb +39 -39
- data/app/views/products/index.html.erb +33 -33
- data/app/views/products/show.html.erb +65 -65
- data/app/views/profiles/_order_history.html.erb +23 -23
- data/app/views/profiles/_show_address.html.erb +3 -3
- data/app/views/profiles/account_details.html.erb +31 -31
- data/app/views/profiles/address_details.html.erb +9 -9
- data/app/views/profiles/index.html.erb +75 -75
- data/app/views/profiles/order_history_details.html.erb +39 -39
- data/config/locales/en.yml +97 -97
- data/config/locales/fr.yml +25 -25
- data/config/locales/lolcat.yml +25 -25
- data/config/locales/nb.yml +21 -21
- data/config/locales/nl.yml +21 -21
- data/config/routes.rb +58 -58
- data/lib/generators/refinerycms_products_generator.rb +5 -5
- data/lib/refinerycms-carts.rb +31 -31
- data/lib/refinerycms-categories.rb +30 -30
- data/lib/refinerycms-customers.rb +34 -34
- data/lib/refinerycms-line_items.rb +30 -30
- data/lib/refinerycms-products.rb +65 -65
- data/lib/tasks/products.rake +12 -12
- metadata +95 -98
@@ -1,24 +1,24 @@
|
|
1
|
-
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(product) -%>">
|
2
|
-
<span class='title'>
|
3
|
-
<%= product.name %>
|
4
|
-
<span class="preview">
|
5
|
-
<br>
|
6
|
-
<%= fields_for "products[]", product do |f| %>
|
7
|
-
<b>Price:</b> <%= f.text_field :price, :size => 5%>
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
</span>
|
11
|
-
</span>
|
12
|
-
<span class='actions'>
|
13
|
-
<%= link_to refinery_icon_tag("application_go.png"), product_path(product),
|
14
|
-
:title => t('.view_live_html'),
|
15
|
-
:target => "_blank" %>
|
16
|
-
<%= link_to refinery_icon_tag("application_edit.png"), edit_admin_product_path(product),
|
17
|
-
:title => t('.edit') %>
|
18
|
-
<%= link_to refinery_icon_tag("delete.png"), admin_product_path(product),
|
19
|
-
:class => "cancel confirm-delete",
|
20
|
-
:title => t('.delete'),
|
21
|
-
:confirm => t('message', :scope => 'shared.admin.delete', :title => product.name),
|
22
|
-
:method => :delete %>
|
23
|
-
</span>
|
1
|
+
<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(product) -%>">
|
2
|
+
<span class='title'>
|
3
|
+
<%= product.name %>
|
4
|
+
<span class="preview">
|
5
|
+
<br>
|
6
|
+
<%= fields_for "products[]", product do |f| %>
|
7
|
+
<b>Price:</b> <%= f.text_field :price, :size => 5%>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
</span>
|
11
|
+
</span>
|
12
|
+
<span class='actions'>
|
13
|
+
<%= link_to refinery_icon_tag("application_go.png"), product_path(product),
|
14
|
+
:title => t('.view_live_html'),
|
15
|
+
:target => "_blank" %>
|
16
|
+
<%= link_to refinery_icon_tag("application_edit.png"), edit_admin_product_path(product),
|
17
|
+
:title => t('.edit') %>
|
18
|
+
<%= link_to refinery_icon_tag("delete.png"), admin_product_path(product),
|
19
|
+
:class => "cancel confirm-delete",
|
20
|
+
:title => t('.delete'),
|
21
|
+
:confirm => t('message', :scope => 'shared.admin.delete', :title => product.name),
|
22
|
+
:method => :delete %>
|
23
|
+
</span>
|
24
24
|
</li>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%= will_paginate @products %>
|
1
|
+
<%= will_paginate @products %>
|
2
2
|
<%= render :partial => "sortable_list" %>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<% if searching? %>
|
2
|
-
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
|
3
|
-
<% end %>
|
4
|
-
<% if @products.any? %>
|
5
|
-
<div class='pagination_container'>
|
6
|
-
<%= render :partial => 'products' %>
|
7
|
-
</div>
|
8
|
-
<% else %>
|
9
|
-
<p>
|
10
|
-
<% unless searching? %>
|
11
|
-
<strong>
|
12
|
-
<%= t('.no_items_yet') %>
|
13
|
-
</strong>
|
14
|
-
<% else %>
|
15
|
-
<%= t('no_results', :scope => 'shared.admin.search') %>
|
16
|
-
<% end %>
|
17
|
-
</p>
|
1
|
+
<% if searching? %>
|
2
|
+
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
|
3
|
+
<% end %>
|
4
|
+
<% if @products.any? %>
|
5
|
+
<div class='pagination_container'>
|
6
|
+
<%= render :partial => 'products' %>
|
7
|
+
</div>
|
8
|
+
<% else %>
|
9
|
+
<p>
|
10
|
+
<% unless searching? %>
|
11
|
+
<strong>
|
12
|
+
<%= t('.no_items_yet') %>
|
13
|
+
</strong>
|
14
|
+
<% else %>
|
15
|
+
<%= t('no_results', :scope => 'shared.admin.search') %>
|
16
|
+
<% end %>
|
17
|
+
</p>
|
18
18
|
<% end %>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<ul id='sortable_list'>
|
2
|
-
<!-- <%#= form_tag([:admin, @product], :method => 'post') do %> -->
|
3
|
-
<%= form_tag(update_prices_admin_products_path, {:method => :put}) do %>
|
4
|
-
<%= render :partial => 'product', :collection => @products %>
|
5
|
-
<%= submit_tag "Edit Prices" %>
|
6
|
-
<% end %>
|
7
|
-
</ul>
|
8
|
-
|
9
|
-
|
10
|
-
<%= render :partial => "/shared/admin/sortable_list",
|
11
|
-
:locals => {
|
12
|
-
:continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true
|
13
|
-
} %>
|
1
|
+
<ul id='sortable_list'>
|
2
|
+
<!-- <%#= form_tag([:admin, @product], :method => 'post') do %> -->
|
3
|
+
<%= form_tag(update_prices_admin_products_path, {:method => :put}) do %>
|
4
|
+
<%= render :partial => 'product', :collection => @products %>
|
5
|
+
<%= submit_tag "Edit Prices" %>
|
6
|
+
<% end %>
|
7
|
+
</ul>
|
8
|
+
|
9
|
+
|
10
|
+
<%= render :partial => "/shared/admin/sortable_list",
|
11
|
+
:locals => {
|
12
|
+
:continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true
|
13
|
+
} %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render :partial => "form" %>
|
1
|
+
<%= render :partial => "form" %>
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<section id='records'>
|
2
|
-
<%= render :partial => 'records' %>
|
3
|
-
</section>
|
4
|
-
<!-- <aside id='actions'> -->
|
5
|
-
<nav id='actions' class='multilist'>
|
6
|
-
<%= render :partial => 'actions' %>
|
7
|
-
</nav>
|
8
|
-
<!-- </aside> -->
|
9
|
-
<%= render :partial => '/shared/admin/make_sortable',
|
10
|
-
:locals => {
|
11
|
-
:tree => false
|
12
|
-
} if !searching? and Admin::ProductsController.sortable? and Product.count > 1 %>
|
1
|
+
<section id='records'>
|
2
|
+
<%= render :partial => 'records' %>
|
3
|
+
</section>
|
4
|
+
<!-- <aside id='actions'> -->
|
5
|
+
<nav id='actions' class='multilist'>
|
6
|
+
<%= render :partial => 'actions' %>
|
7
|
+
</nav>
|
8
|
+
<!-- </aside> -->
|
9
|
+
<%= render :partial => '/shared/admin/make_sortable',
|
10
|
+
:locals => {
|
11
|
+
:tree => false
|
12
|
+
} if !searching? and Admin::ProductsController.sortable? and Product.count > 1 %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render :partial => "form" %>
|
1
|
+
<%= render :partial => "form" %>
|
@@ -1,56 +1,56 @@
|
|
1
|
-
<% content_for :body_content_left do %>
|
2
|
-
|
3
|
-
<% cart = @current_cart %>
|
4
|
-
|
5
|
-
<%= form_tag(customer_signed_in? ? (defined?(OrdersController) ? delivery_address_path : "#") : "#" ) do %>
|
6
|
-
|
7
|
-
<% if cart.line_items.present? %>
|
8
|
-
<table>
|
9
|
-
<th>Product</th>
|
10
|
-
<th class="price">Unit Price</th>
|
11
|
-
<th>Qty</th>
|
12
|
-
<th>Modify Quantity / Delete</th>
|
13
|
-
<th class="price">Full Price</th>
|
14
|
-
|
15
|
-
<% cart.line_items.each do |cart_item| %>
|
16
|
-
<tr>
|
17
|
-
<td><%= product_or_variant_name(cart_item) %></td>
|
18
|
-
<td><%= product_or_variant_price(cart_item) %></td>
|
19
|
-
<td><%= cart_item.quantity %></td>
|
20
|
-
<td><%= link_to image_tag("/images/plus.png", :size => "20x20"), variant_exists?(cart_item) ? increment_cart_path(cart_item.product, :quantity => 1, :variant => {:id => cart_item.variant}) : increment_cart_path(cart_item.product) %>
|
21
|
-
<%= link_to image_tag("/images/minus.png", :size => "20x20"), variant_exists?(cart_item) ? increment_cart_path(cart_item.product, :quantity => -1, :variant => {:id => cart_item.variant}) : increment_cart_path(cart_item.product, :quantity => -1) unless cart_item.quantity == 1 %>
|
22
|
-
<%= link_to "Delete", destroy_line_item_path(cart_item), :confirm => 'Are you sure?' %>
|
23
|
-
</td>
|
24
|
-
<td><%=
|
25
|
-
</tr>
|
26
|
-
<% end %>
|
27
|
-
|
28
|
-
<tr>
|
29
|
-
<td colspan="4">TOTAL</td>
|
30
|
-
<td><%= rands(cart.grand_total) %></td>
|
31
|
-
</tr>
|
32
|
-
</table>
|
33
|
-
|
34
|
-
<% if defined?(OrdersController) %>
|
35
|
-
<div class="orderButton"><%= submit_tag 'Checkout', :id => customer_signed_in? ? "" : "checkout" %></div>
|
36
|
-
<% end %>
|
37
|
-
<% else %>
|
38
|
-
<p>Your cart is currently empty.</p>
|
39
|
-
<% end %>
|
40
|
-
|
41
|
-
|
42
|
-
<% end %>
|
43
|
-
|
44
|
-
<script type="text/javascript">
|
45
|
-
if (typeof jQuery != 'undefined') {
|
46
|
-
$(document).ready(function() {
|
47
|
-
$('a.single').click(function(e) {
|
48
|
-
e.preventDefault();
|
49
|
-
});
|
50
|
-
});
|
51
|
-
}
|
52
|
-
</script>
|
53
|
-
|
54
|
-
<% end %>
|
55
|
-
|
56
|
-
<%= render :partial => "/shared/content_page" %>
|
1
|
+
<% content_for :body_content_left do %>
|
2
|
+
|
3
|
+
<% cart = @current_cart %>
|
4
|
+
|
5
|
+
<%= form_tag(customer_signed_in? ? (defined?(OrdersController) ? delivery_address_path : "#") : "#" ) do %>
|
6
|
+
|
7
|
+
<% if cart.line_items.present? %>
|
8
|
+
<table>
|
9
|
+
<th>Product</th>
|
10
|
+
<th class="price">Unit Price</th>
|
11
|
+
<th>Qty</th>
|
12
|
+
<th>Modify Quantity / Delete</th>
|
13
|
+
<th class="price">Full Price</th>
|
14
|
+
|
15
|
+
<% cart.line_items.each do |cart_item| %>
|
16
|
+
<tr>
|
17
|
+
<td><%= product_or_variant_name(cart_item) %></td>
|
18
|
+
<td><%= product_or_variant_price(cart_item) %></td>
|
19
|
+
<td><%= cart_item.quantity %></td>
|
20
|
+
<td><%= link_to image_tag("/images/plus.png", :size => "20x20"), variant_exists?(cart_item) ? increment_cart_path(cart_item.product, :quantity => 1, :variant => {:id => cart_item.variant}) : increment_cart_path(cart_item.product) %>
|
21
|
+
<%= link_to image_tag("/images/minus.png", :size => "20x20"), variant_exists?(cart_item) ? increment_cart_path(cart_item.product, :quantity => -1, :variant => {:id => cart_item.variant}) : increment_cart_path(cart_item.product, :quantity => -1) unless cart_item.quantity == 1 %>
|
22
|
+
<%= link_to "Delete", destroy_line_item_path(cart_item), :confirm => 'Are you sure?' %>
|
23
|
+
</td>
|
24
|
+
<td><%= cart_item_total(cart_item) %></td>
|
25
|
+
</tr>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
<tr>
|
29
|
+
<td colspan="4">TOTAL</td>
|
30
|
+
<td><%= rands(cart.grand_total) %></td>
|
31
|
+
</tr>
|
32
|
+
</table>
|
33
|
+
|
34
|
+
<% if defined?(OrdersController) %>
|
35
|
+
<div class="orderButton"><%= submit_tag 'Checkout', :id => customer_signed_in? ? "" : "checkout" %></div>
|
36
|
+
<% end %>
|
37
|
+
<% else %>
|
38
|
+
<p>Your cart is currently empty.</p>
|
39
|
+
<% end %>
|
40
|
+
|
41
|
+
|
42
|
+
<% end %>
|
43
|
+
|
44
|
+
<script type="text/javascript">
|
45
|
+
if (typeof jQuery != 'undefined') {
|
46
|
+
$(document).ready(function() {
|
47
|
+
$('a.single').click(function(e) {
|
48
|
+
e.preventDefault();
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}
|
52
|
+
</script>
|
53
|
+
|
54
|
+
<% end %>
|
55
|
+
|
56
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<% content_for :body_content_left do %>
|
2
|
-
<ul id="categories">
|
3
|
-
<% @categories.each do |category| %>
|
4
|
-
<li>
|
5
|
-
<%= link_to category.name, category_path(category) %>
|
6
|
-
</li>
|
7
|
-
<% end %>
|
8
|
-
</ul>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<%= render :partial => "/shared/content_page" %>
|
1
|
+
<% content_for :body_content_left do %>
|
2
|
+
<ul id="categories">
|
3
|
+
<% @categories.each do |category| %>
|
4
|
+
<li>
|
5
|
+
<%= link_to category.name, category_path(category) %>
|
6
|
+
</li>
|
7
|
+
<% end %>
|
8
|
+
</ul>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,33 +1,33 @@
|
|
1
|
-
<% content_for :body_content_title do %>
|
2
|
-
<%= @category.name %>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<% content_for :body_content_left do %>
|
6
|
-
<section>
|
7
|
-
<h1>Name</h1>
|
8
|
-
<p>
|
9
|
-
<%=raw @category.name %>
|
10
|
-
</p>
|
11
|
-
</section>
|
12
|
-
<section>
|
13
|
-
<h1>Parent</h1>
|
14
|
-
<p>
|
15
|
-
<%=raw @category.parent %>
|
16
|
-
</p>
|
17
|
-
</section>
|
18
|
-
<% end %>
|
19
|
-
|
20
|
-
<% content_for :body_content_right do %>
|
21
|
-
<aside>
|
22
|
-
<h2><%= t('.other') %></h2>
|
23
|
-
<ul id="categories">
|
24
|
-
<% @categories.each do |category| %>
|
25
|
-
<li>
|
26
|
-
<%= link_to category.name, category_path(category) %>
|
27
|
-
</li>
|
28
|
-
<% end %>
|
29
|
-
</ul>
|
30
|
-
</aside>
|
31
|
-
<% end %>
|
32
|
-
|
33
|
-
<%= render :partial => "/shared/content_page" %>
|
1
|
+
<% content_for :body_content_title do %>
|
2
|
+
<%= @category.name %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :body_content_left do %>
|
6
|
+
<section>
|
7
|
+
<h1>Name</h1>
|
8
|
+
<p>
|
9
|
+
<%=raw @category.name %>
|
10
|
+
</p>
|
11
|
+
</section>
|
12
|
+
<section>
|
13
|
+
<h1>Parent</h1>
|
14
|
+
<p>
|
15
|
+
<%=raw @category.parent %>
|
16
|
+
</p>
|
17
|
+
</section>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
<% content_for :body_content_right do %>
|
21
|
+
<aside>
|
22
|
+
<h2><%= t('.other') %></h2>
|
23
|
+
<ul id="categories">
|
24
|
+
<% @categories.each do |category| %>
|
25
|
+
<li>
|
26
|
+
<%= link_to category.name, category_path(category) %>
|
27
|
+
</li>
|
28
|
+
<% end %>
|
29
|
+
</ul>
|
30
|
+
</aside>
|
31
|
+
<% end %>
|
32
|
+
|
33
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<% content_for :body_content_left do %>
|
2
|
-
<ul id="customers">
|
3
|
-
<% @customers.each do |customer| %>
|
4
|
-
<li>
|
5
|
-
<%= link_to customer.name, customer_path(customer) %>
|
6
|
-
</li>
|
7
|
-
<% end %>
|
8
|
-
</ul>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<%= render :partial => "/shared/content_page" %>
|
1
|
+
<% content_for :body_content_left do %>
|
2
|
+
<ul id="customers">
|
3
|
+
<% @customers.each do |customer| %>
|
4
|
+
<li>
|
5
|
+
<%= link_to customer.name, customer_path(customer) %>
|
6
|
+
</li>
|
7
|
+
<% end %>
|
8
|
+
</ul>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= render :partial => "/shared/content_page" %>
|
@@ -1,52 +1,52 @@
|
|
1
|
-
<% content_for :body_content_title do %>
|
2
|
-
<%= @customer.name %>
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<% content_for :body_content_left do %>
|
6
|
-
<section>
|
7
|
-
<h1>Name</h1>
|
8
|
-
<p>
|
9
|
-
<%=raw @customer.name %>
|
10
|
-
</p>
|
11
|
-
</section>
|
12
|
-
<section>
|
13
|
-
<h1>Surname</h1>
|
14
|
-
<p>
|
15
|
-
<%=raw @customer.surname %>
|
16
|
-
</p>
|
17
|
-
</section>
|
18
|
-
<section>
|
19
|
-
<h1>Contact Number</h1>
|
20
|
-
<p>
|
21
|
-
<%=raw @customer.contact_number %>
|
22
|
-
</p>
|
23
|
-
</section>
|
24
|
-
|
25
|
-
<section>
|
26
|
-
<h1>Email</h1>
|
27
|
-
<p>
|
28
|
-
<%=raw @customer.email %>
|
29
|
-
</p>
|
30
|
-
</section>
|
31
|
-
<section>
|
32
|
-
<h1>Encrypted Password</h1>
|
33
|
-
<p>
|
34
|
-
<%=raw @customer.encrypted_password %>
|
35
|
-
</p>
|
36
|
-
</section>
|
37
|
-
<% end %>
|
38
|
-
|
39
|
-
<% content_for :body_content_right do %>
|
40
|
-
<aside>
|
41
|
-
<h2><%= t('.other') %></h2>
|
42
|
-
<ul id="customers">
|
43
|
-
<% @customers.each do |customer| %>
|
44
|
-
<li>
|
45
|
-
<%= link_to customer.name, customer_path(customer) %>
|
46
|
-
</li>
|
47
|
-
<% end %>
|
48
|
-
</ul>
|
49
|
-
</aside>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<%= render :partial => "/shared/content_page" %>
|
1
|
+
<% content_for :body_content_title do %>
|
2
|
+
<%= @customer.name %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :body_content_left do %>
|
6
|
+
<section>
|
7
|
+
<h1>Name</h1>
|
8
|
+
<p>
|
9
|
+
<%=raw @customer.name %>
|
10
|
+
</p>
|
11
|
+
</section>
|
12
|
+
<section>
|
13
|
+
<h1>Surname</h1>
|
14
|
+
<p>
|
15
|
+
<%=raw @customer.surname %>
|
16
|
+
</p>
|
17
|
+
</section>
|
18
|
+
<section>
|
19
|
+
<h1>Contact Number</h1>
|
20
|
+
<p>
|
21
|
+
<%=raw @customer.contact_number %>
|
22
|
+
</p>
|
23
|
+
</section>
|
24
|
+
|
25
|
+
<section>
|
26
|
+
<h1>Email</h1>
|
27
|
+
<p>
|
28
|
+
<%=raw @customer.email %>
|
29
|
+
</p>
|
30
|
+
</section>
|
31
|
+
<section>
|
32
|
+
<h1>Encrypted Password</h1>
|
33
|
+
<p>
|
34
|
+
<%=raw @customer.encrypted_password %>
|
35
|
+
</p>
|
36
|
+
</section>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<% content_for :body_content_right do %>
|
40
|
+
<aside>
|
41
|
+
<h2><%= t('.other') %></h2>
|
42
|
+
<ul id="customers">
|
43
|
+
<% @customers.each do |customer| %>
|
44
|
+
<li>
|
45
|
+
<%= link_to customer.name, customer_path(customer) %>
|
46
|
+
</li>
|
47
|
+
<% end %>
|
48
|
+
</ul>
|
49
|
+
</aside>
|
50
|
+
<% end %>
|
51
|
+
|
52
|
+
<%= render :partial => "/shared/content_page" %>
|