diff --git a/model/event_settings.go b/model/event_settings.go index 5e53459a..44805a4b 100644 --- a/model/event_settings.go +++ b/model/event_settings.go @@ -23,6 +23,7 @@ type EventSettings struct { SelectionRound3Order string SelectionShowUnpickedTeams bool TbaDownloadEnabled bool + AlternateIOEnabled bool TbaPublishingEnabled bool TbaEventCode string TbaSecretId string @@ -74,6 +75,7 @@ func (database *Database) GetEventSettings() (*EventSettings, error) { SelectionRound3Order: "", SelectionShowUnpickedTeams: true, TbaDownloadEnabled: true, + AlternateIOEnabled: false, ApChannel: 36, WarmupDurationSec: game.MatchTiming.WarmupDurationSec, AutoDurationSec: game.MatchTiming.AutoDurationSec, diff --git a/model/event_settings_test.go b/model/event_settings_test.go index 059704a7..bf249678 100644 --- a/model/event_settings_test.go +++ b/model/event_settings_test.go @@ -25,6 +25,7 @@ func TestEventSettingsReadWrite(t *testing.T) { SelectionRound3Order: "", SelectionShowUnpickedTeams: true, TbaDownloadEnabled: true, + AlternateIOEnabled: true, ApChannel: 36, WarmupDurationSec: 0, AutoDurationSec: 15, diff --git a/templates/setup_settings.html b/templates/setup_settings.html index 255ec850..b05f20a2 100644 --- a/templates/setup_settings.html +++ b/templates/setup_settings.html @@ -234,6 +234,15 @@ +
+ +
+ +
+
Team Signs diff --git a/web/setup_settings.go b/web/setup_settings.go index 8b55c8c8..d1ebe163 100644 --- a/web/setup_settings.go +++ b/web/setup_settings.go @@ -85,6 +85,7 @@ func (web *Web) settingsPostHandler(w http.ResponseWriter, r *http.Request) { eventSettings.SelectionRound3Order = r.PostFormValue("selectionRound3Order") eventSettings.SelectionShowUnpickedTeams = r.PostFormValue("selectionShowUnpickedTeams") == "on" eventSettings.TbaDownloadEnabled = r.PostFormValue("tbaDownloadEnabled") == "on" + eventSettings.AlternateIOEnabled = r.PostFormValue("alternateIOEnabled") == "on" eventSettings.TbaPublishingEnabled = r.PostFormValue("tbaPublishingEnabled") == "on" eventSettings.TbaEventCode = r.PostFormValue("tbaEventCode") eventSettings.TbaSecretId = r.PostFormValue("tbaSecretId")