Files
Reskreen/mycaldav/templates/team/team_view.html
2022-10-13 13:02:35 +02:00

37 lines
1.7 KiB
HTML

{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table>
{% for task in latest_task_list %}
<tr style="{% if task.team_transfert %}background-color: orange;{% endif %}">
<td style="vertical-align: top;font-weight: bold;" width="50" >
{{task.key}}
</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}background-color: yellow;{% endif %}">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}background-color: yellow;{% endif %}">{{ task.team_2 }}</span>
</td>
</tr>
{% endfor %}
<tr><td>&nbsp;</td></tr>
<tr>
<td style="border-top: 1px dashed white;font-weight: bold;padding: 5px; text-align: center;" colspan="2">Nuit</td>
</tr>
{% for task in night_task_list %}
{% if task.str_start_date == today %}
<tr style="{% if task.team_transfert %}background-color: orange;{% endif %}"><td style="font-weight: bold;vertical-align: top;" width="50" >{{task.key}}</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}background-color: yellow;{% endif %}">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}background-color: yellow;{% endif %}">{{ task.team_2 }}</span>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% else %}
<p>Aucune information d'équipage</p>
{% endif %}
</div>