From 4f557dac4cc44101fe437e7ebfa6ebe8e67c47d4 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Tue, 10 Jul 2012 14:39:43 -0400 Subject: [PATCH] Update template a bit --- flask_security/templates/security/confirmations/new.html | 8 +++++++- flask_security/templates/security/logins/new.html | 2 ++ flask_security/templates/security/messages.html | 9 +++++++++ flask_security/templates/security/passwords/edit.html | 2 ++ flask_security/templates/security/passwords/new.html | 2 ++ .../templates/security/registrations/edit.html | 2 ++ flask_security/templates/security/registrations/new.html | 2 ++ 7 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 flask_security/templates/security/messages.html diff --git a/flask_security/templates/security/confirmations/new.html b/flask_security/templates/security/confirmations/new.html index 36a1ca0..03e1e12 100644 --- a/flask_security/templates/security/confirmations/new.html +++ b/flask_security/templates/security/confirmations/new.html @@ -1 +1,7 @@ -Resend confirmation instructions... \ No newline at end of file +{% include "../messages.html" %} +

Resend confirmation instructions

+
+ {{ reset_confirmation_form.hidden_tag() }} + {{ reset_confirmation_form.email.label }} {{ reset_confirmation_form.email }} + {{ reset_confirmation_form.submit }} +
\ No newline at end of file diff --git a/flask_security/templates/security/logins/new.html b/flask_security/templates/security/logins/new.html index 28d979c..b3871f7 100644 --- a/flask_security/templates/security/logins/new.html +++ b/flask_security/templates/security/logins/new.html @@ -1,3 +1,5 @@ +{% include "../messages.html" %} +

Login

{{ form.hidden_tag() }} {{ form.email.label }} {{ form.email }}
diff --git a/flask_security/templates/security/messages.html b/flask_security/templates/security/messages.html new file mode 100644 index 0000000..788a413 --- /dev/null +++ b/flask_security/templates/security/messages.html @@ -0,0 +1,9 @@ +{%- with messages = get_flashed_messages(with_categories=true) -%} + {% if messages %} + + {% endif %} +{%- endwith %} \ No newline at end of file diff --git a/flask_security/templates/security/passwords/edit.html b/flask_security/templates/security/passwords/edit.html index 0c3ea67..a0a3ec9 100644 --- a/flask_security/templates/security/passwords/edit.html +++ b/flask_security/templates/security/passwords/edit.html @@ -1,3 +1,5 @@ +{% include "../messages.html" %} +

Change password

{{ reset_password_form.hidden_tag() }} {{ reset_password_form.password.label }} {{ reset_password_form.password }}
diff --git a/flask_security/templates/security/passwords/new.html b/flask_security/templates/security/passwords/new.html index c8f6a17..af174f3 100644 --- a/flask_security/templates/security/passwords/new.html +++ b/flask_security/templates/security/passwords/new.html @@ -1,3 +1,5 @@ +{% include "../messages.html" %} +

Send reset password instructions

{{ forgot_password_form.hidden_tag() }} {{ forgot_password_form.email.label }} {{ forgot_password_form.email }} diff --git a/flask_security/templates/security/registrations/edit.html b/flask_security/templates/security/registrations/edit.html index a37845e..5c2f24b 100644 --- a/flask_security/templates/security/registrations/edit.html +++ b/flask_security/templates/security/registrations/edit.html @@ -1,3 +1,5 @@ +{% include "../messages.html" %} +

Edit account

{{ edit_user_form.hidden_tag() }} {{ edit_user_form.email.label }} {{ edit_user_form.email }}
diff --git a/flask_security/templates/security/registrations/new.html b/flask_security/templates/security/registrations/new.html index c9d7bf7..dc0fdd8 100644 --- a/flask_security/templates/security/registrations/new.html +++ b/flask_security/templates/security/registrations/new.html @@ -1,3 +1,5 @@ +{% include "../messages.html" %} +

Register

{{ register_user_form.hidden_tag() }} {{ register_user_form.email.label }} {{ register_user_form.email }}