mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-29 21:26:10 +01:00
1bd2772235
- Replace leftover dropdown triangles with SVG - Replace remove icon with SVG and add styling for it: <img width="817" alt="Screenshot 2023-05-01 at 00 40 05" src="https://user-images.githubusercontent.com/115237/235379271-4674d4f7-b11e-4d6d-90f9-1478325443ca.png"> <img width="816" alt="Screenshot 2023-05-01 at 00 46 56" src="https://user-images.githubusercontent.com/115237/235379451-b515afb3-9773-4f6f-a259-e7048235bcba.png">
16 lines
557 B
Handlebars
16 lines
557 B
Handlebars
<div class="field">
|
|
{{template "repo/issue/fields/header" .}}
|
|
{{/* FIXME: required validation */}}
|
|
<div class="ui fluid selection dropdown {{if .item.Attributes.multiple}}multiple clearable{{end}}">
|
|
<input type="hidden" name="form-field-{{.item.ID}}" value="0">
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
{{svg "octicon-x" 14 "remove icon"}}
|
|
<div class="default text"></div>
|
|
<div class="menu">
|
|
{{range $i, $opt := .item.Attributes.options}}
|
|
<div class="item" data-value="{{$i}}">{{$opt}}</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|