1
GoShort/templates/textform.gohtml
Jan-Lukas Else c5dd0e6e40
All checks were successful
continuous-integration/drone/push Build is passing
Embed template files, new.css for forms and table
2021-08-11 15:07:28 +02:00

12 lines
551 B
Plaintext

<!doctype html>
<html lang=en>
<meta name=viewport content="width=device-width, initial-scale=1.0">
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.3/new.min.css>
<title>{{.Title}}</title>
<h1>{{.Title}}</h1>
<form action={{.URL}} method=post>
{{range .Fields}}<input type=text name={{index . 0}} placeholder={{index . 0}} value="{{index . 1}}"><br>{{end}}
{{range .TextAreas}}<textarea name={{index . 0}} placeholder={{index . 0}}>{{index . 1}}</textarea><br>{{end}}
<input type=submit value={{.Title}}>
</form>
</html>