Changement visuel vhc caldav

This commit is contained in:
Ambulance Clerc
2022-06-22 09:04:00 +02:00
parent 3fa28c891b
commit c7ccb10d86
3 changed files with 9 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ class cls_caldav():
if "DESCRIPTION" in event.keys(): if "DESCRIPTION" in event.keys():
item.desc = event["DESCRIPTION"] item.desc = event["DESCRIPTION"]
if "*done*" in item.desc: if "#" in item.desc:
item.done = True item.done = True
item.dtstart = event["DTSTART"].dt.strftime("%d.%m.%Y %H:%M") item.dtstart = event["DTSTART"].dt.strftime("%d.%m.%Y %H:%M")
item.dtend = event["DTEND"].dt.strftime("%d.%m.%Y %H:%M") item.dtend = event["DTEND"].dt.strftime("%d.%m.%Y %H:%M")

View File

@@ -1,17 +1,18 @@
{% if latest_task_list %} {% if latest_task_list %}
<table> <table>
<td style="font-weight: bold;padding-bottom: 5px; text-align: center;" colspan="2">Jour</td>
{% for task in latest_task_list %} {% for task in latest_task_list %}
<tr><td style="font-weight: bold;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through{% endif %}">{{ task.name }}</td></tr> <tr><td style="font-weight: bold;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through{% endif %}">{{ task.name }}</td></tr>
{% endfor %} {% endfor %}
</table> <tr><td>&nbsp;</td></tr>
<tr>
------------------------------------------------------ <td style="border-top: 1px dashed black;font-weight: bold;padding: 5px; text-align: center;" colspan="2">Nuit</td>
</tr>
<table>
{% for task in night_task_list %} {% for task in night_task_list %}
<tr><td style="font-weight: bold;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through{% endif %}">{{ task.name }}</td></tr> <tr><td style="font-weight: bold;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through{% endif %}">{{ task.name }}</td></tr>
{% endfor %} {% endfor %}
</table> </table>
{% else %} {% else %}
<p>No task are available.</p> <p>Aucune tâche disponible.</p>
{% endif %} {% endif %}

View File

@@ -19,5 +19,5 @@
{% endfor %} {% endfor %}
</table> </table>
{% else %} {% else %}
<p>No task are available.</p> <p>Aucune information véhicule</p>
{% endif %} {% endif %}