diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-11 23:45:56 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-11 23:45:56 +0100 |
commit | 934df3f098c33bcbb1493a420833817b80518020 (patch) | |
tree | f2fa5d6356bc32b84c6f19377ca106c627f4132b /templ/form.tpl | |
parent | 09cb0762553494f2e31f4a7dc60c0c4ba09e91a1 (diff) | |
download | gosten-934df3f098c33bcbb1493a420833817b80518020.tar.gz gosten-934df3f098c33bcbb1493a420833817b80518020.tar.bz2 gosten-934df3f098c33bcbb1493a420833817b80518020.zip |
Include form handling
Diffstat (limited to '')
-rw-r--r-- | templ/form.tpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templ/form.tpl b/templ/form.tpl new file mode 100644 index 0000000..b17cb1d --- /dev/null +++ b/templ/form.tpl @@ -0,0 +1,14 @@ +{{define "formItem"}} + <label {{with .ID}}for="{{.}}"{{end}}>{{.Label}}</label> + <input + {{with .ID}}id="{{.}}"{{end}} + type="{{.Type}}" + name="{{.Name}}" + placeholder="{{.Placeholder}}" + {{with .Value}}value="{{.}}"{{end}} + {{with .Class}}class="{{.}}"{{end}} + {{range .Options}} {{.}} {{end}} + > + {{with .Footer}}<p>{{.}}</p>{{end}} + <br /> +{{end}}
\ No newline at end of file |