fehlerbehebung
This commit is contained in:
parent
634668b7d5
commit
e8e00b7042
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/"))
|
||||
|
||||
if strings.Contains(activePage, "/addEvent") {
|
||||
output = strings.ReplaceAll(output, "!ADMINKEY", activePage)
|
||||
} else {
|
||||
output = strings.ReplaceAll(output, "!ADMINKEY", activePage+"/addEvent")
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
!RAUMSTATUS
|
||||
!EVENTS
|
||||
|
||||
<form action="/!ADMINKEY/addEvent" method="post">
|
||||
<form action="/!ADMINKEY" method="post">
|
||||
<input type="text" name="title" placeholder="Titel"><br>
|
||||
<input type="text" name="description" placeholder="Beschreibung"><br>
|
||||
<label for="media">Bilder:</label><input type="file" name="media" id="media" multiple><br>
|
||||
|
|
Loading…
Reference in New Issue