summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/fields/checkboxes.tmpl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/repo/issue/fields/checkboxes.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/repo/issue/fields/checkboxes.tmpl b/templates/repo/issue/fields/checkboxes.tmpl
new file mode 100644
index 0000000..531f401
--- /dev/null
+++ b/templates/repo/issue/fields/checkboxes.tmpl
@@ -0,0 +1,14 @@
+<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
+ {{template "repo/issue/fields/header" .}}
+ {{range $i, $opt := .item.Attributes.options}}
+ <div class="field inline">
+ <div class="ui checkbox tw-mr-0 {{if and ($opt.visible) (not (SliceUtils.Contains $opt.visible "form"))}}tw-hidden{{end}}">
+ <input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}required{{end}}>
+ <label>{{RenderMarkdownToHtml $.context $opt.label}}</label>
+ </div>
+ {{if $opt.required}}
+ <label class="required"></label>
+ {{end}}
+ </div>
+ {{end}}
+</div>