Cleaned up HTML templates.

This commit is contained in:
Patrick Fairbank
2014-09-06 17:38:21 -07:00
parent 65d5602d9e
commit 1467c9e9cb
26 changed files with 122 additions and 12 deletions

View File

@@ -205,7 +205,7 @@ func AllianceSelectionFinalizeHandler(w http.ResponseWriter, r *http.Request) {
}
func renderAllianceSelection(w http.ResponseWriter, r *http.Request, errorMessage string) {
template, err := template.ParseFiles("templates/alliance_selection.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_alliance_selection.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -12,7 +12,7 @@ import (
// Shows the field configuration page.
func FieldGetHandler(w http.ResponseWriter, r *http.Request) {
template, err := template.ParseFiles("templates/field.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_field.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -13,7 +13,7 @@ import (
// Shows the lower third configuration page.
func LowerThirdsGetHandler(w http.ResponseWriter, r *http.Request) {
template, err := template.ParseFiles("templates/lower_thirds.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_lower_thirds.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -132,7 +132,7 @@ func renderSchedule(w http.ResponseWriter, r *http.Request, errorMessage string)
handleWebErr(w, err)
return
}
template, err := template.ParseFiles("templates/schedule.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_schedule.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -169,7 +169,7 @@ func ClearDbHandler(w http.ResponseWriter, r *http.Request) {
}
func renderSettings(w http.ResponseWriter, r *http.Request, errorMessage string) {
template, err := template.ParseFiles("templates/settings.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_settings.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -13,7 +13,7 @@ import (
// Shows the sponsor slides configuration page.
func SponsorSlidesGetHandler(w http.ResponseWriter, r *http.Request) {
template, err := template.ParseFiles("templates/sponsor_slides.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_sponsor_slides.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -207,7 +207,7 @@ func renderTeams(w http.ResponseWriter, r *http.Request, showErrorMessage bool)
return
}
template, err := template.ParseFiles("templates/teams.html", "templates/base.html")
template, err := template.ParseFiles("templates/setup_teams.html", "templates/base.html")
if err != nil {
handleWebErr(w, err)
return

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
Display shown on the screens above each driver station.
*/}}
<!DOCTYPE html>
<html>
<head>

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
Display shown on the audience screen overlayed over the video.
*/}}
<!DOCTYPE html>
<html>
<head>

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
Base template used by most pages to render the top bar and include common resources.
*/}}
{{define "base"}}
<!DOCTYPE html>
<html>

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for manually editing the result for a match.
*/}}
{{define "title"}}Edit Match Results{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for editing team data.
*/}}
{{define "title"}}Edit Team{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
Display showing team diagnostics for FTA/FTAA use.
*/}}
{{define "title"}}FTA Display{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
Root page and entry point to Cheesy Arena.
*/}}
{{define "title"}}Home{{end}}
{{define "body"}}
<div class="jumbotron">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for controlling match play and viewing team connection and field status.
*/}}
{{define "title"}}Match Play{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for listing matches and their results.
*/}}
{{define "title"}}Match Review{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,11 +1,13 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: nick@team254.com (Nick Eyre)
Author: pat@patfairbank.com (Patrick Fairbank)
Display for showing team rankings.
*/}}
<!DOCTYPE html>
<html>
<head>
<!--
Copyright 2014 Team 254. All Rights Reserved.
Author: nick@team254.com (Nick Eyre)
Author: pat@patfairbank.com (Patrick Fairbank)
-->
<title>Pit Display - {{.EventSettings.Name}} - Cheesy Arena </title>
<link rel="shortcut icon" href="/static/img/favicon32.png">
<link rel="stylesheet" href="/static/css/lib/bootstrap.min.css" />

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for entering and tracking fouls and red/yellow cards.
*/}}
<!DOCTYPE html>
<html>
<head>

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for entering realtime scores.
*/}}
{{define "title"}}Scoring{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for controlling the alliance selection process.
*/}}
{{define "title"}}Alliance Selection{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for controlling ephemeral aspects of the playing field.
*/}}
{{define "title"}}Field Configuration{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for configuring audience display lower thirds.
*/}}
{{define "title"}}Lower Thirds{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for generating a match schedule.
*/}}
{{define "title"}}Match Scheduling{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for configuring event settings.
*/}}
{{define "title"}}Settings{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for configuring the audience display sponsor roll.
*/}}
{{define "title"}}Sponsor Slides Configuration{{end}}
{{define "body"}}
<div class="row">

View File

@@ -1,3 +1,9 @@
{{/*
Copyright 2014 Team 254. All Rights Reserved.
Author: pat@patfairbank.com (Patrick Fairbank)
UI for configuring the team list for an event.
*/}}
{{define "title"}}Team List{{end}}
{{define "body"}}
{{if .ShowErrorMessage}}