clue can be html

This commit is contained in:
2025-11-05 18:29:54 +01:00
parent b6c2506bd4
commit 53b673f86d
3 changed files with 3 additions and 3 deletions

View File

@@ -287,7 +287,7 @@ func qrHandler(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Could not retrieve help text", http.StatusInternalServerError) http.Error(w, "Could not retrieve help text", http.StatusInternalServerError)
return return
} }
CipherTemplateData.HelpText = helpText CipherTemplateData.HelpText = template.HTML(helpText)
case 2: // next cipher case 2: // next cipher
// get end clue // get end clue
var endClue string var endClue string

View File

@@ -12,7 +12,7 @@ type CipherTemplateS struct {
ID int ID int
Order uint Order uint
Assignment template.HTML Assignment template.HTML
HelpText string HelpText template.HTML
FinalClue string FinalClue string
Coordinates string Coordinates string
PositionHint string PositionHint string

View File

@@ -39,7 +39,7 @@
<label for="solution">Řešení:</label> <label for="solution">Řešení:</label>
<input type="text" id="solution" name="solution" required> <input type="text" id="solution" name="solution" required>
<label for="clue">Nápověda:</label> <label for="clue">Nápověda:</label>
<input type="text" id="clue" name="clue" required> <textarea id="clue" name="clue" cols="40" rows="5" required></textarea>
<input type="submit" value="Přidat šifru"> <input type="submit" value="Přidat šifru">
</form> </form>
<hr> <hr>