diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-16 23:27:12 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-16 23:27:12 +0100 |
commit | f123729ed492f70de3db35c042874e5750bbea72 (patch) | |
tree | 6f303cd679992c4812b6ab6dae0fb4b950b68177 /src/jwebmail/templates | |
parent | 84d7234b661a161e198206bba45cbe077c9da33e (diff) |
properly implement move and remove
added add_folder method to jwebmail api
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 %} |