Files

15 lines
589 B
Handlebars
Raw Permalink Normal View History

2024-03-24 19:23:38 +01:00
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
2022-09-02 15:58:49 +08:00
{{template "repo/issue/fields/header" .}}
{{range $i, $opt := .item.Attributes.options}}
<div class="field inline">
2024-03-24 19:23:38 +01:00
<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>{{ctx.RenderUtils.MarkdownToHtml $opt.label}}</label>
2022-09-02 15:58:49 +08:00
</div>
{{if $opt.required}}
<label class="required"></label>
{{end}}
2022-09-02 15:58:49 +08:00
</div>
{{end}}
</div>