diff options
Diffstat (limited to 'templates/repo/issue/fields/checkboxes.tmpl')
-rw-r--r-- | templates/repo/issue/fields/checkboxes.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/repo/issue/fields/checkboxes.tmpl b/templates/repo/issue/fields/checkboxes.tmpl new file mode 100644 index 0000000000..b70334681f --- /dev/null +++ b/templates/repo/issue/fields/checkboxes.tmpl @@ -0,0 +1,12 @@ +<div class="field"> + {{template "repo/issue/fields/header" .}} + {{$field := .}} + {{range $i, $opt := .Attributes.options}} + <div class="field"> + <div class="ui checkbox"> + <input type="checkbox" name="form-field-{{$field.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}> + <label>{{$opt.label}}</label> + </div> + </div> + {{end}} +</div> |