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

+34 -4
View File
@@ -26,7 +26,7 @@ a:link, a:visited, a:hover, a:active {
#sidebar .header {
font-weight: bold;
color: #008888;
color: #00CCFF;
}
#content {
@@ -36,8 +36,9 @@ a:link, a:visited, a:hover, a:active {
}
#content label {
width: 180px;
width: 150px;
font-weight:bold;
text-align: right;
display: inline-block;
}
@@ -47,7 +48,7 @@ a:link, a:visited, a:hover, a:active {
margin: 2px 0px;
display: inline-block;
vertical-align: middle;
width: 400px;
width: 320px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
@@ -245,4 +246,33 @@ a:link, a:visited, a:hover, a:active {
text-align: center;
font-weight: bold;
font-size: 20px;
}
}
#content form h3 {
margin-left: 160px;
margin-bottom: 0px;
color: #00CCFF;
}
#content form #left-settings {
float: left;
padding-bottom: 4px;
}
#content form #right-settings {
float: left;
padding-bottom: 4px;
padding-left: 32px;
}
#content #test-mode-buttons button {
width: 49.8%;
}
#content #test-mode-buttons .left-floated {
float: left;
}
#content #test-mode-buttons .right-floated {
float: right;
}
+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 %}