Update
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
{% block content %}
|
||||
<div class="panel">
|
||||
<h1>Search</h1>
|
||||
<p class="small"><strong>How to search:</strong> Type words or phrases, use wildcards, and choose which fields to search.
|
||||
<br/>Examples: <code>faith</code> finds entries containing “faith”; <code>*faith*</code> uses wildcards; <code>"exact phrase"</code> matches the phrase; multiple words are AND (e.g., <code>faith loyalty</code>).</p>
|
||||
{% if ran_search %}
|
||||
{% if result_count and result_count > 0 %}
|
||||
<div class="flash">Found <strong>{{ result_count }}</strong> matching entries. Opening the first match…</div>
|
||||
{% else %}
|
||||
<div class="flash">No results found for <code>{{ q }}</code> in the selected fields.</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<p class="small"><strong>How to search:</strong> Type words or phrases (quotes for exact), use wildcards, and choose which fields to search.</p>
|
||||
<form method="get" action="/search/">
|
||||
<div class="row">
|
||||
<div>
|
||||
@@ -15,9 +21,7 @@
|
||||
<label>Fields to search</label>
|
||||
<div class="chips">
|
||||
{% for opt in field_options %}
|
||||
<label class="badge">
|
||||
<input type="checkbox" name="{{ opt.name }}" {% if opt.checked %}checked{% endif %}/> {{ opt.label }}
|
||||
</label>
|
||||
<label class="badge"><input type="checkbox" name="{{ opt.name }}" {% if opt.checked %}checked{% endif %}/> {{ opt.label }}</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user