package seasonsview import "git.haelnorr.com/h/oslstats/internal/db" import "fmt" // ==================== Schedule Tab ==================== templ seriesScheduleTab( series *db.PlayoffSeries, currentSchedule *db.PlayoffSeriesSchedule, history []*db.PlayoffSeriesSchedule, canSchedule bool, canManage bool, userTeamID int, ) {
Waiting for Teams
Both teams must be determined before scheduling can begin.
No time scheduled
if canSchedule { Use the form to propose a time for this series. } else { A team manager needs to propose a time for this series. }
Proposed: @localtime(current.ScheduledTime, "datetime")
Proposed by { current.ProposedBy.Name } β awaiting response from the other team
if canSchedule && userTeamID != current.ProposedByTeamID {Confirmed: @localtime(current.ScheduledTime, "datetime")
Both teams have agreed on this time.
Proposal Rejected
The proposed time was rejected. A new time needs to be proposed.
Schedule Cancelled
if current.RescheduleReason != nil {{ *current.RescheduleReason }
}Rescheduled
if current.RescheduleReason != nil {Reason: { *current.RescheduleReason }
}A new time needs to be proposed.
Postponed
if current.RescheduleReason != nil {Reason: { *current.RescheduleReason }
}A new time needs to be proposed.
Proposal Withdrawn
The proposed time was withdrawn. A new time needs to be proposed.
This action will cancel the current series schedule.
Only team managers can manage series scheduling.
No scheduling activity yet.
} else {