fehlerbehebung

This commit is contained in:
xoy 2023-01-28 23:15:00 +01:00
parent 634668b7d5
commit e8e00b7042
2 changed files with 6 additions and 2 deletions

View File

@ -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, "!ADMINKEY", activePage)
if strings.Contains(activePage, "/addEvent") {
output = strings.ReplaceAll(output, "!ADMINKEY", activePage)
} else {
output = strings.ReplaceAll(output, "!ADMINKEY", activePage+"/addEvent")
}
return output
}

View File

@ -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>