template with select multiple, input custom attribute
This commit is contained in:
parent
530a1171e6
commit
e3748c853f
4 changed files with 13 additions and 1 deletions
|
|
@ -14,6 +14,11 @@
|
|||
{{if ne .Value ""}}
|
||||
value="{{.Value}}"
|
||||
{{end}}
|
||||
{{if .CustomAtt }}
|
||||
{{range $options := .CustomAtt}}
|
||||
{{$options.AttName}}="{{$options.AttValue}}"
|
||||
{{end}}
|
||||
{{end}}
|
||||
aria-describedby="{{.ID}}Help">
|
||||
{{if ne .Hint ""}}<small id="{{.ID}}Help" class="form-text text-muted">{{.Hint}}</small>{{end}}
|
||||
{{if ne .Error ""}}<div class="error">{{.Error}}</div>{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue