blob: bd2306b768f984d3077217dc6a1b274dd24afa41 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<!--
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 'table.css' %}" />
<center>
<h1 style="text-transform: uppercase;" id="name">{{ name }}</h1>
{% if digital == 'True' %}
<h5 color="black">Digital Inventory</h5>
{% endif %}
</center>
{% endblock headermsg %}
{% block content %}
<div class="main">
<h5 color="black">The code for the pay now button is:</h5>
<xmp style="font-size: 50% ">
<a href="{{ href }}" style="text-decoration: none;" onmouseover="this.style.textDecoration = 'underline'" onmouseout="this.style.textDecoration = 'none'">buy now</a>
</xmp>
<h5 color="black">The above code would look like(click to perform the payment):</h5>
<a href="{{ href }}" style="text-decoration: none;" onmouseover="this.style.textDecoration = 'underline'" onmouseout="this.style.textDecoration = 'none'">buy now</a>
<table class="table-fill">
<tbody class="table-hover">
<tr>
<td class="text-left">Description</td>
<td class="text-left">{{ description }}</td>
</tr>
{% if digital == 'False' %}
<tr>
<td class="text-left">The Cuurent Inventory on Hand</td>
<td class="text-left">{{ inventory_on_hand }}</td>
</tr>
{% endif %}
<tr>
<td class="text-left">Price</td>
<td class="text-left">{{ price }}</td>
</tr>
<tr>
<td class="text-left">Total number of prducts sold</td>
<td class="text-left">{{ count }}</td>
</tr>
</tbody>
</table>
<form name="update_stock" action="{{ url_update_inventory }}" method="post" enctype="multipart/form-data">
{% csrf_token %}
<input type="number" name="stock_updated" id="stock_updated" placeholder="Update Stock" required>
<button name="update_stock" type="submit" class="submit">Update</button>
</form>
</div>
{% endblock content %}
|