Adaptation sync caldav task
This commit is contained in:
49
mycaldav/templates/reskreen.html
Normal file
49
mycaldav/templates/reskreen.html
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<html>
|
||||||
|
<body style="background-color:black">
|
||||||
|
<div style="width: 100%; border: 1px solid white">
|
||||||
|
<div style="float:left; width:50%"><iframe src="https://www.zeitverschiebung.net/clock-widget-iframe-v2?language=fr&size=medium&timezone=Europe%2FZurich" width="100%" height="115" frameborder="0" scrolling="no" seamless ></iframe></div>
|
||||||
|
<div style="float:right; width:50%"><a class="weatherwidget-io" href="https://forecast7.com/fr/46d256d95/monthey/" data-label_1="MONTHEY" data-label_2="METEO" data-days="3" data-theme="dark" >MONTHEY METEO</a>
|
||||||
|
<script>
|
||||||
|
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://weatherwidget.io/js/widget.min.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','weatherwidget-io-js');
|
||||||
|
</script></div>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div style="float:left;width: 33%;border: 1px solid white; height: 500px">
|
||||||
|
<p style="color: white">Équipage</p>
|
||||||
|
<iframe style="border:0;width:100%;height:100%;color:white" src="https://rh.ambulance-clerc.ch/caldav/team"></iframe>
|
||||||
|
</div>
|
||||||
|
<div style="float:left;width: 33%;;border: 1px solid white; height: 500px">
|
||||||
|
<div style="height: 50%">
|
||||||
|
<p style="color: white">Restrictions routières</p>
|
||||||
|
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/road"></iframe>
|
||||||
|
</div>
|
||||||
|
<div style="height: 50%">
|
||||||
|
<p style="color: white">Communications importantes</p>
|
||||||
|
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/road"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div style="float:left;width: 33%;border: 1px solid white; height: 500px">
|
||||||
|
<p style="color: white">Agenda véhicules</p>
|
||||||
|
<iframe style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/vhc"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div>
|
||||||
|
<div style="float:left;width: 33%;border: 1px solid white; height: 500px">
|
||||||
|
<p style="color: white">Acceuil</p>
|
||||||
|
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/rh"></iframe>
|
||||||
|
</div>
|
||||||
|
<div style="float:left;width: 33%;;border: 1px solid white; height: 500px">
|
||||||
|
<p style="color: white">Tâches à faire</p>
|
||||||
|
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/task"></iframe>
|
||||||
|
</div>
|
||||||
|
<div style="float:left;width: 33%;border: 1px solid white; height: 500px">
|
||||||
|
<p style="color: white">Manifestations</p>
|
||||||
|
<iframe scrolling="no" style="border:0;width:100%;height:100%" src="https://rh.ambulance-clerc.ch/caldav/road"></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
@@ -13,6 +13,8 @@ urlpatterns = [
|
|||||||
path('op', views.view_op_caldav, name='view_op_caldav'),
|
path('op', views.view_op_caldav, name='view_op_caldav'),
|
||||||
path('team', views.view_team_caldav, name='view_team_caldav'),
|
path('team', views.view_team_caldav, name='view_team_caldav'),
|
||||||
path('team_pdf', views.view_team_pdf_caldav, name='view_team_pdf_caldav'),
|
path('team_pdf', views.view_team_pdf_caldav, name='view_team_pdf_caldav'),
|
||||||
|
path('reskreen', views.view_reskreen, name='view_reskreen'),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@@ -79,4 +79,12 @@ def view_team_pdf_caldav(request):
|
|||||||
render_pdf(o_caldav, caldavClient=myClient, date=start)
|
render_pdf(o_caldav, caldavClient=myClient, date=start)
|
||||||
return FileResponse(open('mycaldav/export.pdf', 'rb'), as_attachment=False, content_type='application/pdf')
|
return FileResponse(open('mycaldav/export.pdf', 'rb'), as_attachment=False, content_type='application/pdf')
|
||||||
|
|
||||||
|
@xframe_options_exempt
|
||||||
|
def view_reskreen(request):
|
||||||
|
template = loader.get_template("reskreen.html")
|
||||||
|
|
||||||
|
#context = {'latest_task_list': o_caldav.day, 'night_task_list': o_caldav.night, 'today': datetime.today().strftime('%d.%m')}
|
||||||
|
context = {}
|
||||||
|
return HttpResponse(template.render(context, request))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user