ail-framework/var/www/modules/dashboard/templates/searchbox.html

18 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2014-12-24 14:42:20 +00:00
<div class="input-group custom-search-form">
2018-09-26 09:59:51 +00:00
<form action="{{ url_for('searches.search') }}" id="form-search" method=POST>
2018-06-05 14:58:04 +00:00
<input type="text" name="query" class="form-control" placeholder="Search Paste">
<input type="hidden" name="index_name" class="form-control" value="0" placeholder="Index Name">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="fa fa-search"></i>
</button>
<img id="loading-gif" src="{{url_for('static', filename='image/loading.gif') }}" height="26" width="26" style="margin: 4px; visibility: hidden;">
2014-12-24 14:42:20 +00:00
</form>
</span>
</div>
2018-06-05 14:58:04 +00:00
<script>
$("#form-search").submit(function( event ) {
$("#loading-gif").css("visibility", "visible");
});
</script>