-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviews_products_view.html
42 lines (38 loc) · 1.1 KB
/
views_products_view.html
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
{{extend 'layout.html'}}
<h2>Farm Fresh Produce and More</h2>
<hr/>
{{ for x in rows: }}
<div class='row'>
<img class='col col-lg-4 col-md-6 col-sm-6 col-xs-12'
src='{{=x.product_image}}' alt='image' />
<div class='col col-lg-8 col-md-6 col-sm-6 col-xs-12'>
<p class='lead'>
<b>{{=x.product_name}}</b>
</p>
<p>
{{=x.product_price}}
</p>
<p>
{{=x.farm_name}}
</p>
<p>
{{=x.farm_address}}
</p>
<p>
<a href='{{=x.farm_website}}' target='_new'>{{=x.farm_website}}</a>
</p>
<p>
<form method=post action='proc'>
<input type='hidden' name='productId' value='{{=x.id}}' />
<input type='text' size=2 name='qty' value=1 />
<input class='btn-primary' type='submit' value='Add to cart' />
</form>
</p>
<p>
Posted by: {{ =userdict[x.created_by] }}
</p>
</div>
</div>
<hr/>
{{ pass }}
<a href='post'>Post</a>