-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsearch.html
89 lines (86 loc) · 3.01 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{% extends 'bacterial_genome_annotation/Base.html' %}
{% load mytags %}
{% load static %}
{% block content %}
<div class="backgroundPage">
<div class="searchAlign">
<div class="searchPage">
<div class="container">
<form action="" method="GET" novalidate>
{{ typeForm.as_p }}
</form>
<!-- </div> -->
<br/>
</div>
<div class="container">
<form action="" method="POST" novalidate>
{% csrf_token %}
{{ form.as_p }}
<input
class="btn btn-secondary"
type="submit"
value="Rechercher"
id="Recherche"
/>
</form>
<br/>
</div>
</div>
</div>
<table>
<thead>
<tr>
<th colspan="2">Query</th>
</tr>
</thead>
<tbody>
{% for seq in page_obj_sequences.object_list %}
<tr>
<td>
<a
id="QuerySequence"
class="form-control"
href="{% url 'sequence' id=seq.id %}"
>
{{ seq.id }} - {{ seq.genome.id|replaceWithSpace:"_" }}</a
>
</td>
</tr>
{% endfor %}
{% for gen in page_obj_genomes.object_list %}
<tr>
<td>
<a
id="QuerySequence"
class="form-control"
href="{% url 'genome' id=gen.id %}"
>
{{ gen.id|replaceWithSpace:"_" }}</a
>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="pagination">
<span class="step-links">
<a>«</a>
{% if page_obj.has_previous %}
<a href="?{% param_replace page=1 %}">first</a>
<a href="?{% param_replace page=page_obj.previous_page_number %}"
>previous</a
>
{% endif %}
<span class="current">
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
</span>
{% if page_obj.has_next %}
<a href="?{% param_replace page=page_obj.next_page_number %}">next</a>
<a href="?{% param_replace page=page_obj.paginator.num_pages %}">last</a>
{% endif %}
<a>»</a>
</span>
</div>
</div>
</div>
{% endblock %}