mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	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>
 |