More css/html cleanups; Sort user table by games, tests, status

This commit is contained in:
AndyGrant committed 2019-10-22 02:40:26 -04:00
1 parent c1fed08793
commit 3b574fb62a
6 files changed
+17 -18

No files matched your search

+2 -3
View File
@@ -36,7 +36,7 @@ a:link, a:visited, a:hover, a:active {
}
#content label {
width: 150px;
width: 120px;
font-weight:bold;
text-align: right;
display: inline-block;
@@ -249,7 +249,7 @@ a:link, a:visited, a:hover, a:active {
}
#content form h3 {
margin-left: 160px;
margin-left: 130px;
margin-bottom: 0px;
color: #00CCFF;
}
@@ -262,7 +262,6 @@ a:link, a:visited, a:hover, a:active {
#content form #right-settings {
float: left;
padding-bottom: 4px;
padding-left: 32px;
}
#content #test-mode-buttons button {
+1 -1
View File
@@ -242,7 +242,7 @@ def viewUser(request, username, page=0):
def users(request):
# Build context dictionary for template
data = {'profiles' : Profile.objects.order_by('-games')}
data = {'profiles' : Profile.objects.order_by('-games', '-tests', '-enabled')}
return render(request, 'users.html', data)
def machines(request):
+7 -7
View File
@@ -84,7 +84,7 @@
</div>
<div id="right-settings">
<h3> Game Settings </h3>
<label> Opening Book </label>
<label> Book </label>
<select name="bookname">
{% for name, data in config.books.items %}
{% if data.default %}
@@ -94,13 +94,8 @@
{% endif %}
{% endfor %}
</select></br>
<label> Time Control </label>
<label> Time </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 </label>
<input value="{{config.sprt.elolower}}" name="elolower"></br>
@@ -110,6 +105,11 @@
<input value="{{config.sprt.alpha}}" name="alpha"></br>
<label> Beta </label>
<input value="{{config.sprt.beta}}" name="beta"></br>
<h3> Test Settings </h3>
<label> Priority </label>
<input value="0" name="priority"></br>
<label> Throughput </label>
<input value="1000" name="throughput"></br>
</div>
<br><input type="submit" name="submit" value="Create Engine Test"><br>
</form>
+4 -4
View File
@@ -18,25 +18,25 @@
{% endfor %}
</select>
<br>
<label> Show Greens </label>
<label> Show Passed </label>
<select name="showgreens">
<option selected value="True">True</option>
<option value="False">False</option>
</select>
<br>
<label> Show Yellows </label>
<label> Show Failed </label>
<select name="showyellows">
<option selected value="True">True</option>
<option value="False">False</option>
</select>
<br>
<label> Show Reds </label>
<label> Show Neutral </label>
<select name="showreds">
<option selected value="True">True</option>
<option value="False">False</option>
</select>
<br>
<label> Show Unfinished </label>
<label> Show Stopped </label>
<select name="showunfinished">
<option value="True">True</option>
<option selected value="False">False</option>
+2 -2
View File
@@ -9,8 +9,8 @@
<tr>
<th>Username</th>
<th>Last Seen On</th>
<th>Games</th>
<th>Tests</th>
<th class="numeric">Games</th>
<th class="numeric">Tests</th>
<th>Enabled</th>
<th>Approver</th>
</tr>
+1 -1
View File
@@ -16,7 +16,7 @@
<label>New Password</label>
<input type="password" name="password1">
</br>
<label>Verify Password</label>
<label>New Password</label>
<input type="password" name="password2">
</br>
<label>Source Repo</label>