Changement frontend caldav
This commit is contained in:
@@ -6,3 +6,6 @@ caldav_cfg["rh"] = "https://sync.infomaniak.com/calendars/AA01593/c9916d31-c25b-
|
||||
caldav_cfg["road"] = "https://sync.infomaniak.com/calendars/AA01593/d608fcce-2f30-42f0-816c-b5524a0672fe?export"
|
||||
caldav_cfg["op"] = "https://sync.infomaniak.com/calendars/AA01593/73f3c787-abe1-4cd0-bf2a-c44dbc7015b9?export"
|
||||
caldav_cfg["team"] = "https://sync.infomaniak.com/calendars/AA01593/2d61a30c-16b9-4e4a-aab4-aabcbca6961f?export"
|
||||
caldav_cfg["manif"] = "https://sync.infomaniak.com/calendars/AA01593/f3ab342d-921b-42ed-8fde-c8f393673819?export"
|
||||
|
||||
|
||||
|
16
mycaldav/static/mycaldav/style.css
Normal file
16
mycaldav/static/mycaldav/style.css
Normal file
@@ -0,0 +1,16 @@
|
||||
:root{
|
||||
--main-text-color: white;
|
||||
--main-text-family: 'Source Sans Pro', sans-serif;
|
||||
}
|
||||
|
||||
.ifram_main_div{
|
||||
color: white
|
||||
}
|
||||
|
||||
table{
|
||||
font-family: var(--main-text-family);
|
||||
font-size: 12pt;
|
||||
color: var(--main-text-color);
|
||||
width: 100%;
|
||||
}
|
||||
|
27
mycaldav/templates/manif/manif_view.html
Normal file
27
mycaldav/templates/manif/manif_view.html
Normal 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> </td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
<p>Aucune information manifestation</p>
|
||||
{% endif %}
|
||||
</div>
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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> <td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">{{ task.name }}<br>{{task.desc}}</td></tr>
|
||||
{% endfor %}
|
||||
|
@@ -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 %}">
|
||||
|
@@ -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>
|
||||
|
@@ -12,6 +12,7 @@ urlpatterns = [
|
||||
path('road', views.view_road_caldav, name='view_road_caldav'),
|
||||
path('op', views.view_op_caldav, name='view_op_caldav'),
|
||||
path('team', views.view_team_caldav, name='view_team_caldav'),
|
||||
path('manif', views.view_manif_caldav, name='view_manif_caldav'),
|
||||
path('team_pdf', views.view_team_pdf_caldav, name='view_team_pdf_caldav'),
|
||||
path('reskreen', views.view_reskreen, name='view_reskreen'),
|
||||
|
||||
|
@@ -67,6 +67,15 @@ def view_team_caldav(request):
|
||||
context = {'latest_task_list': o_caldav.day, 'night_task_list': o_caldav.night, 'today': datetime.today().strftime('%d.%m')}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
@xframe_options_exempt
|
||||
def view_manif_caldav(request):
|
||||
o_caldav = cls_caldav(url=caldav_cfg["manif"])
|
||||
o_caldav.get_caldav_data(periode=1)
|
||||
template = loader.get_template("manif/manif_view.html")
|
||||
o_caldav.sort_array_by_key(True)
|
||||
context = {'latest_task_list': o_caldav.day, 'night_task_list': o_caldav.night, 'today': datetime.today().strftime('%d.%m')}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
@xframe_options_exempt
|
||||
def view_team_pdf_caldav(request):
|
||||
o_caldav = cls_caldav(url=caldav_cfg["team"])
|
||||
|
Reference in New Issue
Block a user