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

View file

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