Files
Reskreen/mycaldav/templates/team/team_view.html

67 lines
4.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="">
<td style="vertical-align: top;font-weight: bold;{% if task.team_transfert %}background-color: orange;{% endif %}" width="100" >
{{task.key}}
{% if task.team_transfert %}
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="32px" y="32px"
viewBox="0 0 460 460" style="enable-background:new 0 0 460 460;" xml:space="preserve">
<g id="XMLID_3358_">
<path id="XMLID_1886_" style="fill:#B4BDBF;" d="M460,280v160h-80h-10H0V280c0-5.523,4.477-10,10-10h360h10h70
C455.523,270,460,274.477,460,280z"/>
<path id="XMLID_1893_" style="fill:#9DA7A8;" d="M400,270l-30,170v20H90v-20L60,270h30h280H400z"/>
<path id="XMLID_3239_" style="fill:#BEC8CC;" d="M370,100v360H90V100c0-5.523,4.477-10,10-10h260C365.523,90,370,94.477,370,100z"
/>
<path id="XMLID_3329_" style="fill:#A2A9AA;" d="M160,200h30v30h-30V200z"/>
<path id="XMLID_3333_" style="fill:#A2A9AA;" d="M215,200h30v30h-30V200z"/>
<path id="XMLID_3334_" style="fill:#A2A9AA;" d="M300,200v30h-30v-30H300z"/>
<path id="XMLID_3328_" style="fill:#A2A9AA;" d="M160,260h30v30h-30V260z"/>
<path id="XMLID_3323_" style="fill:#A2A9AA;" d="M215,260h30v30h-30V260z"/>
<path id="XMLID_3321_" style="fill:#A2A9AA;" d="M270,260h30v30h-30V260z"/>
<path id="XMLID_3320_" style="fill:#939E9D;" d="M300,460H160V320h140V460z"/>
<path id="XMLID_3319_" style="fill:#8A9695;" d="M300,460h-70V320h70V460z"/>
<path id="XMLID_3335_" style="fill:#9DA7A8;" d="M460,450c0,5.523-4.477,10-10,10H10c-5.523,0-10-4.477-10-10v-20h460V450z"/>
<path id="XMLID_3318_" style="fill:#B4BDBF;" d="M319.444,90c-4.975,44.998-43.119,80-89.444,80l0,0
c-46.325,0-84.469-35.002-89.444-80H319.444z"/>
<path id="XMLID_3315_" style="fill:#DAEDE3;" d="M230,160L230,160c-44.183,0-80-35.817-80-80l0,0c0-44.183,35.817-80,80-80l0,0
c44.183,0,80,35.817,80,80l0,0C310,124.183,274.183,160,230,160z"/>
<path id="XMLID_3314_" style="fill:#C6524A;" d="M275,80c0,8.284-6.716,15-15,15h-15v15c0,8.284-6.716,15-15,15s-15-6.716-15-15V95
h-15c-8.284,0-15-6.716-15-15s6.716-15,15-15h15V50c0-8.284,6.716-15,15-15s15,6.716,15,15v15h15C268.284,65,275,71.716,275,80z"/>
<path id="XMLID_3313_" style="fill:#D3625F;" d="M215,95.23V95h-15c-8.284,0-15-6.716-15-15s6.716-15,15-15h15V50
c0-8.284,6.716-15,15-15s15,6.716,15,15v15h0.23L215,95.23z"/>
</g>
</svg>
{% endif %}
</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %}; width: 150px;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ 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=""><td style="font-weight: bold;vertical-align: top;{% if task.team_transfert %}background-color: orange;{% endif %}" width="100" >{{task.key}}</td>
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
<span style="{% if task.team_1_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ task.team_1 }}</span>&nbsp;
<span style="{% if task.team_2_chef %}color: yellow !important;{% endif %};width: 150px;display: inline-block">{{ task.team_2 }}</span>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% else %}
<p>Aucune information d'équipage</p>
{% endif %}
</div>