code.gitea.io/gitea@v1.22.3/templates/repo/issue/fields/checkboxes.tmpl (about)

     1  <div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}">
     2  	{{template "repo/issue/fields/header" .}}
     3  	{{range $i, $opt := .item.Attributes.options}}
     4  		<div class="field inline">
     5  			<div class="ui checkbox tw-mr-0 {{if and ($opt.visible) (not (SliceUtils.Contains $opt.visible "form"))}}tw-hidden{{end}}">
     6  				<input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}required{{end}}>
     7  				<label>{{RenderMarkdownToHtml $.context $opt.label}}</label>
     8  			</div>
     9  			{{if $opt.required}}
    10  				<label class="required"></label>
    11  			{{end}}
    12  		</div>
    13  	{{end}}
    14  </div>