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