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
+53 -10

No files matched your search

+33 -3
View File
@@ -26,7 +26,7 @@ a:link, a:visited, a:hover, a:active {
#sidebar .header { #sidebar .header {
font-weight: bold; font-weight: bold;
color: #008888; color: #00CCFF;
} }
#content { #content {
@@ -36,8 +36,9 @@ a:link, a:visited, a:hover, a:active {
} }
#content label { #content label {
width: 180px; width: 150px;
font-weight:bold; font-weight:bold;
text-align: right;
display: inline-block; display: inline-block;
} }
@@ -47,7 +48,7 @@ a:link, a:visited, a:hover, a:active {
margin: 2px 0px; margin: 2px 0px;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
width: 400px; width: 320px;
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
@@ -246,3 +247,32 @@ a:link, a:visited, a:hover, a:active {
font-weight: bold; font-weight: bold;
font-size: 20px; 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;
}
+20 -7
View File
@@ -53,6 +53,8 @@
{% block content %} {% block content %}
<form method="POST" action="/newTest/"> <form method="POST" action="/newTest/">
{% csrf_token %} {% csrf_token %}
<div id="left-settings">
<h3> Engine </h3>
<label> Engine Name </label> <label> Engine Name </label>
<select id="enginename" name="enginename" onchange="configure(testMode)"> <select id="enginename" name="enginename" onchange="configure(testMode)">
{% for name, data in config.engines.items %} {% for name, data in config.engines.items %}
@@ -63,20 +65,25 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</select><br> </select><br>
<label> Source </label>
<input value="{{profile.repo}}" name="source"></br>
<h3> DEV SETTINGS </h3>
<label> Dev Branch </label> <label> Dev Branch </label>
<input name="devbranch" autofocus></br> <input name="devbranch" autofocus></br>
<label> Dev Bench </label> <label> Dev Bench </label>
<input name="devbench"></br> <input name="devbench"></br>
<label> Dev Options </label> <label> Dev Options </label>
<input id="devoptions" name="devoptions"></br> <input id="devoptions" name="devoptions"></br>
<h3> BASE SETTINGS </h3>
<label> Base Branch </label> <label> Base Branch </label>
<input value="master" name="basebranch"></br> <input value="master" name="basebranch"></br>
<label> Base Bench </label> <label> Base Bench </label>
<input name="basebench"></br> <input name="basebench"></br>
<label> Base Options </label> <label> Base Options </label>
<input id="baseoptions" name="baseoptions"></br> <input id="baseoptions" name="baseoptions"></br>
<label> Source </label> </div>
<input value="{{profile.repo}}" name="source"></br> <div id="right-settings">
<h3> GAME SETTINGS </h3>
<label> Opening Book </label> <label> Opening Book </label>
<select name="bookname"> <select name="bookname">
{% for name, data in config.books.items %} {% for name, data in config.books.items %}
@@ -89,10 +96,12 @@
</select></br> </select></br>
<label> Time Control </label> <label> Time Control </label>
<input id="timecontrol" name="timecontrol"></br> <input id="timecontrol" name="timecontrol"></br>
<h3> TEST SETTINGS </h3>
<label> Priority </label> <label> Priority </label>
<input value="0" name="priority"></br> <input value="0" name="priority"></br>
<label> Throughput </label> <label> Throughput </label>
<input value="1000" name="throughput"></br> <input value="1000" name="throughput"></br>
<h3> SPRT SETTINGS </h3>
<label> Lower Bound </label> <label> Lower Bound </label>
<input value="{{config.sprt.elolower}}" name="elolower"></br> <input value="{{config.sprt.elolower}}" name="elolower"></br>
<label> Upper Bound </label> <label> Upper Bound </label>
@@ -101,10 +110,14 @@
<input value="{{config.sprt.alpha}}" name="alpha"></br> <input value="{{config.sprt.alpha}}" name="alpha"></br>
<label> Beta </label> <label> Beta </label>
<input value="{{config.sprt.beta}}" name="beta"></br> <input value="{{config.sprt.beta}}" name="beta"></br>
<input type="submit" name="submit" value="Create Engine Test"> </div>
<br><input type="submit" name="submit" value="Create Engine Test"><br>
</form> </form>
<button onClick="configure('stc')">Setup STC</button> <div id="test-mode-buttons">
<button onClick="configure('ltc')">Setup LTC</button><br> <button class="left-floated"onClick="configure('stc')">Setup STC</button>
<button onClick="configure('smpstc')">Setup SMP STC</button> <button class="right-floated"onClick="configure('ltc')">Setup LTC</button><br>
<button onClick="configure('smpltc')">Setup SMP LTC</button> <button class="left-floated"onClick="configure('smpstc')">Setup SMP STC</button>
<button class="right-floated"onClick="configure('smpltc')">Setup SMP LTC</button>
</div>
{% endblock %} {% endblock %}