mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
New {login,register}.html
This commit is contained in:
parent
1c1dc0bbcc
commit
4b775ec0a8
@ -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">
|
||||
|
@ -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">
|
||||
<option value="">Aucun</option>
|
||||
{% for album in albums %}
|
||||
<option value="{{ album['uuid'] }}">{{ album["name"] }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endif %}
|
||||
<form method="post" id="add-user-form">
|
||||
{% if g.user.access_level == 1 %}
|
||||
<!-- Uniquement pour /add-user -->
|
||||
<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><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 %}
|
Loading…
Reference in New Issue
Block a user