Added a game-link page

Also tweaked a few other things
Kinda worked more on the client authentication stuff
This commit is contained in:
2017-07-19 10:16:18 -05:00
parent c2959b3974
commit f2dde0c709
12 changed files with 228 additions and 165 deletions

View File

@@ -29,6 +29,10 @@
<label class="control-label" for="gamename">Game Name</label>
<input id="gamename" name="gamename" value="{{ .TemplateData.Game.Name }}" placeholder="Game Name">
</div>
<div class="pure-control-group">
<label class="control-label" for="gamelink">Link</label>
<input id="gamelink" name="gamelink" value="{{ .TemplateData.Game.Link }}" placeholder="Game Link">
</div>
<div class="pure-control-group">
<label class="control-label" for="gamedesc">Description</label>
<textarea id="gamedesc" name="gamedesc" placeholder="Description...">{{ .TemplateData.Game.Description }}</textarea>

View File

@@ -4,6 +4,13 @@
<button onclick="window.location.href='/admin/mode/0'" class="pure-button-toggle-first pure-button {{ if eq .PublicMode 0 }}pure-button-primary{{ end }}">Waiting</button>
<button onclick="window.location.href='/admin/mode/1'" class="pure-button-toggle-last pure-button {{ if eq .PublicMode 1 }}pure-button-primary{{ end }}">Voting</button>
</div>
<!--
<div>
<h3>Allowed Voting Terminals</h3>
<button onclick="window.location.href='/admin/authmode/0'" class="pure-button-toggle-first pure-button {{ if eq .AuthMode 0 }}pure-button-primary{{ end }}">Only Authenticated Clients</button>
<button onclick="window.location.href='/admin/authmode/1'" class="pure-button-toggle-last pure-button {{ if eq .AuthMode 1 }}pure-button-primary{{ end }}">Any Client Can Vote</button>
</div>
-->
{{ if eq .PublicMode 1 }}
<div>
<h3>Current Results</h3>

View File

@@ -14,6 +14,10 @@
<label class="control-label" for="gamename">Game Name</label>
<input id="gamename" name="gamename" value="{{ .TemplateData.Game.Name }}" placeholder="Game Name">
</div>
<div class="pure-control-group">
<label class="control-label" for="gamelink">Game Website</label>
<input id="gamelink" name="gamelink" value="{{ .TemplateData.Game.Link }}" placeholder="Game Link">
</div>
<div class="pure-control-group">
<label class="control-label" for="gamedesc">Description</label>
<textarea id="gamedesc" name="gamedesc" placeholder="Description...">{{ .TemplateData.Game.Description }}</textarea>

View File

@@ -1,6 +1,6 @@
{{ if not .TemplateData.Teams }}
<div>No games have been created</div>
{{ else }}
{{ else }}
<div class="content">
Rank one or more games from your favorite to least favorite.
</div>
@@ -70,7 +70,6 @@
</div>
{{ end }}
<div id="embiggenedScreenShot" class="hidden fullscreen" onclick="javascript:document.getElementById('embiggenedScreenShot').classList.add('hidden');"></div>
{{ end }}
<script>
var teams = { };
{{ range $i, $v := .TemplateData.Teams }}
@@ -369,3 +368,4 @@ function createUnrankedActionsTd(tmUUID) {
return td;
}
</script>
{{ end }}