fixes for form pages
This commit is contained in:
parent
905712dbca
commit
45b10ca526
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue