summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 1b1ada2..07a4510 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -198,9 +198,6 @@
{% macro query_option(options, selected) -%}
<span style="color: rgba(0,0,0,0.4);">{{ _(options.label) }}</span>
<div class="ui link list" style="margin-top: 0.3em;">
- {% if selected %}
- <input form="search_form" type="hidden" name="{{ options.slug }}" value="{{ selected }}">
- {% endif %}
{% for opt in options.list %}
<button class="text-button" form="search_form" type="submit" name="{{ options.slug }}" value="{{ opt.slug }}">
{% if selected == opt.slug or (not selected and opt.slug == options.default) %}
@@ -217,3 +214,9 @@
</div>
<br>
{% endmacro %}
+
+{% macro query_hidden(options, selected) -%}
+{% if selected %}
+ <input form="search_form" type="hidden" name="{{ options.slug }}" value="{{ selected }}">
+{% endif %}
+{% endmacro %}