64 lines
2.3 KiB
HTML
64 lines
2.3 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">OpenBlogSotck</h3>
|
|
<ul class="nav masthead-nav">
|
|
<li class="active"><a href="/uploadfiles/">Login</a></li>
|
|
<li><a href="/inscription/">Inscription</a></li>
|
|
<li><a href="#">Contact</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="inner cover">
|
|
<h1 class="cover-heading">Restez libres</h1>
|
|
<p class="lead">Bienvenue sur Olala, hébergeur de fichier libre basé sur Flask et hébergé sur une simple Orange Pi. Bientôt disponible, gallerie d'images, blog et d'autres. Site en construction.</p>
|
|
<br>
|
|
<p class="lead">
|
|
<form method="POST" action="{{ url_for('loginlogout.login') }}">
|
|
<input type="text" name="user" id="user" placeholder="Utilisateur" class="form-control"><br />
|
|
<input type="password" name="passwd" id="passwd" placeholder="Mot de passe" class="form-control"><br />
|
|
<br>
|
|
<button id="tada" class="btn btn-default btn-primary" type="submit">Login</button>
|
|
</form>
|
|
</p>
|
|
</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 %}
|