blob: b17cb1d0366fc6074c6d9438c39b26030b5f5954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}}
|