2022-08-13 23:36:10 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2024-01-25 16:22:04 +01:00
|
|
|
<h2>{% block title %}{{ _("Créer un compte") }}{% endblock %}</h2>
|
2023-06-24 15:37:43 +02:00
|
|
|
|
2023-06-22 16:22:52 +02:00
|
|
|
<form method="post" id="add-user-form">
|
|
|
|
{% if g.user.access_level == 1 %}
|
|
|
|
<!-- Uniquement pour /add-user -->
|
2024-01-25 16:22:04 +01:00
|
|
|
<label for="album_uuid">{{ _("Ajouter à un album:") }}</label><br/>
|
2023-06-22 16:22:52 +02:00
|
|
|
<select name="album_uuid" id="album_uuid" form="add-user-form" style="margin-bottom:15px;">
|
2024-01-25 16:22:04 +01:00
|
|
|
<option value="">{{ _("Aucun") }}</option>
|
2023-06-22 16:22:52 +02:00
|
|
|
{% for album in albums %}
|
|
|
|
<option value="{{ album['uuid'] }}">{{ album["name"] }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select><br/>
|
|
|
|
{% endif %}
|
2024-01-25 16:22:04 +01:00
|
|
|
<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') }}">
|
2023-06-22 16:22:52 +02:00
|
|
|
</form>
|
2022-08-13 23:36:10 +02:00
|
|
|
{% endblock %}
|