forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_form.html
More file actions
186 lines (186 loc) · 9.78 KB
/
search_form.html
File metadata and controls
186 lines (186 loc) · 9.78 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load widget_tweaks %}
{% load ietf_filters %}
<form id="search_form"
class="form-horizontal"
action="{% url 'ietf.doc.views_search.search' %}">
{% csrf_token %}
<div class="input-group search_field">
{{ form.name|add_class:"form-control"|attr:"placeholder:Document name/title/RFC number" }}
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">
<i class="bi bi-search"></i>
Search
</button>
</span>
</div>
{{ form.sort }}
<div class="accordion pt-3" id="search-accordion">
<div class="accordion-item">
<h2 class="accordion-header" id="search-heading">
<button class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#search-collapse"
aria-expanded="false"
aria-controls="search-collapse">
Additional search criteria
</button>
</h2>
<div id="search-collapse"
class="accordion-collapse collapse"
aria-labelledby="search-heading"
data-bs-parent="#search-accordion">
<div class="accordion-body">
<div class="row mb-3 search_field">
<div class="col-sm-4">
<label class="form-label fw-bold">Document Type</label>
</div>
<div class="col-sm-8">
<div class="form-check">
{{ form.rfcs|add_class:"form-check-input" }}
<label class="form-check-label" for="id_rfcs">RFC</label>
</div>
<div class="form-check">
{{ form.activedrafts|add_class:"form-check-input" }}
<label class="form-check-label" for="id_activedrafts">Internet-Draft (active)</label>
</div>
<div class="form-check">
{{ form.olddrafts|add_class:"form-check-input advdoctype" }}
<label class="form-check-label" for="id_olddrafts">Internet-Draft (expired, replaced or withdrawn)</label>
</div>
{% for value, label in form.fields.doctypes.choices %}
<div class="form-check">
<input type="checkbox"
class="form-check-input"
{% if value in form.doctypes.value %}checked{% endif %}
name="doctypes"
value="{{ value }}"
id="id_doctypes_{{ value }}">
<label class="form-check-label" for="id_doctypes_{{ value }}">{{ label|safe|capfirst_allcaps }}</label>
</div>
{% endfor %}
</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="author"
{% if form.by.value == "author" %}checked{% endif %}
id="author">
<label for="author" class="form-check-label fw-bold">Author or Affiliation Name</label>
</div>
</div>
<div class="col-sm-8">{{ form.author|add_class:"form-control" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="group"
{% if form.by.value == "group" %}checked{% endif %}
id="group">
<label for="group" class="form-check-label fw-bold">WG</label>
</div>
</div>
<div class="col-sm-8">{{ form.group|add_class:"form-control" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="area"
{% if form.by.value == "area" %}checked{% endif %}
id="area">
<label for="area" class="form-check-label fw-bold">Area</label>
</div>
</div>
<div class="col-sm-8">{{ form.area|add_class:"form-select" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="ad"
{% if form.by.value == "ad" %}checked{% endif %}
id="areadir">
<label for="areadir" class="form-check-label fw-bold">AD</label>
</div>
</div>
<div class="col-sm-8">{{ form.ad|add_class:"form-select" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="state"
{% if form.by.value == "state" %}checked{% endif %}
id="state">
<label for="state" class="form-check-label fw-bold">IESG State</label>
</div>
</div>
<div class="col-sm-4">{{ form.state|add_class:"form-select col-sm-4" }}</div>
<div class="col-sm-4">{{ form.substate|add_class:"form-select" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="irtfstate"
{% if form.by.value == "irtfstate" %}checked{% endif %}
id="irtfstate">
<label for="irtfstate" class="form-check-label fw-bold">IRTF State</label>
</div>
</div>
<div class="col-sm-8">{{ form.irtfstate|add_class:"form-select" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4">
<div class="form-check">
<input type="radio"
class="form-check-input"
name="by"
value="stream"
{% if form.by.value == "stream" %}checked{% endif %}
id="stream">
<label for="stream" class="form-check-label fw-bold">Stream</label>
</div>
</div>
<div class="col-sm-8">{{ form.stream|add_class:"form-select" }}</div>
</div>
<div class="row mb-3 search_field">
<div class="col-sm-4 d-grid">
<button class="btn btn-primary" type="submit">
<i class="bi bi-search"></i>
Search
</button>
</div>
<div class="offset-sm-4 col-sm-4 d-grid">
<button class="btn btn-secondary" type="reset">Clear</button>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
<p class="text-center pt-3">
<a href="https://www.ietf.org/search">Search page for www.ietf.org website</a>
|
<a href="https://mailarchive.ietf.org">Search page for IETF mail list archives</a>
</p>