92 lines
3.3 KiB
HTML
92 lines
3.3 KiB
HTML
{% extends "OpenBench/base.html" %}
|
|
|
|
{% block scripts %}
|
|
|
|
function set_default_engine() {
|
|
{% if profile.engine %}
|
|
document.getElementById("engine").value = "{{profile.engine}}";
|
|
{% endif %}
|
|
}
|
|
|
|
document.addEventListener(
|
|
'DOMContentLoaded', function () {
|
|
set_default_engine();
|
|
}, false
|
|
);
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if not tests %}
|
|
|
|
<form method="POST" action="/search/">
|
|
{% csrf_token %}
|
|
|
|
<div class="form">
|
|
<div class="col">
|
|
<div class="row">
|
|
<label>Keywords</label> <input name="keywords"><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Author</label> <input name="author"><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Engine</label>
|
|
<select id="engine" name="engine">
|
|
<option selected value="">ALL</option>
|
|
{% for name, data in config.engines.items %}
|
|
<option value="{{name}}">{{name}}</option>
|
|
{% endfor %}
|
|
</select><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Show Greens</label>
|
|
<select name="showgreens">
|
|
<option selected value="True">True</option>
|
|
<option value="False">False</option>
|
|
</select><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Show Yellows</label>
|
|
<select name="showyellows">
|
|
<option selected value="True">True</option>
|
|
<option value="False">False</option>
|
|
</select><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Show Reds</label>
|
|
<select name="showreds">
|
|
<option selected value="True">True</option>
|
|
<option value="False">False</option>
|
|
</select><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Show Stopped</label>
|
|
<select name="showunfinished">
|
|
<option value="True">True</option>
|
|
<option selected value="False">False</option>
|
|
</select><br>
|
|
</div>
|
|
<div class="row">
|
|
<label>Show Deleted</label>
|
|
<select name="showdeleted">
|
|
<option value="True">True</option>
|
|
<option selected value="False">False</option>
|
|
</select><br>
|
|
</div>
|
|
<input type="submit" class="anchorbutton btn-blue w-100" name="submit" value="Search Tests">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
<table class="test-list stripes hoverable">
|
|
{% for test in tests %}
|
|
{% include "OpenBench/Blocks/testsummary.html" %}
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|