Darstellung Zeiterfassung

This commit is contained in:
holger.trampe 2021-03-28 17:37:51 +02:00
parent 5bac1eeaaf
commit 4b3e519e64
1 changed files with 21 additions and 8 deletions

View File

@ -10,16 +10,29 @@
<button type="button" class="btn btn-primary mr-1" style="min-width: 150px !important;" onclick="javascript:fastChangeModal()">{{active_month}} {{active_year}}</button>
<a type="button" class="btn btn-primary mr-1" href="{% url 'tm-team-single' user.pk next_month next_year %}"><i class="fas fa-arrow-circle-right"></i></a>
<span style="text-align: right !important; width: 100%; margin-top: -10px;">
<span style="width: 100%; margin-top: -10px; float: right">
{% loadmonthwork next_month user as monthwork %}
Gesamtarbeitszeit dieser Monat: {{monthwork}} Stunden<br />
{% loadaccounttime user as actualaccounttime %}
Gleitzeitkonto:
{% if actualaccounttime.1 == 0 %}
<b><span style="color: green">+{{actualaccounttime.0}}&nbsp;Stunden</span></b>
{% else %}
<b><span style="color: red">-{{actualaccounttime.0}}&nbsp;Stunden</span></b>
{% endif %}
<table style="float: right; " cellSpacing='-20' cellPadding='-20'>
<tr style="text-align: center; ">
<td style="font-size: 16pt; width: 120px; ">{{monthwork}}</td>
<td style="font-size: 16pt;">
{% if actualaccounttime.1 == 0 %}
<span style="color: green">+{{actualaccounttime.0}}</span>
{% else %}
<span style="color: red">-{{actualaccounttime.0}}</span>
{% endif %}
</td>
</tr>
<tr style="text-align: center; font-size: 10pt;">
<td>Arbeitszeit</td>
<td>Gleitzeit</td>
</tr>
</table>
</span>
</div>
<hr>