Révision 2d191d5d
Ajouté par Thomas Noël il y a plus de 9 ans
usr/local/univnautes/sp/sp/templates/base.html | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<meta charset="utf-8"/> |
|
5 |
<title>{% block page-title %}Accès eduspot{% endblock %}</title> |
|
6 |
{% block js %}{% endblock %} |
|
7 |
{% block css %}{% endblock %} |
|
8 |
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}style.css"/> |
|
9 |
</head> |
|
10 |
<body {% block bodyargs %}{% endblock %}> |
|
11 |
{% block page-begin %}{% endblock %} |
|
12 |
{% block wrapper %} |
|
13 |
<div id="wrap"> |
|
14 |
{% endblock %} |
|
15 |
{% if not popup %} |
|
16 |
<div id="header"> |
|
17 |
{% block header %} |
|
18 |
<h1>Accès eduspot</h1> |
|
19 |
{% endblock %} |
|
20 |
</div> |
|
21 |
{% endif %} |
|
22 |
<div id="content"> |
|
23 |
{% block content %}{% endblock %} |
|
24 |
</div> |
|
25 |
<div id="footer"> |
|
26 |
{% block footer %}{% endblock %} |
|
27 |
</div> |
|
28 |
</div> |
|
29 |
{% block page-end %}{% endblock %} |
|
30 |
</body> |
|
31 |
</html> |
|
32 |
|
|
33 |
|
usr/local/univnautes/sp/sp/templates/registration/login.html | ||
---|---|---|
1 |
{% extends "base.html" %} |
|
2 |
|
|
3 |
{% block js %} |
|
4 |
<script src="{{ STATIC_URL }}leaflet/leaflet.js"></script> |
|
5 |
{% endblock %} |
|
6 |
{% block css %} |
|
7 |
<link rel="stylesheet" href="{{ STATIC_URL }}leaflet/leaflet.css" /> |
|
8 |
{% endblock %} |
|
9 |
|
|
10 |
{% block content %} |
|
11 |
<div id="map">map</div> |
|
12 |
|
|
13 |
<div id="search"> |
|
14 |
<input name="" placeholder="chercher un établissement…"> |
|
15 |
</div> |
|
16 |
|
|
17 |
<div id="idplist"> |
|
18 |
<div id="idplist-static"> |
|
19 |
{% if defaultidps %} |
|
20 |
<ul> |
|
21 |
{% 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> |
|
22 |
{% endif %}{% endfor %}{% endfor %} |
|
23 |
</ul> |
|
24 |
{% endif %} |
|
25 |
</div> |
|
26 |
<div id="idplist-float"> |
|
27 |
<ul> |
|
28 |
{% for idp in idps %} |
|
29 |
<li><a href="/authsaml2/sso?entity_id={{ idp.entity_id|urlencode:"" }}">{{ idp.name }}</a></li>{% endfor %} |
|
30 |
</ul> |
|
31 |
</div> |
|
32 |
</div> |
|
33 |
{% endblock %} |
|
34 |
|
|
35 |
{% block page-end %} |
|
36 |
<script src="{{ STATIC_URL }}jquery/jquery-1.11.1.min.js"></script> |
|
37 |
|
|
38 |
<script> |
|
39 |
|
|
40 |
$(document).ready(function () { |
|
41 |
/* float list starts just after the static one */ |
|
42 |
$('#idplist-float').css('top', $('#idplist-static').height() + 'px'); |
|
43 |
|
|
44 |
var map = L.map('map').setView([46.5, 2.5], 6); |
|
45 |
{% if geoinitialbounds %}map.fitBounds({{ geoinitialbounds }});{% endif %} |
|
46 |
L.tileLayer('/map/mapbox/{z}/{x}/{y}.png').addTo(map); |
|
47 |
}); |
|
48 |
</script> |
|
49 |
{% endblock %} |
|
50 |
|
Formats disponibles : Unified diff
templates are now in base