mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-15 17:49:20 +08:00
4af872178e
Backport #26698 by @wxiaoguang Regression of #23092, the `{{$field := .}}` was missing during that refactoring. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
12 lines
342 B
Handlebars
12 lines
342 B
Handlebars
<div class="field">
|
|
{{template "repo/issue/fields/header" .}}
|
|
{{range $i, $opt := .item.Attributes.options}}
|
|
<div class="field">
|
|
<div class="ui checkbox">
|
|
<input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}>
|
|
<label>{{$opt.label}}</label>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</div>
|