| {% extends "base.html" %} |
| <form id="form-inline" action="{{ url_for ('search') }}" method="GET"> |
| <input type="text" class="form-control" name="q" required="" |
| value="{% if q %} {{ q }} {% endif %}"> |
| <select name="ql" id="queryLanguage" style="margin:auto 5pt;"> |
| {% for key, value in lang.iteritems() %} |
| <option value="{{ key }}" |
| {% if ql== key %}selected="selected" {% endif %}>{{ value }} |
| <button type="submit" id="search" class="btn btn-primary">Search |
| {% include 'flash_messages.html' %} |
| <a href="#" id="show" style="font-weight:bold;" |
| title="Display raw JSON">Found {{ result.totalResults | default("0") }} matches</a> |
| <pre id="message" class="i-layout" style="display:none;"> |
| {{ result_string | safe }} |
| {% for entry in result.matches %} |