blob: d4a3424ac5c84952b743e636a56bcedf5596c744 (
plain)
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
|
<!--
This file is part of the Taler Codeless Merchant.
(C) 2018 GNUnet e.V.
The Taler Codeless Merchant is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
The Taler Codeless Merchant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU Affero General Public License along
with the Taler Codeless Merchant. If not, see <https://www.gnu.org/licenses/>.
@author Shivam Kohli
-->
{% extends "inventory/base2.html" %}
{% block headermsg %}
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'card.css' %}" />
<center><h1 style="text-transform: uppercase;" id="name">ORDERS PLACED</h1></center>
{% endblock headermsg %}
{% block content %}
<div class="main">
<ul class="cards">
{% for item in data %}
<li class="cards__item">
<div class="card">
<div class="card__content">
<div class="card__title">{{ item.order_id }}</div>
<p class="card__text">{{ item.summary }}</p><br>
<p class="card__text">Current order status:{{ item.status }}</p><br>
<p class="card__text">PRODUCT IN THE ORDER</p><br>
<ol>
{% for i in item.array_product %}
<li class="card__text">{{ i.name }}</li>
{% endfor %}
</ol>
<p>Update order status</p>
<form action="{{ item.url }}" method="post">
<!-- <form action="home"> -->
{% csrf_token %}
<select name="status">
<option value="order_processing">Order Processing</option>
<option value="pre_production">Pre-Production</option>
<option value="in_production">In Production</option>
<option value="shipped">Shipped</option>
<option value="delivered">Delivered</option>
</select>
<button name="update_status" type="submit" class="submit">Update</button>
</form>
</div>
</div>
</li>
{% endfor %}
</ul>
</div>
{% endblock content %}
|