Correct login landing page
This commit is contained in:
@@ -3,69 +3,71 @@
|
||||
|
||||
{% block main %}
|
||||
|
||||
<!--<div class="page-header">
|
||||
<h1>Profil</h1>
|
||||
</div>-->
|
||||
|
||||
<div class="row">
|
||||
<h3> Bienvenue </h3>
|
||||
<p> Si vous êtes sur cette page, c'est que vous diposez d'un compte sur ce serveur.
|
||||
Du coup, vous avez une adresse e-mail et une adresse XMPP que vous pouvez utiliser
|
||||
avec un client mail et avec un client XMPP (Bien évidemment)
|
||||
</p>
|
||||
<div>
|
||||
|
||||
<p> Voici un exemple de <a href="https://www.thunderbird.net/fr/"> client mail </a>
|
||||
et <a href="https://gajim.org/">client XMPP </a> pour un ordinateur </p>
|
||||
|
||||
|
||||
<h3> Mon profil </h3>
|
||||
<p>
|
||||
Votre profil vous sert à vous faire reconnaitre par les autres membres du serveur. Il n'y a pas besoin de mettre son vrai nom
|
||||
ou prénom ou age cela fonctionnera parfaitement même si vous ne remplissez pas tous les champs. Vous pouvez les laisser vides si
|
||||
cela vous convient.
|
||||
</p>
|
||||
|
||||
<p> un exemple de <a href="https://k9mail.app/"> client mail </a> et <a href="https://play.google.com/store/apps/details?id=org.snikket.android&hl=ln&gl=US">client XMPP</a>
|
||||
pour un téléphone sous Android </p>
|
||||
<p> Pour votre mail de secours il sert à vous envoyer un mail pour changer de mot de passe en cas de perte de ce dernier. Il n'y a
|
||||
pas encore de validation de l'e-mail donc vérifiez bien ce que vous tapez. </p>
|
||||
|
||||
<p> et un un exemple de<a href="https://support.apple.com/fr-fr/mail"> client mail</a> et <a href="https://itunes.apple.com/us/app/tigase-messenger/id1153516838"> client XMPP </a>sous iOS pour un iphone ou un Ipad </p>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
</div> <br/>
|
||||
<br/>
|
||||
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
<div id="fic" class="center">
|
||||
<label> Photo de profil </label>
|
||||
<input type="file" class="center" name="fic" id="fic"/><br>
|
||||
<img id="fic" src="/profil/{{ username }}/{{ profil['avatar'] }}" alt=""/>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-6">
|
||||
<label for="theme">Theme</label>
|
||||
<select id="theme" name="theme" required>
|
||||
<option value="" selected>Default</option>
|
||||
<option>amber</option>
|
||||
<option>blue</option>
|
||||
<option>cyan</option>
|
||||
<option>fuchsia</option>
|
||||
<option>green</option>
|
||||
<option>grey</option>
|
||||
<option>indigo</option>
|
||||
<option>jade</option>
|
||||
<option>orange</option>
|
||||
<option>rose</option>
|
||||
<option>pumpkin</option>
|
||||
<option>purple</option>
|
||||
<option>red</option>
|
||||
<option>sand</option>
|
||||
<option>slate</option>
|
||||
<option>violet</option>
|
||||
<option>yellow</option>
|
||||
<option>zinc</option>
|
||||
</select>
|
||||
|
||||
<br />
|
||||
|
||||
<label>Nom </label>
|
||||
<input type="text" name="nom" id="nom" value="{% if profil['nom'] != None %}{{ profil['nom'] }}{%endif%}"><br />
|
||||
<label>Prenom </label>
|
||||
<input type="text" name="prenom" id="prenom" value="{% if profil['nom'] != None %}{{ profil['prenom'] }}{%endif%}"><br />
|
||||
<label> Age </label>
|
||||
<input type="text" name="age" value="{% if profil['age'] != None %}{{ profil['age'] }}{%endif%}"><br />
|
||||
<label> Mail de secours </label>
|
||||
<input type="text" name="mail_rescue" id="mail_rescue" value="{% if profil['mail_rescue'] != None %}{{ profil['mail_rescue'] }}{%endif%}"><br />
|
||||
<button id="tada" class="btn btn-default btn-primary" type="submit">Envoyer</button>
|
||||
</form>
|
||||
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Mon profil</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
<div id="fic">
|
||||
<label> Photo de profil </label>
|
||||
<input type="file" name="fic" id="fic"/><br>
|
||||
<img id="fic" src="/profil/{{ username }}/{{ profil['avatar'] }}" class="img-rounded" alt=""/>
|
||||
</div>
|
||||
<br>
|
||||
<label>Nom </label>
|
||||
<input type="text" name="nom" id="nom" value="{% if profil['nom'] != None %}{{ profil['nom'] }}{%endif%}" class="form-control"><br />
|
||||
<label>Prenom </label>
|
||||
<input type="text" name="prenom" id="prenom" value="{% if profil['nom'] != None %}{{ profil['prenom'] }}{%endif%}" class="form-control"><br />
|
||||
<label> Age </label>
|
||||
<input type="text" name="age" value="{% if profil['age'] != None %}{{ profil['age'] }}{%endif%}" class="form-control"><br />
|
||||
<label> Mail de secours </label>
|
||||
<input type="text" name="mail_rescue" id="mail_rescue" value="{% if profil['mail_rescue'] != None %}{{ profil['mail_rescue'] }}{%endif%}" class="form-control"><br />
|
||||
<button id="tada" class="btn btn-default btn-primary" type="submit">Envoyer</button>
|
||||
</form>
|
||||
{# on affiche les messages d'erreur puis les messages de succes #}
|
||||
{% for categorie in ['error', 'succes'] %}
|
||||
{% with msgs = get_flashed_messages(category_filter=[categorie]) %}
|
||||
{% if msgs %}
|
||||
<div class="flashed {{ categorie }}">
|
||||
{% for m in msgs %}
|
||||
<p>{{ m|safe }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user