added clockings edit + auto calculations

This commit is contained in:
2025-02-02 13:33:56 +01:00
parent 0380d18cd7
commit ee96598d92
11 changed files with 259 additions and 36 deletions

View File

@ -6,6 +6,7 @@
<script src="{% static "table.js" %}"></script>
{% endblock %}
{% block main %}
{% csrf_token %}
<div class="controls">
<button id="prev-month"><</button>
<div id="month">Month</div>
@ -27,26 +28,26 @@
<tr class="dates">
<td colspan="2"></td>
</tr>
<tr class="clocking">
<tr class="clocking" data-type="in_am">
<th colspan="2">Check-IN AM</th>
<th rowspan="6" class="total-header">TOTAL</th>
<th rowspan="5" class="total-header">TOTAL</th>
<th rowspan="6" class="total-header">% working time</th>
<th rowspan="6" class="total-header">% imputed time</th>
<th rowspan="6" class="total-header">time on sagex</th>
</tr>
<tr class="clocking">
<tr class="clocking" data-type="out_am">
<th colspan="2">Check-OUT AM</th>
</tr>
<tr class="clocking">
<tr class="clocking" data-type="in_pm">
<th colspan="2">Check-IN PM</th>
</tr>
<tr class="clocking">
<tr class="clocking" data-type="out_pm">
<th colspan="2">Check-OUT PM</th>
</tr>
<tr class="clocking">
<tr class="clocking" data-type="remote">
<th colspan="2">Remote</th>
</tr>
<tr class="clocking">
<tr class="clocking total">
<th colspan="2">TOTAL</th>
</tr>
</tbody>