source: app/templates/lagerlist.html@ 3d7fc00

Last change on this file since 3d7fc00 was 3d7fc00, checked in by Aleksandar <zaredite@…>, 15 months ago

Initial Commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1{% extends 'index.html' %}
2{% block content %}
3
4<div class="container" style="margin-top: 20px;">
5 <div class="row">
6 <form action="{% url 'lagerlist' %}" method="GET" class="d-flex">
7 <input type="date" class="form-control col-2 me-2" style="width: 11.5%;" id="datum" name="datum" placeholder="Datum">
8 <button type="submit" class="btn btn-primary col-1">Search</button>
9 </form>
10 </div>
11
12 <table class="table table-striped table-hover">
13 <thead>
14 <tr>
15 <th scope="col">Артикл</th>
16 <th scope="col">Количина</th>
17 <th scope="col">Средна Цена</th>
18 </tr>
19 </thead>
20 <tbody class="table-group-divider">
21 {% for item in lagerlist %}
22 <tr>
23 <th>{{ item.artikal__artikal_ime }}</th>
24 <td>{{ item.total_kol }}</td>
25 <td>{{ item.avg_cena|floatformat:2 }}</td>
26 </tr>
27 {% endfor %}
28 </tbody>
29 </table>
30</div>
31
32{% endblock %}
Note: See TracBrowser for help on using the repository browser.