-
Notifications
You must be signed in to change notification settings - Fork 1
/
customer_index.html
48 lines (48 loc) · 1.75 KB
/
customer_index.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
43
44
45
46
47
48
{% load crispy_forms_tags %}
<div>
<div class="row mt-4">
<div class="col-md-4">
<div class="card">
<div class="card-header">
Make Request
</div>
<div class="card-body">
<form method="POST">
{% csrf_token %}
{{ form|crispy }}
<input class="btn btn-info btn-block" type="submit" value="Make Request">
</form>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
Orders Records
</div>
<div class="card-body">
<table class="table bg-white">
<thead class="bg-info text-white">
<tr>
<th scope="col">Product</th>
<th scope="col">Category</th>
<th scope="col">Quantity</th>
</tr>
</thead>
<tbody>
{% for order in order %}
{% if order.customer == user %}
<tr>
<td>{{ order.name }}</td>
<td>{{ order.name.category }}</td>
<td>{{ order.order_quantity }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>