clue can be html
This commit is contained in:
2
klice.go
2
klice.go
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user