|
|
@@ -19,8 +19,8 @@
|
|
|
}
|
|
|
.shift-none {
|
|
|
background-color: white !important;
|
|
|
- text-align: center;
|
|
|
- cursor: pointer;
|
|
|
+ text-align: center !important;
|
|
|
+ cursor: pointer !important;
|
|
|
}
|
|
|
.shift-vacation {
|
|
|
background-color: blue !important;
|
|
|
@@ -123,21 +123,20 @@
|
|
|
{% endfor %}
|
|
|
<tr>
|
|
|
<td class="employee-name">Helfer</td>
|
|
|
- {% for helper in helpers_by_date %}
|
|
|
- {% if helper == None %}
|
|
|
- <td class="shift-none"> -/-</td>
|
|
|
+ {% for day in range_days %}
|
|
|
+ {% if helpers_by_date|default_if_none:None %}
|
|
|
+ {% if helpers_by_date|get_item:day %}
|
|
|
+ {% with helper=helpers_by_date|get_item:day %}
|
|
|
+ <td align="center" class="shift-none">
|
|
|
+ {{ helper.ben }}/{{ helper.best }}
|
|
|
+ </td>
|
|
|
+ {% endwith %}
|
|
|
{% else %}
|
|
|
- <td class="shift-none">
|
|
|
- {% if helper.ben %}
|
|
|
-
|
|
|
- {{ helper.ben }} / {{ helper.best }}
|
|
|
- {% else %}
|
|
|
- -/-
|
|
|
- {% endif %}
|
|
|
- </td>
|
|
|
+ <td class="shift-none">-/-</td>
|
|
|
{% endif %}
|
|
|
-
|
|
|
-
|
|
|
+ {% else %}
|
|
|
+ <td class="shift-none">-/-</td>
|
|
|
+ {% endif %}
|
|
|
{% endfor %}
|
|
|
</tr>
|
|
|
|