New {login,register}.html

This commit is contained in:
augustin64 2023-06-22 16:22:52 +02:00
parent 1c1dc0bbcc
commit 4b775ec0a8
2 changed files with 17 additions and 23 deletions

View File

@ -1,8 +1,6 @@
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}Se connecter{% endblock %}</h1>
{% endblock %}
{% block title %}Connexion{% endblock %}
{% block content %}
<form method="post">

View File

@ -1,25 +1,21 @@
{% extends 'base.html' %}
{% block header %}
<h1>{% block title %}Créer un compte{% endblock %}</h1>
{% endblock %}
{% block title %}Créer un compte{% endblock %}
{% block content %}
<form method="post" id="add-user-form">
<label for="username">Nom d'utilisateur</label>
<input name="username" id="username" required>
<label for="password">Mot de passe</label>
<input type="password" name="password" id="password" required>
<input type="submit" value="Créer un compte">
</form>
{% if g.user.access_level == 1 %}
<!-- Uniquement pour /add-user -->
<label for="album_uuid">Ajouter à un album: </label>
<select name="album_uuid" id="album_uuid" form="add-user-form">
<label for="album_uuid">Ajouter à un album: </label><br/>
<select name="album_uuid" id="album_uuid" form="add-user-form" style="margin-bottom:15px;">
<option value="">Aucun</option>
{% for album in albums %}
<option value="{{ album['uuid'] }}">{{ album["name"] }}</option>
{% endfor %}
</select>
</select><br/>
{% endif %}
<input type="text" name="username" id="username" placeholder="Nom d'utilisateur" required><br/>
<input type="password" name="password" id="password" placeholder="Mot de passe" required><br/>
<input type="submit" value="Créer un compte">
</form>
{% endblock %}