package seasonsview import "git.haelnorr.com/h/oslstats/internal/db" import "git.haelnorr.com/h/oslstats/internal/view/baseview" import "fmt" templ SeriesUploadResultPage(series *db.PlayoffSeries) { {{ backURL := fmt.Sprintf("/series/%d", series.ID) team1Name := seriesTeamName(series.Team1) team2Name := seriesTeamName(series.Team2) boLabel := fmt.Sprintf("BO%d", series.MatchesToWin*2-1) maxGames := series.MatchesToWin*2 - 1 minGames := series.MatchesToWin }} @baseview.Layout(fmt.Sprintf("Upload Series Result — %s vs %s", team1Name, team2Name)) {

Upload Series Results

{ team1Name } vs { team2Name } { series.Label } · { boLabel }

Cancel

Match Log Files

Upload the 3 period match log JSON files for each game in the series. Select the number of games that were actually played.

First team to { fmt.Sprint(series.MatchesToWin) } wins takes the series ({ fmt.Sprint(minGames) }-{ fmt.Sprint(maxGames) } games possible)

for g := 1; g <= maxGames; g++ {
= %d", g) } x-cloak class="border border-surface1 rounded-lg overflow-hidden" >

Game { fmt.Sprint(g) }

for p := 1; p <= 3; p++ {
}
}
} }