Initial commit
This commit is contained in:
38
source/templates/history.html
Normal file
38
source/templates/history.html
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
{% block body_class %}page-bg bg-history{% endblock %}
|
||||
{% block content %}
|
||||
<h3>История{% if filter_label %}: {{ filter_label }}{% endif %}</h3>
|
||||
<table class="table table-bordered table-sm">
|
||||
<tr>
|
||||
<th>Дата</th>
|
||||
<th>Тип</th>
|
||||
<th>Штрихкод</th>
|
||||
<th>Кол-во</th>
|
||||
{% if filter_type not in ['ADD', 'ORDER'] %}
|
||||
<th>Кабинет</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% for r in rows %}
|
||||
<tr>
|
||||
<td>{{ r[0] }}</td>
|
||||
<td>
|
||||
{% if r[1] == 'ORDER' %}
|
||||
Заказан
|
||||
{% elif r[1] == 'ADD' %}
|
||||
Приход
|
||||
{% elif r[1] == 'ISSUE' %}
|
||||
Выдан
|
||||
{% else %}
|
||||
{{ r[1] }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ r[2] }}</td>
|
||||
<td>{{ r[3] }}</td>
|
||||
{% if filter_type not in ['ADD', 'ORDER'] %}
|
||||
<td>{{ r[4] }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user