Frontend stuff
This commit is contained in:
parent
b656bc3b76
commit
6bf4b54ea5
3 changed files with 38 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 %}
|
||||
|
|
27
authens/templates/authens/old_cas_login.html
Normal file
27
authens/templates/authens/old_cas_login.html
Normal 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 %}
|
||||
|
Loading…
Reference in a new issue