mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-02 17:00:14 +08:00
Update templates
This commit is contained in:
@@ -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" %}
|
||||
@@ -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" %}
|
||||
Reference in New Issue
Block a user