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