-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
67 lines (67 loc) · 2.1 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<head>
<script type="text/javascript">
function email_blank()
{
document.email.email.value="";
}
function make_blank()
{
document.search.q.value ="";
}
</script>
</head>
<body>
<div class="title">
<div class="logo">
</div>
<div class="search">
<form action="/search/" name="search"method="get">
<input type="text" size="50" name="q" value={{ query }} onclick="make_blank()">
<input type="submit" value="Search">
</form>
</div>
</div>
{% if results %}
<p>Found {{ results|length }} trial{{ results|pluralize }}.</p>
<ul>
{% for result in results %}
<li><a href="/trial/{{ result.trial_id }}">{{ result.trial_id }}</a></li>
{% ifnotequal result.brief_title "NULL" %}
<li>{{ result.brief_title }}</li>
{% else %}
{% ifnotequal result.official_title "NULL" %}
<li>{{ result.official_title }}</li>
{% endifnotequal %}
{% endifnotequal %}
<li>{{ result.brief_summary }}</li>
{% if result.elligibility %}
<li>{{ result.elligibility }}</li>
{% endif %}
<li>{{ result.location.city }}</li>
<li>{{ result.lastchanged_date }}</li>
<li>{{ result.detailed_Description }}</li>
<li>{{ result.overall_Status }}</li>
<li>{{ result.phase }}</li>
<li>{{ result.study_type }}</li>
<li></li>
<li></li>
<br>
{% endfor %}
</ul>
{% else %}
<div class="no_results">
<div class="ask_for_email">
<p>There are currently no trials listed for {{ query }}.</p>
<p>If you would like to receive notificications when new trials are announced,
please provide you email address.</p>
<div class="email">
<form action="/notify/" name="email" method="post">
<input type="text" size="30" name="email" value="Enter your email address." onclick="email_blank()">
<input type="submit" value="Submit">
</form>
</div>
</div>
{% endif %}
</body>
</html>