1
|
{% extends "base.html" %}
|
2
|
{% load static %}
|
3
|
|
4
|
{% block js %}
|
5
|
<script src="{% static "univnautes/leaflet/leaflet.js" %}"></script>
|
6
|
{% endblock %}
|
7
|
{% block css %}
|
8
|
<link rel="stylesheet" href="{% static "univnautes/leaflet/leaflet.css" %}" />
|
9
|
{% endblock %}
|
10
|
|
11
|
{% block content %}
|
12
|
<div id="map">map</div>
|
13
|
|
14
|
<div id="search">
|
15
|
<input name="" placeholder="chercher un établissement…">
|
16
|
</div>
|
17
|
|
18
|
<div id="idplist">
|
19
|
<div id="idplist-static">
|
20
|
{% if defaultidps %}
|
21
|
<ul>
|
22
|
{% for defaultidp in defaultidps %}{% for idp in idps %}{% if idp.entity_id == defaultidp %}<li><a href="/authsaml2/sso?entity_id={{ idp.entity_id|urlencode:"" }}">{{ idp.name }}</a></li>
|
23
|
{% endif %}{% endfor %}{% endfor %}
|
24
|
</ul>
|
25
|
{% endif %}
|
26
|
</div>
|
27
|
<div id="idplist-float">
|
28
|
<ul>
|
29
|
{% for idp in idps %}
|
30
|
<li><a href="/authsaml2/sso?entity_id={{ idp.entity_id|urlencode:"" }}">{{ idp.name }}</a></li>{% endfor %}
|
31
|
</ul>
|
32
|
</div>
|
33
|
</div>
|
34
|
{% endblock %}
|
35
|
|
36
|
{% block page-end %}
|
37
|
<script src="{% static "univnautes/jquery/jquery-1.11.1.min.js" %}"></script>
|
38
|
|
39
|
<script>
|
40
|
|
41
|
$(document).ready(function () {
|
42
|
/* float list starts just after the static one */
|
43
|
$('#idplist-float').css('top', $('#idplist-static').height() + 'px');
|
44
|
|
45
|
var map = L.map('map').setView([46.5, 2.5], 6);
|
46
|
{% if geoinitialbounds %}map.fitBounds({{ geoinitialbounds }});{% endif %}
|
47
|
L.tileLayer('/map/{z}/{x}/{y}.png').addTo(map);
|
48
|
});
|
49
|
</script>
|
50
|
{% endblock %}
|
51
|
|