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