summaryrefslogtreecommitdiff
path: root/templates/inventory/home.html
blob: f7d2faafc6b61465c9ff36f7ae94c8f278cd0ea9 (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

<!-- 
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 class="nav">INVENTORY</h1></center>
  <p>The current products in the inventory available has been displayed below. To add new physical or digital inventory click the buttons respectively below this text. For detailed information about specific product click on the card below (cards are displayed only when there is inventory in the stocks).</p>
{% endblock headermsg %}

{% block content %}
<div class="main" style="overflow-x: hidden;">
  <div>
    <center><a id='add_new_product' href="/new_product">ADD PHYSICAL INVENTORY</a></center></br>
    <center><a href="/digital_inventory">ADD DIGITAL INVENTORY</a></center><br>
  </div>
  <ul class="cards">
    {% for item in data %}
      <li class="cards__item">
        <div class="card">
          <div class="card__content">
            <div class="card__title"><a href="{{ item.url }}">{{ item.name }}</a></div>
            {% if  item.digital == 'True' %}
              <p class="card__text">Digital Inventory</p>
            {% endif %}
            <p class="card__text">{{ item.description }}</p><br>
            {% if  item.digital == 'False' %}
              <p class="card__text"><b>Inventory on hand: </b>{{ item.inventory_on_hand }}</p>
            {% endif %}
            <!-- <button class="btn btnblock card__btn">Button</button> -->
          </div>
        </div>
      </li>
    {% endfor %}
  </ul>
</div>
{% endblock content %}