fixes for form pages

This commit is contained in:
Edward Betts 2017-04-09 14:15:04 +01:00
parent 905712dbca
commit 45b10ca526
3 changed files with 22 additions and 13 deletions

View file

@ -1,8 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 class="mt-3">{{ self.title() }}</h1> <h1>{{ self.title() }}</h1>
{% block form %} {% include "form/main.html" %}
{% include "form/main.html" %}
{% endblock %}
{% endblock %} {% endblock %}

View file

@ -1,7 +1,9 @@
{% extends "form/simple.html" %} {% extends "base.html" %}
{% from "form/controls.html" import render_field, checkbox, submit %} {% from "form/controls.html" import render_field, checkbox, submit %}
{% block title %}Login{% endblock %} {% block title %}Login{% endblock %}
{% block content %}
{% set action=url_for('.login') %} {% set action=url_for('.login') %}
{% set label="Sign in" %} {% set label="Sign in" %}
@ -18,3 +20,7 @@
<a href="{{ url_for('.password_reset') }}">forgotten your password?</a> <a href="{{ url_for('.password_reset') }}">forgotten your password?</a>
</div> </div>
{% endset %} {% endset %}
<h1>{{ self.title() }}</h1>
{% include "form/main.html" %}
{% endblock %}

View file

@ -1,13 +1,18 @@
{% extends "form/simple.html" %} {% extends "base.html" %}
{% from "form/controls.html" import render_field %} {% from "form/controls.html" import render_field %}
{% block title %}Sign up{% endblock %} {% block title %}Sign up{% endblock %}
{% set action=url_for('.signup') %} {% block content %}
{% set label="Sign up" %} {% set action=url_for('.signup') %}
{% set label="Sign up" %}
{% set fields %} {% set fields %}
{{ render_field(form.username) }} {{ render_field(form.username) }}
{{ render_field(form.password) }} {{ render_field(form.password) }}
{{ render_field(form.email) }} {{ render_field(form.email) }}
{% endset %} {% endset %}
<h1>{{ self.title() }}</h1>
{% include "form/main.html" %}
{% endblock %}