e02e752f68
Backport #23092 Fix #23082. This bug is caused by a nil context in https://github.com/go-gitea/gitea/issues/23082#issuecomment-1441276546 . Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
12 lines
359 B
Handlebars
12 lines
359 B
Handlebars
<div class="field">
|
|
{{template "repo/issue/fields/header" .}}
|
|
{{$field := .}}
|
|
{{range $i, $opt := .item.Attributes.options}}
|
|
<div class="field">
|
|
<div class="ui checkbox">
|
|
<input type="checkbox" name="form-field-{{$field.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}>
|
|
<label>{{$opt.label}}</label>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|