fehlerbehebung

This commit is contained in:
xoy 2023-01-28 23:15:00 +01:00
parent 628de87946
commit 7e446de2cb
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, "!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 return output
} }

View File

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