Update templates

This commit is contained in:
Matt Wright
2012-08-17 15:18:05 -04:00
parent a4356d786e
commit 433b88e579
7 changed files with 25 additions and 14 deletions
@@ -0,0 +1,14 @@
{% if security.registerable or security.recoverable or security.confirmabled %}
<h2>Help</h2>
<ul>
{% if security.registerable %}
<li><a href="{{ url_for_security('register') }}">Register</a><br/></li>
{% endif %}
{% if security.recoverable %}
<li><a href="{{ url_for_security('forgot_password') }}">Forgot password</a><br/></li>
{% endif %}
{% if security.confirmable %}
<li><a href="{{ url_for_security('send_confirmation') }}">Confirm account</a></li>
{% endif %}
</ul>
{% endif %}
@@ -5,4 +5,5 @@
{{ forgot_password_form.hidden_tag() }}
{{ render_field_with_errors(forgot_password_form.email) }}
{{ render_field(forgot_password_form.submit) }}
</form>
</form>
{% include "security/_help.html" %}
+1 -9
View File
@@ -9,12 +9,4 @@
{{ render_field(login_form.next) }}
{{ render_field(login_form.submit) }}
</form>
<h2>Help</h2>
<p>
{% if security.recoverable %}
<a href="{{ url_for_security('forgot_password') }}">Forgot password</a><br/>
{% endif %}
{% if security.confirmable %}
<a href="{{ url_for_security('send_confirmation') }}">Confirm account</a>
{% endif %}
</p>
{% include "security/_help.html" %}
@@ -7,4 +7,5 @@
{{ render_field_with_errors(register_user_form.password) }}
{{ render_field_with_errors(register_user_form.password_confirm) }}
{{ render_field(register_user_form.submit) }}
</form>
</form>
{% include "security/_help.html" %}
@@ -6,4 +6,5 @@
{{ render_field_with_errors(reset_password_form.password) }}
{{ render_field_with_errors(reset_password_form.password_confirm) }}
{{ render_field(reset_password_form.submit) }}
</form>
</form>
{% include "security/_help.html" %}
@@ -5,4 +5,5 @@
{{ reset_confirmation_form.hidden_tag() }}
{{ render_field_with_errors(reset_confirmation_form.email) }}
{{ render_field(reset_confirmation_form.submit) }}
</form>
</form>
{% include "security/_help.html" %}
@@ -6,4 +6,5 @@
{{ render_field_with_errors(login_form.email) }}
{{ render_field(login_form.next) }}
{{ render_field(login_form.submit) }}
</form>
</form>
{% include "security/_help.html" %}