Make the newTest forum more viewable

This commit is contained in:
AndyGrant committed 2019-10-22 01:46:35 -04:00
1 parent 2f789b5a2e
commit ed0b5693c8
2 files changed
+100 -57

No files matched your search

+66 -53
View File
@@ -53,58 +53,71 @@
{% block content %}
<form method="POST" action="/newTest/">
{% csrf_token %}
<label> Engine Name </label>
<select id="enginename" name="enginename" onchange="configure(testMode)">
{% for name, data in config.engines.items %}
{% if data.default %}
<option selected value="{{name}}">{{data.name}}</option>
{% else %}
<option value="{{name}}">{{data.name}}</option>
{% endif %}
{% endfor %}
</select><br>
<label> Dev Branch </label>
<input name="devbranch" autofocus></br>
<label> Dev Bench </label>
<input name="devbench"></br>
<label> Dev Options </label>
<input id="devoptions" name="devoptions"></br>
<label> Base Branch </label>
<input value="master" name="basebranch"></br>
<label> Base Bench </label>
<input name="basebench"></br>
<label> Base Options </label>
<input id="baseoptions" name="baseoptions"></br>
<label> Source </label>
<input value="{{profile.repo}}" name="source"></br>
<label> Opening Book </label>
<select name="bookname">
{% for name, data in config.books.items %}
{% if data.default %}
<option selected value="{{name}}">{{data.name}}</option>
{% else %}
<option value="{{name}}">{{data.name}}</option>
{% endif %}
{% endfor %}
</select></br>
<label> Time Control </label>
<input id="timecontrol" name="timecontrol"></br>
<label> Priority </label>
<input value="0" name="priority"></br>
<label> Throughput </label>
<input value="1000" name="throughput"></br>
<label> Lower Bound </label>
<input value="{{config.sprt.elolower}}" name="elolower"></br>
<label> Upper Bound </label>
<input value="{{config.sprt.eloupper}}" name="eloupper"></br>
<label> Alpha </label>
<input value="{{config.sprt.alpha}}" name="alpha"></br>
<label> Beta </label>
<input value="{{config.sprt.beta}}" name="beta"></br>
<input type="submit" name="submit" value="Create Engine Test">
<div id="left-settings">
<h3> Engine </h3>
<label> Engine Name </label>
<select id="enginename" name="enginename" onchange="configure(testMode)">
{% for name, data in config.engines.items %}
{% if data.default %}
<option selected value="{{name}}">{{data.name}}</option>
{% else %}
<option value="{{name}}">{{data.name}}</option>
{% endif %}
{% endfor %}
</select><br>
<label> Source </label>
<input value="{{profile.repo}}" name="source"></br>
<h3> DEV SETTINGS </h3>
<label> Dev Branch </label>
<input name="devbranch" autofocus></br>
<label> Dev Bench </label>
<input name="devbench"></br>
<label> Dev Options </label>
<input id="devoptions" name="devoptions"></br>
<h3> BASE SETTINGS </h3>
<label> Base Branch </label>
<input value="master" name="basebranch"></br>
<label> Base Bench </label>
<input name="basebench"></br>
<label> Base Options </label>
<input id="baseoptions" name="baseoptions"></br>
</div>
<div id="right-settings">
<h3> GAME SETTINGS </h3>
<label> Opening Book </label>
<select name="bookname">
{% for name, data in config.books.items %}
{% if data.default %}
<option selected value="{{name}}">{{data.name}}</option>
{% else %}
<option value="{{name}}">{{data.name}}</option>
{% endif %}
{% endfor %}
</select></br>
<label> Time Control </label>
<input id="timecontrol" name="timecontrol"></br>
<h3> TEST SETTINGS </h3>
<label> Priority </label>
<input value="0" name="priority"></br>
<label> Throughput </label>
<input value="1000" name="throughput"></br>
<h3> SPRT SETTINGS </h3>
<label> Lower Bound </label>
<input value="{{config.sprt.elolower}}" name="elolower"></br>
<label> Upper Bound </label>
<input value="{{config.sprt.eloupper}}" name="eloupper"></br>
<label> Alpha </label>
<input value="{{config.sprt.alpha}}" name="alpha"></br>
<label> Beta </label>
<input value="{{config.sprt.beta}}" name="beta"></br>
</div>
<br><input type="submit" name="submit" value="Create Engine Test"><br>
</form>
<button onClick="configure('stc')">Setup STC</button>
<button onClick="configure('ltc')">Setup LTC</button><br>
<button onClick="configure('smpstc')">Setup SMP STC</button>
<button onClick="configure('smpltc')">Setup SMP LTC</button>
<div id="test-mode-buttons">
<button class="left-floated"onClick="configure('stc')">Setup STC</button>
<button class="right-floated"onClick="configure('ltc')">Setup LTC</button><br>
<button class="left-floated"onClick="configure('smpstc')">Setup SMP STC</button>
<button class="right-floated"onClick="configure('smpltc')">Setup SMP LTC</button>
</div>
{% endblock %}