88 lines
2.6 KiB
HTML
88 lines
2.6 KiB
HTML
{% extends "idtracker/base.html" %}
|
|
|
|
{% block title %}-- Search{% endblock %}
|
|
|
|
{% block idcontent %}
|
|
|
|
{# does this belong here or is it better in the head? #}
|
|
<script language="javascript">
|
|
function clear_fields() {
|
|
document.search_form.search_job_owner.selectedIndex=0;
|
|
document.search_form.search_status_id.selectedIndex=0;
|
|
document.search_form.search_area_acronym.selectedIndex=0;
|
|
document.search_form.search_cur_state.selectedIndex=0;
|
|
document.search_form.sub_state_id.selectedIndex=0;
|
|
document.search_form.search_group_acronym.value = "";
|
|
document.search_form.search_filename.value = "";
|
|
document.search_form.search_rfcnumber.value = "";
|
|
return true;
|
|
}
|
|
</script>
|
|
|
|
<form action="." method="GET" name="search_form">
|
|
|
|
<center>
|
|
{% if searching %}
|
|
{% else %}
|
|
<img src="https://www.ietf.org/images/ietflogo2e.gif" border=0><br>
|
|
<h1>IETF I-D TRACKER</h1>
|
|
{% endif %}
|
|
|
|
<table cellpadding="1" cellspacing="0" border="0">
|
|
<tr bgcolor="silver">
|
|
<th colspan="2">I-D - Search Criteria</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right"><label for="id_search_job_owner"><b>Responsible
|
|
AD:</b></label></td>
|
|
<td>{{ form.search_job_owner }} <label for="id_search_group_acronym">
|
|
<b>WG Acronym:</b></label>{{ form.search_group_acronym }} <label
|
|
for="id_search_status_id"><b>Status:</b></label>
|
|
{{ form.search_status_id }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right"><label for="id_search_cur_state"><b>Document
|
|
State:</b></label></td>
|
|
<td>{{ form.search_cur_state }} <label for="id_sub_state_id"><b>sub
|
|
state</b>: {{ form.sub_state_id }}</label> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="right"><label for=
|
|
"id_search_filename"><b>Filename:</b></label></td>
|
|
<td>{{ form.search_filename }} <label for=
|
|
"id_search_rfcnumber"><b>RFC Number:</b></label> {{ form.search_rfcnumber }}
|
|
<label for="id_search_area_acronym"><b>Area:</b></label>
|
|
{{ form.search_area_acronym }}</td>
|
|
</tr>
|
|
|
|
<TR BGCOLOR="silver">
|
|
<TD ALIGN="CENTER" colspan="2"><INPUT TYPE="submit" VALUE="SEARCH" name="search_button">
|
|
<input type="button" value="Clear Fields" onClick="clear_fields();">
|
|
</TD>
|
|
|
|
</TR>
|
|
</table>
|
|
</form>
|
|
|
|
<HR>
|
|
Document States: <a href="https://datatracker.ietf.org/state_diagram.gif">State Diagram</a> and
|
|
<a href="https://datatracker.ietf.org/public/states_table.cgi">State Explanations</a>
|
|
|
|
</center>
|
|
|
|
<hr>
|
|
{% if matches %}
|
|
<b>Search Result</b><br>
|
|
{% regroup matches by docstate as grouped %}
|
|
{% include "idtracker/search_result_table.html" %}
|
|
{% else %}
|
|
{% if searching %}
|
|
<p>No matches to your query.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|