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