First commit

This commit is contained in:
Andros Fenollosa
2017-05-17 20:16:30 +02:00
commit f056300d27
26 changed files with 1631 additions and 0 deletions

33
templates/web/login.html Normal file
View File

@ -0,0 +1,33 @@
{% extends 'layouts/master.html' %}
{% block title %}Login{% endblock %}
{% block body %}
<h1>Login</h1>
<p>
<form action="" method="post">
{% for campo in form %}
{% if campo.type != 'CSRFTokenField' %}
<div class="form-group{%if campo.errors %} has-error{% endif %}">
{{ campo.label }}
{% if campo.type in ('StringField', 'PasswordField') %}
{{ campo(class='form-control') }}
{% else %}
{{ campo() }}
{% endif %}
{% for error in campo.errors %}
<span class="help-block">{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ campo() }}
{% endif %}
{% endfor %}
<input type="submit" class="btn btn-success" value="Entrar">
</form>
</p>
<p>
<a href="{{ url_for('signup') }}" class="btn btn-primary">Regístrate</a>
</p>
<p>
<a href="{{ url_for('forgot_password') }}" class="btn btn-warning">Me he olvidado la contraseña</a>
</p>
{% endblock %}