diff --git a/accounts/templates/login.html b/accounts/templates/login.html index 6f6134a64eecaba79f16779f20dc985d669988d4..249ac46b905bdac550e0c6de2a6de5b0c655297c 100644 --- a/accounts/templates/login.html +++ b/accounts/templates/login.html @@ -5,6 +5,7 @@ {% block "content" %} <div id="content-area"> <h2>Connexion</h2> + {% if form.errors %} <ul class="messagelist"> <li class="error">Login ou mot de passe incorrect</li> @@ -34,7 +35,12 @@ </table> <br> + <div class="flex"> <input type="submit" value="Connexion"> + {% if settings.registrations_open %} + <a class="button" href="{% url 'accounts:create' %}">Créer un compte</a> + {% endif %} + </div> <input type="hidden" name="next" value="{{ next }}"> </form> </div> diff --git a/home/static/css/style.css b/home/static/css/style.css index bd20b342310caf4de05655d3240322b2d7710ce1..e0ef347b72d81270098ca63e676d9a4b5f45a6d4 100644 --- a/home/static/css/style.css +++ b/home/static/css/style.css @@ -251,14 +251,16 @@ ul.messagelist li.info:before { footer { position: absolute; bottom: 0; - width: calc(100% - 80px); /* viewport width - padding */ - padding: 10px 40px; + width: 100%; + text-align: center; + padding: 10px 0; height: 50px; color: white; display: flex; background-color: var(--color_bg_1); border-top: 5px solid var(--color_bg_2); align-items: center; + justify-content: space-around; } footer #sponsors img {