Updated, hopefully good for the jam!
This commit is contained in:
@@ -1,22 +1,31 @@
|
||||
<div class="center">
|
||||
<form class="pure-form pure-form-aligned" action="/admin/clients/{{ .TemplateData.Id }}/auth" method="POST">
|
||||
<fieldset>
|
||||
<h2>Client Information</h2>
|
||||
<div class="pure-control-group">
|
||||
<label>Client ID:</label>
|
||||
<input class="larger disabled-but-visible" value="{{ .TemplateData.Id }}" disabled="disabled" />
|
||||
</div>
|
||||
<div class="pure-control-group">
|
||||
<label>Client IP:</label>
|
||||
<input class="larger disabled-but-visible" value="{{ .TemplateData.Ip }}" disabled="disabled" />
|
||||
</div>
|
||||
<div class="pure-control-group">
|
||||
<label for="clientname">Friendly Name</label>
|
||||
<input class="larger" id="clientname" name="clientname" type="clientname" value="{{ .TemplateData.Name }}" placeholder="Friendly Name">
|
||||
</div>
|
||||
|
||||
<h2>Admin Information</h2>
|
||||
<div class="pure-control-group">
|
||||
<label for="email">Email Address</label>
|
||||
<input id="email" name="email" type="text" placeholder="Email Address" autofocus>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group">
|
||||
<label for="password">Password</label>
|
||||
<input id="password" name="password" type="password" placeholder="Password">
|
||||
</div>
|
||||
|
||||
<div class="pure-controls">
|
||||
<label for="remember" class="pure-checkbox">
|
||||
<input id="remember" name="remember" type="checkbox"> Stay Logged In
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="pure-button pure-button-primary">Submit</button>
|
||||
<button type="submit" class="pure-button pure-button-primary space-vertical">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
@@ -1,21 +1,29 @@
|
||||
<div>The hosting server is always an authenticated client</div>
|
||||
{{ if not .TemplateData.Clients }}
|
||||
<div>No additional clients have been authenticated</div>
|
||||
<div class="space-vertical">No additional clients have been authenticated</div>
|
||||
{{ else }}
|
||||
<table id="clients-table" class="hidden sortable pure-table pure-table-bordered center">
|
||||
<table id="clients-table" class="sortable pure-table pure-table-bordered center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Friendly Name</th>
|
||||
<th>Client ID</th>
|
||||
<th>Last Known IP</th>
|
||||
<th>Authenticated</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $i, $v := .TemplateData.Clients }}
|
||||
<tr>
|
||||
<td>{{ $v.Id }}</td>
|
||||
<td>{{ $v.Ip }}</td>
|
||||
<td>{{ $v.Name }}</td>
|
||||
<td>{{ $v.UUID }}</td>
|
||||
<td>{{ $v.IP }}</td>
|
||||
<td>{{ if $v.Auth }} Yes {{ else }} No {{ end }}</td>
|
||||
<td>
|
||||
<a href="/admin/clients/{{ $v.UUID }}/deauth" class="pure-button pure-button-plain"><i class="fa fa-trash"></i></a>
|
||||
{{ if $v.Auth }}
|
||||
<a href="/admin/clients/{{ $v.UUID }}/deauth" class="primary"><i class="fa fa-2 fa-toggle-on"></i></a>
|
||||
{{ else }}
|
||||
<a href="/admin/clients/{{ $v.UUID }}/auth" class="error"><i class="fa fa-2 fa-toggle-off"></i></a>
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
|
@@ -12,13 +12,13 @@
|
||||
</div>
|
||||
-->
|
||||
{{ if eq .PublicMode 1 }}
|
||||
<div>
|
||||
<h3>Current Results</h3>
|
||||
<ol>
|
||||
{{ range $i, $v := .TemplateData }}
|
||||
<li>{{ $v.Name }}</li>
|
||||
<div class="results-container">
|
||||
<h2>Current Results</h2>
|
||||
{{ range $i, $v := .TemplateData }}
|
||||
{{ range $ti, $tv := $v.Teams }}
|
||||
{{ $v.Rank }}: {{ $tv.Name }}<br />
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div>
|
||||
|
@@ -1,9 +1,11 @@
|
||||
<div class="results-container">
|
||||
<h2>Current Results</h2>
|
||||
<ol>
|
||||
{{ range $i, $v := .TemplateData.Results }}
|
||||
<li>{{ $v.Name }}</li>
|
||||
{{ range $ti, $tv := $v.Teams }}
|
||||
{{ $v.Rank }}: {{ $tv.Name }}<br />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ol>
|
||||
</div>
|
||||
<table id="votes-table" class="sortable pure-table pure-table-bordered center">
|
||||
<thead>
|
||||
<tr>
|
||||
|
3
templates/unauthorized.html
Normal file
3
templates/unauthorized.html
Normal file
@@ -0,0 +1,3 @@
|
||||
Client Unauthorized.<br />
|
||||
<br />
|
||||
If you feel this is in error, contact an administrator.
|
Reference in New Issue
Block a user