logout: Move logout form from the ".app" div to the body.

The hidden logout form facilitates logging out from the app by providing
a form with the CSRF token required for the csrf_token protection in
Jinja2.

This commit moves this form from the ".app" div to the body,
where it is more appropriately placed in the DOM.

This is a prep commit for #27550.
This commit is contained in:
Sayam Samal 2023-11-09 00:31:20 +05:30 committed by Tim Abbott
parent 929d34ccd7
commit db6246fcc7
1 changed files with 5 additions and 4 deletions

View File

@ -279,9 +279,10 @@
<div class="column-right" id="right-sidebar-container"> <div class="column-right" id="right-sidebar-container">
</div><!--/right sidebar--> </div><!--/right sidebar-->
</div><!--/row--> </div><!--/row-->
<div class="hidden"> </div>
<form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
</form> <div class="hidden">
</div> <form id="logout_form" action="/accounts/logout/" method="POST">{{ csrf_input }}
</form>
</div> </div>
{% endblock %} {% endblock %}