fehlerbehebung
This commit is contained in:
parent
628de87946
commit
7e446de2cb
4
func.go
4
func.go
|
@ -172,7 +172,11 @@ func htmlReplacer(input string, activePage string) string {
|
||||||
|
|
||||||
output = strings.ReplaceAll(output, "!NEWBANNER", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/"))
|
output = strings.ReplaceAll(output, "!NEWBANNER", htmlNewBanner("Rundgang", "https://www.chaostreff-dortmund.de/rundgang/"))
|
||||||
|
|
||||||
|
if strings.Contains(activePage, "/addEvent") {
|
||||||
output = strings.ReplaceAll(output, "!ADMINKEY", activePage)
|
output = strings.ReplaceAll(output, "!ADMINKEY", activePage)
|
||||||
|
} else {
|
||||||
|
output = strings.ReplaceAll(output, "!ADMINKEY", activePage+"/addEvent")
|
||||||
|
}
|
||||||
|
|
||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
!RAUMSTATUS
|
!RAUMSTATUS
|
||||||
!EVENTS
|
!EVENTS
|
||||||
|
|
||||||
<form action="/!ADMINKEY/addEvent" method="post">
|
<form action="/!ADMINKEY" method="post">
|
||||||
<input type="text" name="title" placeholder="Titel"><br>
|
<input type="text" name="title" placeholder="Titel"><br>
|
||||||
<input type="text" name="description" placeholder="Beschreibung"><br>
|
<input type="text" name="description" placeholder="Beschreibung"><br>
|
||||||
<label for="media">Bilder:</label><input type="file" name="media" id="media" multiple><br>
|
<label for="media">Bilder:</label><input type="file" name="media" id="media" multiple><br>
|
||||||
|
|
Loading…
Reference in New Issue