This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univcloud/univcloud/templates/registration/login.html

62 lines
1.5 KiB
HTML

{% extends "univcloud/base.html" %}
{% load i18n %}
{% load url from future %}
{% block extrascripts %}
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.2/leaflet.js"></script>
<link rel="stylesheet" href="{{ STATIC_URL }}css/MarkerCluster.css" />
<link rel="stylesheet" href="{{ STATIC_URL }}css/MarkerCluster.Default.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="{{ STATIC_URL }}css/MarkerCluster.Default.ie.css" /><![endif]-->
<script src="{{ STATIC_URL }}js/leaflet.markercluster.js"></script>
{% endblock %}
{% block wrapper %}
<div id="wrap">
{% endblock %}
{% block user-links %}
{% endblock %}
{% block content %}
<div id="map-and-idplist">
<div id="idplist">
<input type="text" id="search" x-webkit-speech speech>
<ul id="idps">
{% include "univcloud/idplist.html" %}
</ul>
</div>
<div id="map"></div>
</div>
<div id="login">
<h2>Connexion locale</h2>
{% if form.errors %}
<p>{% trans 'Mot de passe incorrect.' %}</p>
{% endif %}
<form method="post" id="login-form" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<p>
<label for="id_username">Identifiant</label>
{{ form.username }}
</p>
<p>
<label for="id_password">Mot de passe</label>
{{ form.password }}
</p>
<input type="submit" value="Se connecter" class="submit login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
</div>
<script src="{{ STATIC_URL }}js/univcloud.js"></script>
{% endblock %}