/
search.html
39 lines (29 loc) · 1.21 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "base.html" %}
{% load bootstrap %}
{% block extrascript %}
<script>
jQuery(document).ready(function () {
var suggestions_project_numbers = {{suggestions_project_numbers|safe}};
$('#id_project_id').typeahead({source: suggestions_project_numbers, items: 5})
});
</script>
{% endblock %}
{% block title %} PAVE Search{% endblock %}
{% block content %}
<h1>Search</h1>
<!-- To customize form UI see https://docs.djangoproject.com/en/dev/topics/forms/ -->
<p>Each field is "AND"-ed with the others, so you can -- for example
-- find projects which are Approved <em>AND</em> at HQ.</p>
<p>You can multi-select Centers and Project Statuses. Multiselected fields are "OR"-ed so you can find projects at HQ <em>OR</em> GSFC.<p>
<p>Specify the singular Date, or the pair of Date start and Date end.
(Yeah, this is a hack: we need to understand the use case.)</p>
<form id="search" method="POST" action="." class="well form-horizontal">{% csrf_token %}
{#<table>#}
{# {{ form.as_table }} <!-- also: as_p, as_ul --> #}
{#{ form|bootstrap }#}
{#</table>#}
{{form.as_p}}
<br/>
<button type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i> Search</button>
</form>
{% endblock %}