Changement frontend caldav

This commit is contained in:
Ambulance Clerc
2022-10-13 13:02:35 +02:00
parent ee8ce40e6a
commit 12efdfcf59
12 changed files with 95 additions and 21 deletions

View File

@@ -0,0 +1,27 @@
{% 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>
<td style="vertical-align: top;padding-bottom: 18px" width="120" >
<span style="font-weight: bold;">{{task.key}}</span><br>
{{task.str_start_date}} - {{task.str_end_date}}<br>
{{task.str_start_time}} - {{task.str_end_time}}<br>
</td>
<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">
<span style="font-weight: bold;">{{task.name}}</span><br>
{{task.desc}}
</td>
</tr>
<tr><td>&nbsp;</td></tr>
{% endfor %}
</table>
{% else %}
<p>Aucune information manifestation</p>
{% endif %}
</div>

View File

@@ -1,6 +1,9 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<table >
{% for task in latest_task_list %}
<tr>

View File

@@ -74,34 +74,34 @@
<div class="div_container">
<div style="" class="div_item main_div">
<p style="">Équipages</p>
<iframe style="border:0;width:100%;height:100%;color:white" src="https://rh.ambulance-clerc.ch/caldav/team"></iframe>
<iframe style="border:0;width:100%;height:100%;color:white" src="team"></iframe>
</div>
<div style="" class="div_item main_div vertical_content_item">
<div style="height: 170px;flex-grow: 1;">
<p style="">Restrictions routières</p>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/road"></iframe>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="road"></iframe>
</div>
<div style="height: 170px;flex-grow: 1;">
<p style="">Manifestations</p>
<iframe style="border:0;width:100%;height:100%;color:white" src="https://rh.ambulance-clerc.ch/caldav/manif"></iframe>
<iframe style="border:0;width:100%;height:100%;color:white" src="manif"></iframe>
</div>
</div>
<div style="" class="div_item main_div">
<p style="">Agenda véhicules</p>
<iframe style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/vhc"></iframe>
<iframe style="border:0;width:100%;height:100%" src="vhc"></iframe>
</div>
<div style="" class="div_item main_div">
<p style="">Accueil</p>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/rh"></iframe>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="rh"></iframe>
</div>
<div style="" class="div_item main_div">
<p style="">Tâches à faire</p>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/task"></iframe>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="task"></iframe>
</div>
<div style="" class="div_item main_div">
<p style="">Communications importantes</p>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/op"></iframe>
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="op"></iframe>
</div>
</div>

View File

@@ -1,6 +1,9 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<table>
{% for task in latest_task_list %}
<tr>

View File

@@ -1,6 +1,9 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<table>
{% for task in latest_task_list %}
<tr>

View File

@@ -1,7 +1,10 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<td style="font-weight: bold;padding-bottom: 5px; text-align: center;" colspan="2">Jour</td>
<table>
<td style="font-weight: bold;padding-bottom: 5px; text-align: center;" colspan="2">Jour 2</td>
{% for task in latest_task_list %}
<tr><td style="font-weight: bold;vertical-align: top;" width="75" >{{task.key}}</td>&nbsp;&nbsp;&nbsp;&nbsp;<td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
{% endfor %}
@@ -17,4 +20,4 @@
{% else %}
<p>Aucune tâche disponible.</p>
{% endif %}
</div>
</div>

View File

@@ -1,6 +1,9 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<table>
{% for task in latest_task_list %}
<tr style="{% if task.team_transfert %}background-color: orange;{% endif %}">

View File

@@ -1,6 +1,9 @@
<div style="color: white">
{% load static %}
<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
<table style="font-family: 'Source Sans Pro', sans-serif; font-size: 12pt;color: white">
<table>
{% for task in latest_task_list %}
<tr>