diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 16:37:23 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 16:37:23 +0200 |
commit | b2447bc967df37b31282a97e32c581954bb8bcc9 (patch) | |
tree | 39758d1121fae6dc1d27e8a45035690421900d6c /templ/form.tpl | |
parent | 789d21034e526a03d3e91d5d284a4888be938340 (diff) | |
download | gosten-b2447bc967df37b31282a97e32c581954bb8bcc9.tar.gz gosten-b2447bc967df37b31282a97e32c581954bb8bcc9.tar.bz2 gosten-b2447bc967df37b31282a97e32c581954bb8bcc9.zip |
Move from html/template to templ
Diffstat (limited to '')
-rw-r--r-- | templ/form.tpl | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/templ/form.tpl b/templ/form.tpl deleted file mode 100644 index 4d20557..0000000 --- a/templ/form.tpl +++ /dev/null @@ -1,22 +0,0 @@ -{{define "formItem"}} - {{- $cb := eq .Type "checkbox" -}} - <div class="{{if $cb}}form-check form-switch{{else}}form-floating{{end}} mb-3"> - <input - {{with .ID}}id="{{.}}"{{end}} - type="{{.Type}}" - name="{{.Name}}" - placeholder="{{.Placeholder}}" - {{with .Value}}value="{{.}}"{{end}} - {{with .Class}}class="{{.}}"{{end}} - class="{{if $cb}}form-check-input{{else}}form-control{{end}}" - {{range .Options}} {{.}} {{end}} - > - <label {{with .ID}}for="{{.}}"{{end}} - {{- if $cb}}class="form-check-label"{{end}}>{{.Label}}</label> - - {{range errors}} - <p style="color:red">{{.}}</p> - {{end}} - {{with .Footer}}<p>{{.}}</p>{{end}} - </div> -{{end}}
\ No newline at end of file |