68 lines
2.4 KiB
HTML
68 lines
2.4 KiB
HTML
{% extends 'accueil.html' %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="site-wrapper">
|
|
|
|
<div class="site-wrapper-inner">
|
|
|
|
<div class="cover-container">
|
|
|
|
<div class="masthead clearfix">
|
|
<div class="inner">
|
|
<h3 class="masthead-brand">OpenBlogStock</h3>
|
|
<ul class="nav masthead-nav">
|
|
<li><a href="/filesupload/">Login</a></li>
|
|
<li class="active"><a href="/inscription/">Inscription</a></li>
|
|
<li><a href="#">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inner cover">
|
|
<h1 class="cover-heading">Inscription</h1>
|
|
<br>
|
|
<p class="lead">
|
|
<form method="POST" action="{{ url_for('inscription.signin') }}">
|
|
<input type="text" name="user" id="user" placeholder="Pseudo" class="form-control"><br />
|
|
<input type="mail" name="mail" id="mail" placeholder="Adresse mail" class="form-control"><br />
|
|
<input type="password" name="passwd" id="passwd" placeholder="Mot de passe" class="form-control"><br />
|
|
<input type="password" name="passwdconfirm" id="passwdconfirm" placeholder="Confirmation du mot de passe" class="form-control"><br />
|
|
<br>
|
|
<button id="tada" class="btn btn-default btn-primary" type="submit">Envoyer</button>
|
|
</form>
|
|
</p>
|
|
{% for i in users %}
|
|
<p>{{i}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="msginfo">
|
|
{# On affiche les messages d'erreur puis les messages de succés #}
|
|
{% 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 class="mastfoot">
|
|
<div class="inner">
|
|
<p>Cover template for <a href="http://getbootstrap.com">Bootstrap</a>, by <a href="https://twitter.com/mdo">@mdo</a>.</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|