summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/_top_nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail/templates/_top_nav.html')
-rw-r--r--src/jwebmail/templates/_top_nav.html23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/jwebmail/templates/_top_nav.html b/src/jwebmail/templates/_top_nav.html
index 4c8bdb7..c94918c 100644
--- a/src/jwebmail/templates/_top_nav.html
+++ b/src/jwebmail/templates/_top_nav.html
@@ -1,17 +1,18 @@
<div class="columns">
- <form class=column method=GET
- action="{{ url_for(
- 'displayheaders',
- folder=request.view_args.folder,
- per_page=request.args.get('per_page')
- ) }}">
-
+ <form class=column>
<div class=field>
<div class=control>
- <input type=search name=search size=8 class=input placeholder="{{ gettext('Search') }}" />
+ <input type=search name=search size=8 class=input value="{{ request.args.search }}"
+ placeholder="{{ gettext('Search') }}" />
</div>
</div>
+ {% if request.args.per_page %}
+ <input type=hidden name=per_page value="{{ request.args.per_page }}"/>
+ {% endif %}
+ {% if request.args.sort %}
+ <input type=hidden name=sort value="{{ request.args.sort }}"/>
+ {% endif %}
</form>
<form class=column>
@@ -31,6 +32,12 @@
</label>
</div>
</div>
+ {% if request.args.per_page %}
+ <input type=hidden name=per_page value="{{ request.args.per_page }}"/>
+ {% endif %}
+ {% if request.args.search %}
+ <input type=hidden name=search value="{{ request.args.search }}"/>
+ {% endif %}
</form>
<div class=column>