mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-03 12:21:52 +02:00
bulma in login and signup views
This commit is contained in:
parent
66ce8f4df3
commit
6264786229
3 changed files with 7 additions and 6 deletions
|
@ -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 %}
|
|
@ -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 %}
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue