2024-03-24 14:23:38 -04:00
|
|
|
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
|
2022-09-02 03:58:49 -04:00
|
|
|
{{template "repo/issue/fields/header" .}}
|
2023-02-24 01:36:07 -05:00
|
|
|
{{range $i, $opt := .item.Attributes.options}}
|
2023-10-19 07:43:15 -04:00
|
|
|
<div class="field inline">
|
2024-03-24 14:23:38 -04:00
|
|
|
<div class="ui checkbox tw-mr-0 {{if and ($opt.visible) (not (SliceUtils.Contains $opt.visible "form"))}}tw-hidden{{end}}">
|
2023-10-19 07:43:15 -04:00
|
|
|
<input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}required{{end}}>
|
2024-11-05 01:04:26 -05:00
|
|
|
<label>{{ctx.RenderUtils.MarkdownToHtml $opt.label}}</label>
|
2022-09-02 03:58:49 -04:00
|
|
|
</div>
|
2023-10-19 07:43:15 -04:00
|
|
|
{{if $opt.required}}
|
|
|
|
<label class="required"></label>
|
|
|
|
{{end}}
|
2022-09-02 03:58:49 -04:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|