{{/* Copyright 2014 Team 254. All Rights Reserved. Author: pat@patfairbank.com (Patrick Fairbank) UI for entering and tracking fouls and red/yellow cards. */}} Referee Panel - {{.EventSettings.Name}} - Cheesy Arena {{if .EntryEnabled}}

{{.MatchType}} Match {{.MatchDisplayName}}

Fouls

{{range $foul := .RedFouls}} {{template "foul" dict "foul" $foul "color" "red" "rules" $.Rules}} {{end}} {{range $foul := .BlueFouls}} {{template "foul" dict "foul" $foul "color" "blue" "rules" $.Rules}} {{end}}

Yellow/Red Cards

{{template "card" dict "team" .Red1 "alliance" "red" "cards" .RedCards}} {{template "card" dict "team" .Red2 "alliance" "red" "cards" .RedCards}} {{template "card" dict "team" .Red3 "alliance" "red" "cards" .RedCards}} {{template "card" dict "team" .Blue1 "alliance" "blue" "cards" .BlueCards}} {{template "card" dict "team" .Blue2 "alliance" "blue" "cards" .BlueCards}} {{template "card" dict "team" .Blue3 "alliance" "blue" "cards" .BlueCards}}

Add Foul

Note: Tooltips do not contain the entire text of the rule, and depending on the circumstances the prescribed penalty may not be a foul or tech foul.
If a rule does not appear here, it is because the penalty is either a yellow/red card or a free score for the opponent, and should be applied directly.

Clear Foul

{{else}}

Waiting for the next match...

{{end}} {{define "foul"}} {{.foul.TeamId}} {{$rule := index .rules .foul.RuleId}} {{$rule.RuleNumber}}{{if $rule.IsTechnical}}T{{else if $rule.IsRankingPoint}}RP{{end}} Delete {{end}} {{define "card"}} {{.team.Id}}
{{end}}