blob: deb8d581c38567a4186fcb28bd0f08de96034467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{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}}
>
{{range errors}}
<p style="color:red">{{.}}</p>
{{end}}
{{with .Footer}}<p>{{.}}</p>{{end}}
<br />
{{end}}
|