diff --git a/internal/teacherteams.go b/internal/teacherteams.go index 4fd20ff..db8c642 100644 --- a/internal/teacherteams.go +++ b/internal/teacherteams.go @@ -93,14 +93,18 @@ func (a *Application) HandleTeacherTeamEdit(w http.ResponseWriter, r *http.Reque } teamName := r.FormValue("team-name") - inPerson := r.FormValue("team-location") == "in-person" - teamDivision, err := database.ParseDivision(r.FormValue("team-division")) - if err != nil { - log.Warn().Err(err).Msg("Failed to parse team division") - w.WriteHeader(http.StatusInternalServerError) - return - } - teamDivisionExplanation := r.FormValue("team-division-explanation") + // inPerson := r.FormValue("team-location") == "in-person" + // teamDivision, err := database.ParseDivision(r.FormValue("team-division")) + // if err != nil { + // log.Warn().Err(err).Msg("Failed to parse team division") + // w.WriteHeader(http.StatusInternalServerError) + // return + // } + // teamDivisionExplanation := r.FormValue("team-division-explanation") + + inPerson := true + teamDivision := database.DivisionBeginner + teamDivisionExplanation := "only one division" teamIDStr := r.URL.Query().Get("team_id") var teamID uuid.UUID diff --git a/website/templates/student.html b/website/templates/student.html index 85259e8..4555095 100644 --- a/website/templates/student.html +++ b/website/templates/student.html @@ -81,14 +81,14 @@

Your Information

-

In Person Participant Details

+

Participant Details

- Your team has been registered for the in-person competition. Lunch will - be provided, and you have the option to take a campus tour after the - competition. + + Lunch will be provided, and you have the option to take a campus tour after + the competition.

diff --git a/website/templates/teamedit.html b/website/templates/teamedit.html index 4b468d4..7dc3808 100644 --- a/website/templates/teamedit.html +++ b/website/templates/teamedit.html @@ -71,84 +71,84 @@

Team Information

-
-
- This team will compete -
- - + + + + + + + + - - -
-
- In-person competitors will have the opportunity to do a campus tour after the - competition. - {{ with .Data.Team -}} - If you need to change this, please email - support@mineshspc.com. - {{- end -}} -
-
-
+ + + + + + + + + + + + + + +
-
-
-
-

Team Division

-
-
-
-
- - + + + + + + + + + + + + + + + + + + + - - -
-
-
-
-
- - -
- We will use this information to ensure that teams are placed in the correct - division. -
-
-
-
-
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ with $t := .Data.Team }}
diff --git a/website/templates/teams.html b/website/templates/teams.html index 736e012..38c8294 100644 --- a/website/templates/teams.html +++ b/website/templates/teams.html @@ -61,12 +61,12 @@

Register Teams

-
- Division: {{ .Division }} -
-
- In Person: {{ if .InPerson }}Yes{{ else }}No{{ end }} -
+ + + + + + {{ if gt .RegistrationTS.UnixMilli 0 }}
Registration Time: {{ .RegistrationTS.Format "2006-01-02 15:04 MST" }}