diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-13 20:44:23 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-13 20:44:23 +0100 |
commit | 27ce6f7ad305c30487db1a8ee5e4882bdc929202 (patch) | |
tree | 1c6cbcaf5e86f160a34315502cb295648e99d6d3 /templ/form.tpl | |
parent | 18ed79e026aa301ffed60ab86f6df7adca981ccb (diff) | |
download | gosten-27ce6f7ad305c30487db1a8ee5e4882bdc929202.tar.gz gosten-27ce6f7ad305c30487db1a8ee5e4882bdc929202.tar.bz2 gosten-27ce6f7ad305c30487db1a8ee5e4882bdc929202.zip |
Error handling in forms
Diffstat (limited to 'templ/form.tpl')
-rw-r--r-- | templ/form.tpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templ/form.tpl b/templ/form.tpl index b17cb1d..deb8d58 100644 --- a/templ/form.tpl +++ b/templ/form.tpl @@ -9,6 +9,9 @@ {{with .Class}}class="{{.}}"{{end}} {{range .Options}} {{.}} {{end}} > + {{range errors}} + <p style="color:red">{{.}}</p> + {{end}} {{with .Footer}}<p>{{.}}</p>{{end}} <br /> {{end}}
\ No newline at end of file |