2024-03-04 01:37:00 +01:00
|
|
|
<div class="field {{if not .item.VisibleOnForm}}gt-hidden{{end}}">
|
2022-09-02 09:58:49 +02:00
|
|
|
{{template "repo/issue/fields/header" .}}
|
|
|
|
{{/* FIXME: required validation */}}
|
2023-02-24 07:36:07 +01:00
|
|
|
<div class="ui fluid selection dropdown {{if .item.Attributes.multiple}}multiple clearable{{end}}">
|
|
|
|
<input type="hidden" name="form-field-{{.item.ID}}" value="0">
|
2023-05-01 11:35:02 +02:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2023-05-22 23:26:48 +02:00
|
|
|
{{if not .item.Validations.required}}
|
2023-05-01 11:35:02 +02:00
|
|
|
{{svg "octicon-x" 14 "remove icon"}}
|
2023-05-22 23:26:48 +02:00
|
|
|
{{end}}
|
2022-09-02 09:58:49 +02:00
|
|
|
<div class="default text"></div>
|
|
|
|
<div class="menu">
|
2023-02-24 07:36:07 +01:00
|
|
|
{{range $i, $opt := .item.Attributes.options}}
|
2022-09-02 09:58:49 +02:00
|
|
|
<div class="item" data-value="{{$i}}">{{$opt}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|