{{ define "championship-class" }}
Class
{{ $class := .Class }}
{{ template "cars" dict "CarOpts" $.CarOpts "Current" nil "ValidCarIDs" $class.ValidCarIDs }}

{{ template "entrant" dict "IsEditing" $.IsEditing "IsChampionship" true }}
{{ range $index, $entrant := $class.Entrants.AsSlice }}
{{ template "entrant" dict "Entrant" $entrant "IsChampionshipEvent" false "IsEditing" $.IsEditing "IsChampionship" true }}
{{ else }} {{ if not $.IsEditing }}
{{ template "entrant" dict "IsEditing" $.IsEditing "IsChampionship" true }}
{{ end }} {{ end }}

Car, Skin, Ballast, Restrictor and Fixed Setup from the last Entrant will be cloned into new Entrants.

Points

{{ template "points" dict "Points" $class.Points "DefaultPoints" $.DefaultPoints "IsEditing" $.IsEditing "IsRaceWeekend" false }}
{{ end }}