digitaleagentur/dasettings/templates/dasettings/data_absence_yeardata.html

37 lines
1.4 KiB
HTML

<table class="table table-hover">
<thead>
<tr>
<th scope="col">Jahr</th>
{% for ab_info in user_years.all %}
<th scope="">{{ab_info.year}}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Urlaub</th>
{% for ab_info in user_years.all %}
<td class="readytochange_holiday_rest" id="holiday_{{ab_info.pk}}">{{ab_info.days}}</td>
{% endfor %}
</tr>
<tr>
<th scope="row">Genommener Urlaub</th>
{% for ab_info in user_years.all %}
<td>{{ab_info.days_inuse}}</td>
{% endfor %}
</tr>
<tr>
<th scope="row">Resturlaub aus Vorjahr</th>
{% for ab_info in user_years.all %}
{% if forloop.counter0 > 0 %}
<td class="readytochange_holiday_rest" id="rest_holiday_{{ab_info.pk}}">{{ab_info.restdays}}</td>
{% else %}
<td>&nbsp;</td>
{% endif %}
{% endfor %}
</tr>
</tbody>
</table>
<script type="text/javascript">
$("#text_recalc").html("Es wurden {{ab_counter}} Abwesenheiten anhand der neuen Infos neu berechnet. Aktuelle Werte für Resturlaubsdaten aus Vorjahren wurden bereits verrechnet und können daher von Werten in der Tabelle abweichen. Diese werden in der Regel automatisch verarbeitet. {{tomanyinfo}}");
</script>