Initial commit
This commit is contained in:
26
templates/consumables_history.html
Normal file
26
templates/consumables_history.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base.html" %}
|
||||
{% block body_class %}page-bg bg-history{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Расходные материалы{% if filter_type %}: {{ 'Приход' if filter_type == 'ADD' else 'В разработке' }}{% endif %}</h3>
|
||||
|
||||
{% if filter_type != 'ADD' %}
|
||||
<div class="alert alert-secondary">Раздел в разработке.</div>
|
||||
{% else %}
|
||||
<table class="table table-bordered table-sm">
|
||||
<tr>
|
||||
<th>Дата</th>
|
||||
<th>Штрихкод</th>
|
||||
<th>Модель</th>
|
||||
<th>Кол-во</th>
|
||||
</tr>
|
||||
{% for dt, barcode, model, qty in rows %}
|
||||
<tr>
|
||||
<td>{{ dt }}</td>
|
||||
<td>{{ barcode }}</td>
|
||||
<td>{{ model }}</td>
|
||||
<td>{{ qty }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user