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