diff options
Diffstat (limited to 'src/jwebmail/templates')
-rw-r--r-- | src/jwebmail/templates/_bot_nav.html | 4 | ||||
-rw-r--r-- | src/jwebmail/templates/_top_nav.html | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/jwebmail/templates/_bot_nav.html b/src/jwebmail/templates/_bot_nav.html index d92d467..03cb939 100644 --- a/src/jwebmail/templates/_bot_nav.html +++ b/src/jwebmail/templates/_bot_nav.html @@ -43,7 +43,7 @@ <div class="column"> {% if mail_folders|length > 1 %} - <form action="{{ url_for('move', folder=folder) }}" id="move-mail" class=is-pulled-left method=POST> + <form action="{{ url_for('move', folder=request.view_args.folder) }}" id="move-mail" class=is-pulled-left method=POST> <input type=hidden name=csrf_token value="{{ csrf_token() }}"> {% for k, v in request.args.items() if v %} <input type=hidden name="{{ k }}" value="{{ v }}"> @@ -67,7 +67,7 @@ </form> {% endif %} - <form action="{{ url_for('remove', folder=folder) }}" id="remove-mail" + <form action="{{ url_for('remove', folder=request.view_args.folder) }}" id="remove-mail" method=POST class="is-pulled-left ml-2"> <input type=hidden name=csrf_token value="{{ csrf_token() }}"> diff --git a/src/jwebmail/templates/_top_nav.html b/src/jwebmail/templates/_top_nav.html index a9d385b..4c8bdb7 100644 --- a/src/jwebmail/templates/_top_nav.html +++ b/src/jwebmail/templates/_top_nav.html @@ -1,9 +1,15 @@ <div class="columns"> - <form class=column> + <form class=column method=GET + action="{{ url_for( + 'displayheaders', + folder=request.view_args.folder, + per_page=request.args.get('per_page') + ) }}"> + <div class=field> <div class=control> - <input type=search id=search size=8 class=input placeholder="{{ gettext('Search') }}" /> + <input type=search name=search size=8 class=input placeholder="{{ gettext('Search') }}" /> </div> </div> </form> |