Skip to content

Commit 21b26c3

Browse files
committed
Add search link
Fixes #392
1 parent 53578da commit 21b26c3

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

web/nuremberg/search/templates/search/new-advanced-search.html

+5-18
Original file line numberDiff line numberDiff line change
@@ -1210,23 +1210,19 @@
12101210
});
12111211

12121212
$('#id_defendant').select2({
1213-
placeholder: 'Choose one...',
1214-
multiple: false,
1213+
placeholder: 'Match any...',
12151214
});
12161215

12171216
$('#id_trial').select2({
1218-
placeholder: 'Choose one...',
1219-
multiple: false,
1217+
placeholder: 'Match any...',
12201218
});
12211219

12221220
$('#id_language').select2({
1223-
placeholder: 'Choose one...',
1224-
multiple: false,
1221+
placeholder: 'Match any...',
12251222
});
12261223

12271224
$('#id_source').select2({
1228-
placeholder: 'Choose one...',
1229-
multiple: false,
1225+
placeholder: 'Match any...',
12301226
});
12311227

12321228
// clear the selection when button pressed
@@ -1256,6 +1252,7 @@
12561252

12571253
<section id="search" role="search" aria-label="Search the archive" class="theme-beige thin">
12581254
<h1 class="h4">Search the archive &mdash; Advanced</h1>
1255+
<a href="{% url 'search:help' %}" style="float: right;">Search Help</a>
12591256
<div class="full-width" style="height: 100%">
12601257
<div class="advanced-search-help">
12611258

@@ -1268,7 +1265,6 @@ <h1 class="h4">Search the archive &mdash; Advanced</h1>
12681265
{% endfor %}
12691266

12701267
<form class="advanced-search" role="search" aria-label="advanced search" action="{% url 'search:advanced' %}" method="POST">
1271-
<h3>Main Search Criteria</h3>
12721268
<p>{% trans 'Match all entered search terms below' %}</p>
12731269
<p style="margin-top: 10px; margin-bottom: 10px">
12741270
<label style="margin-right: 50px;">Search Type:</label>
@@ -1290,12 +1286,6 @@ <h3>Main Search Criteria</h3>
12901286
</label>
12911287
</p>
12921288
{% for field in form %}
1293-
{% if field.name == "author" %}
1294-
<h3>The options below here are AND or ORed</h3>
1295-
{% endif %}
1296-
{% if field.name == "defendant" %}
1297-
<h3>The options below here are ORed</h3>
1298-
{% endif %}
12991289
{% if field.name != 'evidence' and field.name != 'exhibit' and field.name != 'book' and field.name != 'm' and '_' not in field.name %}
13001290
<div class="{% if field.errors %}has-error{% endif %}">
13011291
<p style="display: inline-flex">
@@ -1335,9 +1325,6 @@ <h3>The options below here are ORed</h3>
13351325
{% endif %}
13361326
{% endfor %}
13371327

1338-
<div style="margin-top: 50px">
1339-
<h3>Additional Options</h3>
1340-
</div>
13411328
<div class="{% if form.evidence.errors %}has-error{% endif %}">
13421329
<p>
13431330
<label for="id_{{ form.evidence.name }}" class="help-label" data-content_id="adv-help-{{ form.evidence.name }}">

0 commit comments

Comments
 (0)