fix: Enable search on country

pull/12/head
Raphaël Vinot 2018-08-01 18:02:34 +02:00
parent d88c818b67
commit b04fa06d47
1 changed files with 7 additions and 7 deletions

View File

@ -1,16 +1,16 @@
<p> <p>
<form class="form-inline" style="width:250px; display:inline-block;" action="" method=post> <form class="form-group" style="width:250px; display:inline-block;" action="" method=post>
<input name="date" class="form-control my-1 mr-sm-2" type="date" value="{{ date }}"> <input name="date" class="form-control my-1 mr-sm-2" type="date" value="{{ date }}">
<button type="submit" class="btn btn-primary my-1">Set date</button> <button type="submit" class="btn btn-primary my-1">Set date</button>
</form> </form>
<form class="form-inline" style="width:200px; display:inline-block;" action="" method=post> <form class="form-group" style="width:270px; display:inline-block;" action="" method=post>
<select name="ipversion" class="custom-select my-1 mr-sm-2"> <select name="ipversion" class="selectpicker">
<option value="v4" {% if ipversion == 'v4' %} selected="selected"{% endif %}>v4</option> <option value="v4" {% if ipversion == 'v4' %} selected="selected"{% endif %}>v4</option>
<option value="v6" {% if ipversion == 'v6' %} selected="selected"{% endif %}>v6</option> <option value="v6" {% if ipversion == 'v6' %} selected="selected"{% endif %}>v6</option>
</select> </select>
<button type="submit" class="btn btn-primary my-1">IP version</button> <button type="submit" class="btn btn-primary my-1">IP version</button>
</form> </form>
<form class="form-inline" style="width:400px; display:inline-block;" action="" method=post> <form class="form-group" style="width:280px; display:inline-block;" action="" method=post>
<select name="source" class="selectpicker" data-live-search="true" multiple> <select name="source" class="selectpicker" data-live-search="true" multiple>
<option value="_all" data-tokens="all" {% if not source %} selected="selected"{% endif %}>all</option> <option value="_all" data-tokens="all" {% if not source %} selected="selected"{% endif %}>all</option>
{% for s in sources %} {% for s in sources %}
@ -19,12 +19,12 @@
</select> </select>
<input type="submit" class="btn btn-primary my-1"value="Set source"> <input type="submit" class="btn btn-primary my-1"value="Set source">
</form> </form>
<form class="form-inline" style="width:350px; display:inline-block;" action="{{ url_for('asn_details') }}" method=post> <form class="form-group" style="width:270px; display:inline-block;" action="{{ url_for('asn_details') }}" method=post>
<input type=number name=asn class="form-control my-1 mr-sm-2"> <input type=number name=asn class="form-control my-1 mr-sm-2">
<button type="submit" class="btn btn-primary my-1">Search ASN</button> <button type="submit" class="btn btn-primary my-1">Search ASN</button>
</form> </form>
<form class="form-inline"style="width:500px; display:inline-block;" action="{{ url_for('country') }}" method=post> <form class="form-group"style="width:300px; display:inline-block;" action="{{ url_for('country') }}" method=post>
<select name="country" class="selectpicker" multiple> <select name="country" class="selectpicker" data-live-search="true" multiple>
<option value="_all" data-tokens="all" {% if not country %} selected="selected"{% endif %}>all</option> <option value="_all" data-tokens="all" {% if not country %} selected="selected"{% endif %}>all</option>
{% for cc, name in countries %} {% for cc, name in countries %}
<option value="{{ cc }}" data-tokens="{{ cc }} {{ name }}" {% if cc in country %} selected="selected"{% endif %}>{{ name }}</option> <option value="{{ cc }}" data-tokens="{{ cc }} {{ name }}" {% if cc in country %} selected="selected"{% endif %}>{{ name }}</option>