summaryrefslogtreecommitdiff
path: root/templ/form.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templ/form.tpl')
-rw-r--r--templ/form.tpl22
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