Frontend stuff

This commit is contained in:
Ludovic Stephan 2020-06-13 19:47:03 +02:00
parent b656bc3b76
commit 6bf4b54ea5
3 changed files with 38 additions and 4 deletions

View file

@ -59,7 +59,7 @@ form {
}
form table {
margin: auto;
margin: 20px auto;
border-spacing: 0.3em;
}
@ -90,6 +90,15 @@ input[type="submit"]:hover {
border-color: white;
}
select {
border: 0;
font-size: 1em;
background-color: white;
width: 100%;
padding:5px;
text-align: end;
}
a {
flex: 1;
height: 200px;

View file

@ -13,11 +13,9 @@
{% trans "Mot de passe" %}
</div>
</a>
{% comment %} TODO: https://git.eleves.ens.fr/klub-dev-ens/authens/issues/9
<a href="#TODO">
<a href="{% url "authens:login.oldcas" %}?next={{ next| urlencode }}">
<div class="big-button oldcas">
{% trans "Vieilleux" %}
</div>
</a>
{% endcomment %}
{% endblock %}

View file

@ -0,0 +1,27 @@
{% extends "authens/base.html" %}
{% load i18n %}
{% block content %}
<h2>{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Connexion vieilleux" %}</h2>
{% if form.errors %}
<p class="error">{% trans "Login CAS, promotion et/ou mot de passe incorrect" %}</p>
{% endif %}
<form class="oldcas" method="post" action="">
{% csrf_token %}
<table>
<tbody>
{% for field in form %}
<tr>
<th>{{ field.label_tag }}</th>
<td>{{ field }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<input type="submit" value="{% trans "Se connecter" %}">
<input type="hidden" name="next" value="{{ next }}">
</form>
{% endblock %}