new: Search field on index

pull/12/head
Raphaël Vinot 2018-04-11 15:55:46 +02:00
parent bf2da80e96
commit 823a83a9cd
1 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@
<center> <center>
<h1>BGP Ranking</h1></br></br> <h1>BGP Ranking</h1></br></br>
</center> </center>
<form action="{{ url_for('asn_details', asn=asn) }}" method=get>
ASN to search: <input type=number name=asn>
<input type="submit" value="Search">
</form>
<table class="table"> <table class="table">
<tr> <tr>
<th>ASN</th> <th>ASN</th>
@ -13,7 +17,7 @@
</tr> </tr>
{% for asn, rank in ranks %} {% for asn, rank in ranks %}
<tr> <tr>
<td><a href="{{ url_for('asn', asn=asn) }}">{{ asn }}</a></td> <td><a href="{{ url_for('asn_details', asn=asn) }}">{{ asn }}</a></td>
<td>{{ rank }}</td> <td>{{ rank }}</td>
</tr> </tr>
{% endfor %} {% endfor %}