forked from Ada-C8/betsy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
delete_me.html.erb
72 lines (65 loc) · 1.46 KB
/
delete_me.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<h2> Shop All Items</h2>
<section class = "all-products">
<table>
<thead>
<tr>
<th>
Product name
</th>
<th>
Category
</th>
<th>
Description
</th>
<th>
Price
</th>
<th>
Available Quantity
</th>
<th>
</th>
</tr>
</thead>
<tbody>
<tr>
<% @products.each do |product| %>
<td>
<%= link_to "#{product.name}", product_path(product.id)%>
</td>
<td>
<%= print_categories(product) %>
</td>
<td>
<%= product.description %>
</td>
<td>
<%= product.price %>
</td>
<td>
<%= product.quantity %>
</td>
<td>
<%= image_tag product.photo(:thumb) %>
</td>
</tr>
<% end %>
</tbody>
</table>
</section>
<ul class="nav site-nav">
<li class=flyout>
<a>Your Account <small>▼</small></a>
<!-- Flyout -->
<ul class="flyout-content nav stacked">
<li>
<%= link_to("Account Dashboard", user_account_path(@login_user.id)%>
</li>
<li><%= link_to "Add Product to Sell", new_product_path, alt: "link to add product for merchant", class: "button" %>
</li>
<li><%= link_to "Add New Category", new_category_path, alt: "link to add category for merchant", class: "button" %>
</li>
</ul>
</ul>
</ul>