From 775da385f91c1f6743faf27fdddd314c4e3b28b9 Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 12 Jul 2022 22:45:04 +0200 Subject: [PATCH] rename logout form to match actual meaning --- ihatemoney/forms.py | 2 +- ihatemoney/templates/layout.html | 4 ++-- ihatemoney/web.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 672102ab..315a2ab7 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -443,7 +443,7 @@ class InviteForm(FlaskForm): ) -class ConfirmLogoutForm(FlaskForm): +class LogoutForm(FlaskForm): submit = SubmitField(_("Logout")) diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index dc9ea4bf..6767ee8c 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -120,8 +120,8 @@ {% endif %}
  • - {{ g.confirm_logout_form.hidden_tag() }} - {{ g.confirm_logout_form.submit(class="dropdown-item") }} + {{ g.logout_form.hidden_tag() }} + {{ g.logout_form.submit(class="dropdown-item") }}
  • diff --git a/ihatemoney/web.py b/ihatemoney/web.py index aab47a48..46d7146c 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -40,12 +40,12 @@ from ihatemoney.emails import send_creation_email from ihatemoney.forms import ( AdminAuthenticationForm, AuthenticationForm, - ConfirmLogoutForm, DestructiveActionProjectForm, EditProjectForm, EmptyForm, ImportProjectForm, InviteForm, + LogoutForm, MemberForm, PasswordReminder, ProjectForm, @@ -123,7 +123,7 @@ def set_show_admin_dashboard_link(endpoint, values): current_app.config["ACTIVATE_ADMIN_DASHBOARD"] and current_app.config["ADMIN_PASSWORD"] ) - g.confirm_logout_form = ConfirmLogoutForm() + g.logout_form = LogoutForm() @main.url_value_preprocessor @@ -542,7 +542,7 @@ def exit(): if request.method == "GET": abort(405) - form = ConfirmLogoutForm() + form = LogoutForm() if form.validate(): # delete the session session.clear()