mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-10 06:06:47 -04:00
Remove goal light address settings.
This commit is contained in:
@@ -22,9 +22,7 @@ CREATE TABLE event_settings (
|
||||
tbadownloadenabled bool,
|
||||
adminpassword VARCHAR(255),
|
||||
readerpassword VARCHAR(255),
|
||||
redgoallightsaddress VARCHAR(255),
|
||||
reddefenselightsaddress VARCHAR(255),
|
||||
bluegoallightsaddress VARCHAR(255),
|
||||
bluedefenselightsaddress VARCHAR(255),
|
||||
initialtowerstrength int,
|
||||
stemtvpublishingenabled bool,
|
||||
|
||||
@@ -27,9 +27,7 @@ type EventSettings struct {
|
||||
BandwidthMonitoringEnabled bool
|
||||
AdminPassword string
|
||||
ReaderPassword string
|
||||
RedGoalLightsAddress string
|
||||
RedDefenseLightsAddress string
|
||||
BlueGoalLightsAddress string
|
||||
BlueDefenseLightsAddress string
|
||||
InitialTowerStrength int
|
||||
StemTvPublishingEnabled bool
|
||||
|
||||
@@ -66,9 +66,7 @@ func SettingsPostHandler(w http.ResponseWriter, r *http.Request) {
|
||||
eventSettings.BandwidthMonitoringEnabled = r.PostFormValue("bandwidthMonitoringEnabled") == "on"
|
||||
eventSettings.AdminPassword = r.PostFormValue("adminPassword")
|
||||
eventSettings.ReaderPassword = r.PostFormValue("readerPassword")
|
||||
eventSettings.RedGoalLightsAddress = r.PostFormValue("redGoalLightsAddress")
|
||||
eventSettings.RedDefenseLightsAddress = r.PostFormValue("redDefenseLightsAddress")
|
||||
eventSettings.BlueGoalLightsAddress = r.PostFormValue("blueGoalLightsAddress")
|
||||
eventSettings.BlueDefenseLightsAddress = r.PostFormValue("blueDefenseLightsAddress")
|
||||
|
||||
initialTowerStrength, _ := strconv.Atoi(r.PostFormValue("initialTowerStrength"))
|
||||
|
||||
@@ -207,24 +207,12 @@
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>LED Controllers</legend>
|
||||
<div class="form-group">
|
||||
<label class="col-lg-5 control-label">Red goal address/port</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" class="form-control" name="redGoalLightsAddress" value="{{.RedGoalLightsAddress}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-lg-5 control-label">Red defense address/port</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" class="form-control" name="redDefenseLightsAddress" value="{{.RedDefenseLightsAddress}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-lg-5 control-label">Blue goal address/port</label>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" class="form-control" name="blueGoalLightsAddress" value="{{.BlueGoalLightsAddress}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-lg-5 control-label">Blue defense address/port</label>
|
||||
<div class="col-lg-7">
|
||||
|
||||
Reference in New Issue
Block a user