1
0
Fork 0
forked from goffee/core
core/template/components/content_list.html
2025-08-26 13:31:13 -05:00

16 lines
No EOL
662 B
HTML

{{define "content_list"}}
<ul class="list-group" {{ if .ID }}id="{{.ID}}"{{end}}>
{{ range .Items}}
<li class="list-group-item text-wrap {{if eq .IsDisabled true}}disabled{{end}}
{{if .TypeClass}}list-group-item-{{.TypeClass}}{{end}}"
{{if eq .IsDisabled true}}aria-disabled="true"{{end}}
{{ if .ID }}id="{{.ID}}"{{end}}
><div class="d-flex justify-content-between lh-sm"><p class="mb-1">{{.Text}}</p><span class="text-body-secondary ms-5">{{.EndElement}}</span></div>
<small>{{.Description}}</small>
</li>
{{end}}
</ul>
{{end}}