2022-08-13 23:36:10 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}Créer un compte{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-12-19 15:19:58 +01:00
|
|
|
<form method="post" id="add-user-form">
|
2022-08-13 23:36:10 +02:00
|
|
|
<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>
|
2023-03-04 19:48:37 +01:00
|
|
|
{% if g.user.access_level == 1 %}
|
|
|
|
<!-- Uniquement pour /add-user -->
|
2022-12-19 15:19:58 +01:00
|
|
|
<label for="album_uuid">Ajouter à un album: </label>
|
|
|
|
<select name="album_uuid" id="album_uuid" form="add-user-form">
|
|
|
|
<option value="">Aucun</option>
|
|
|
|
{% for album in albums %}
|
|
|
|
<option value="{{ album['uuid'] }}">{{ album["name"] }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2023-03-04 19:48:37 +01:00
|
|
|
{% endif %}
|
2022-08-13 23:36:10 +02:00
|
|
|
{% endblock %}
|