{{/* gotype: github.com/cj123/assetto-server-manager.RaceTemplateVars */}} {{ define "title" }}Create a Race Weekend{{ end }} {{ define "content" }}

{{ if not $.IsEditing }} Create a new Race Weekend {{ else }} Edit the {{ $.RaceWeekend.Name }} Race Weekend {{ end }}

{{ if $.RaceWeekend.HasLinkedChampionship }}

in the {{ $.Championship.Name }} Championship

{{ end }} {{ template "raceweekend-premium" dict "IsPremium" $.IsPremium }}
Race Weekend {{ if .IsEditing }} {{ end }}
{{ if not $.RaceWeekend.HasLinkedChampionship }}
{{ template "cars" dict "CarOpts" $.CarOpts "Current" nil "ValidCarIDs" $.RaceWeekend.GetEntryList.CarIDs }}
{{ template "entrant" dict "IsEditing" $.IsEditing "IsChampionship" false "NameAndGUIDRequired" true }}
{{ range $index, $entrant := $.RaceWeekend.GetEntryList.AsSlice }}
{{ template "entrant" dict "Entrant" $entrant "IsChampionshipEvent" false "IsEditing" $.IsEditing "IsChampionship" false "NameAndGUIDRequired" true }}
{{ else }} {{ if not $.IsEditing }}
{{ template "entrant" dict "IsEditing" $.IsEditing "IsChampionship" false "NameAndGUIDRequired" true }}
{{ end }} {{ end }}

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

{{ else }} {{ end }}
{{ if .IsEditing }} {{ else }}
{{ end }}
{{ end }}