Docs: начальная структура проекта
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
35
app/templates/documents/cash_inflow_list.html
Normal file
35
app/templates/documents/cash_inflow_list.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}Поступления денежных средств — ERP WaterSurf{% endblock %}
|
||||
{% block content %}
|
||||
<h2>Поступления денежных средств</h2>
|
||||
<p><a href="{% url 'documents:cash_inflow_create' %}" class="btn btn-primary">Создать</a></p>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Дата</th>
|
||||
<th>Номер</th>
|
||||
<th>Получатель</th>
|
||||
<th>Сумма</th>
|
||||
<th>Заказ клиента</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for obj in object_list %}
|
||||
<tr>
|
||||
<td>{{ obj.date }}</td>
|
||||
<td>{{ obj.number }}</td>
|
||||
<td>{{ obj.recipient }}</td>
|
||||
<td>{{ obj.amount }}</td>
|
||||
<td>{{ obj.customer_order|default:"—" }}</td>
|
||||
<td>
|
||||
<a href="{% url 'documents:cash_inflow_edit' obj.pk %}">Изменить</a>
|
||||
| <a href="{% url 'documents:cash_inflow_delete' obj.pk %}" class="text-danger">Удалить</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="6">Нет поступлений.</td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user