fix layout of presentation

This commit is contained in:
Robert Einsle 2017-02-02 20:44:10 +01:00
parent e0c090dad9
commit 047a022f7e

View File

@ -15,7 +15,8 @@
{% if clients %}
{% for cli in clients %}
{% if cli.desk1_enable %}
<div class="alert {% with cli.accounting_1|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}">
<div class="col-md-6">
<div class="col-md-12 table-info 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">
@ -29,9 +30,11 @@
</table>
{% endif %}
</div>
</div>
{% endif %}
{% if cli.desk2_enable %}
<div class="alert {% with cli.accounting_2|last as last %}{% if last.time_to is None %}alert-info{% else %}alert-success{% endif %}{% endwith %}">
<div class="col-md-6">
<div class="col-sm-12 box table-info 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">
@ -45,6 +48,7 @@
</table>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
{% else %}