diff options
Diffstat (limited to 'src/jwebmail/templates')
-rw-r--r-- | src/jwebmail/templates/_bot_nav.html | 10 | ||||
-rw-r--r-- | src/jwebmail/templates/displayheaders.html | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/jwebmail/templates/_bot_nav.html b/src/jwebmail/templates/_bot_nav.html index e2be5f5..73a5170 100644 --- a/src/jwebmail/templates/_bot_nav.html +++ b/src/jwebmail/templates/_bot_nav.html @@ -7,8 +7,8 @@ <div class="column"> {% if mail_folders|length > 1 %} - <form href="{{ url_for('move', folder=folder) }}" id='move-mail' class=is-pulled-left> - {{ form.csrf_token }} + <form action="{{ url_for('move', folder=folder) }}" id="move-mail" class=is-pulled-left method=POST> + <input type=hidden name=csrf_token value="{{ csrf_token() }}"> <div class="field has-addons"> <div class=control> <div class=select> @@ -22,16 +22,16 @@ </div> </div> <div class=control> - <input type=submit class=button value="{{ gettext('Move') }}"> + <input id=move type=submit class=button value="{{ gettext('Move') }}"> </div> </div> </form> {% endif %} - <form href="{{ url_for('move', folder=folder) }}" id="remove-mail" + <form action="{{ url_for('remove', folder=folder) }}" id="remove-mail" method=POST class="is-pulled-left ml-2"> - {{ from.csrf_token }} + <input type=hidden name=csrf_token value="{{ csrf_token() }}"> <div class=control> <input id=remove type=submit class=button value="{{ gettext('Remove') }}"> </div> diff --git a/src/jwebmail/templates/displayheaders.html b/src/jwebmail/templates/displayheaders.html index 36a1f68..47bb587 100644 --- a/src/jwebmail/templates/displayheaders.html +++ b/src/jwebmail/templates/displayheaders.html @@ -7,6 +7,8 @@ </script> <script src="{{ url_for('static', filename='src/dh-submit-sort-on-change.js') }}" defer> </script> + <script src="{{ url_for('static', filename='src/dh-move-submit.js') }}" defer> + </script> <script src="{{ url_for('static', filename='src/localtime.js') }}" defer> </script> {% endblock %} |