gitea源码

checkboxes.tmpl 589B

123456789101112131415
  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>{{ctx.RenderUtils.MarkdownToHtml $opt.label}}</label>
  8. </div>
  9. {{if $opt.required}}
  10. <label class="required"></label>
  11. {{end}}
  12. </div>
  13. {{end}}
  14. </div>