show accounting data from table
This commit is contained in:
@@ -15,37 +15,35 @@
|
||||
{% if clients %}
|
||||
{% for cli in clients %}
|
||||
{% if cli.desk1_enable %}
|
||||
<div class="alert alert-success">
|
||||
<div class="alert {% with cli.accounting_1|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}">
|
||||
<h4 style="text-align: center">(1) {{ cli.desk1_name }}</h4>
|
||||
{% if cli.accounting_1 %}
|
||||
<table class="table">
|
||||
{% for acc in cli.accounting_1 %}
|
||||
<tr>
|
||||
<td>01.02.2017 10:00</td>
|
||||
<td>01.02.2017 11:58</td>
|
||||
<td>6,10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>01.02.2017 10:00</td>
|
||||
<td>01.02.2017 11:58</td>
|
||||
<td>6,10</td>
|
||||
<td>{{ acc.time_from }}</td>
|
||||
<td>{% if acc.time_to is not None %}{{ acc.time_to }}{% endif %}</td>
|
||||
<td>{% if acc.prize is not None %}{{ acc.prize }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if cli.desk2_enable %}
|
||||
<div class="alert alert-info">
|
||||
<div class="alert {% with cli.accounting_2|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}">
|
||||
<h4 style="text-align: center">(2) {{ cli.desk2_name }}</h4>
|
||||
{% if cli.accounting_2 %}
|
||||
<table class="table">
|
||||
{% for acc in cli.accounting_2 %}
|
||||
<tr>
|
||||
<td>01.02.2017 10:00</td>
|
||||
<td>01.02.2017 11:58</td>
|
||||
<td>6,10</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>01.02.2017 10:00</td>
|
||||
<td></td>
|
||||
<td>6,10</td>
|
||||
<td>{{ acc.time_from }}</td>
|
||||
<td>{% if acc.time_to is not None %}{{ acc.time_to }}{% endif %}</td>
|
||||
<td>{% if acc.prize is not None %}{{ acc.prize }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user