bulma in login and signup views

This commit is contained in:
Laetitia Getti 2023-04-27 16:04:46 +02:00
parent 66ce8f4df3
commit 6264786229
3 changed files with 7 additions and 6 deletions

View file

@ -2,13 +2,14 @@
{% block title %}Connexion{% endblock %} {% block title %}Connexion{% endblock %}
{% block content_title %}Connexion{% endblock %}
{% block content %} {% block content %}
<h2>Connexion</h2>
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<button type="submit">Se connecter</button> <button class="button is-primary" type="submit">Se connecter</button>
<a href="{% url 'accounts:signup' %}">Créer un compte</button> <a href="{% url 'accounts:signup' %}">Créer un compte</a>
</form> </form>
{% endblock %} {% endblock %}

View file

@ -1,13 +1,13 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% block title %}Créer un compte{% endblock %} {% block title %}Créer un compte{% endblock %}
{% block content_title %}Créer un compte{% endblock %}
{% block content %} {% block content %}
<h2>Créer un compte</h2>
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<button type="submit">Valider</button> <button class="button is-primary" type="submit">Valider</button>
</form> </form>
{% endblock %} {% endblock %}

View file

@ -117,7 +117,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization # Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/ # https://docs.djangoproject.com/en/4.1/topics/i18n/
LANGUAGE_CODE = "en-us" LANGUAGE_CODE = "fr-FR"
TIME_ZONE = "Europe/Paris" TIME_ZONE = "Europe/Paris"