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