summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/search/boolean-charts.html.tmpl23
1 files changed, 18 insertions, 5 deletions
diff --git a/template/en/default/search/boolean-charts.html.tmpl b/template/en/default/search/boolean-charts.html.tmpl
index 33d5df910..b90f5f1b6 100644
--- a/template/en/default/search/boolean-charts.html.tmpl
+++ b/template/en/default/search/boolean-charts.html.tmpl
@@ -71,6 +71,8 @@
<script type="text/javascript">
TUI_alternates['custom_search_query'] = '&#9658;';
TUI_hide_default('custom_search_query');
+ TUI_alternates['custom_search_advanced'] = "Show Advanced Features";
+ TUI_hide_default('custom_search_advanced');
</script>
<script type="text/javascript" src="js/custom-search.js"></script>
</div>
@@ -82,7 +84,8 @@
[% IF !top_level_any_shown %]
[% INCLUDE any_all_select
- name = "j_top" id = "j_top" selected = default.j_top.0 %]
+ name = "j_top" selected = default.j_top.0
+ with_advanced_link = 1 %]
[% top_level_any_shown = 1 %]
[% END %]
@@ -96,22 +99,26 @@
[% IF previous_condition.f == "OP" %]
[% INCLUDE any_all_select
- name = "j" _ (cond_num - 1) id = "j" _ (cond_num - 1)
+ name = "j" _ (cond_num - 1)
selected = previous_condition.j %]
[% END %]
[% IF with_buttons %]
- <button id="op_button" type="button"
+ <button id="op_button" type="button" class="custom_search_advanced"
title="Start a new group of criteria, including this row"
onclick="custom_search_open_paren()">(</button>
[% END %]
[% UNLESS condition.f == "CP" %]
- <span class="custom_search_not_container"
+ [%# This only gets hidden via custom_search_advanced if it isn't set. %]
+ <span id="custom_search_not_container_[% cond_num FILTER html %]"
+ class="custom_search_not_container
+ [%- ' custom_search_advanced' UNLESS condition.n %]"
title="Search for the opposite of the criteria here">
<input type="checkbox" id="n[% cond_num FILTER html %]"
class="custom_search_form_field"
name="n[% cond_num FILTER html %]" value="1"
+ onclick="custom_search_not_changed([% cond_num FILTER js %])"
[% ' checked="checked"' IF condition.n %]>
<label for="n[% cond_num FILTER html %]">Not</label>
</span>
@@ -163,10 +170,16 @@
[% BLOCK any_all_select %]
<div class="any_all_select">
- <select name="[% name FILTER html %]" [% "id=\"$id\"" IF id %]>
+ <select name="[% name FILTER html %]" id="[% name FILTER html %]">
<option value="AND">Match ALL of the following:</option>
<option value="OR" [% ' selected="selected"' IF selected == "OR" %]>
Match ANY of the following:</option>
</select>
+ [% IF with_advanced_link %]
+ <a id="custom_search_advanced_controller"
+ href="javascript:TUI_toggle_class('custom_search_advanced')">
+ Hide Advanced Features
+ </a>
+ [% END %]
</div>
[% END %]