Compare commits
No commits in common. "3d67bc0a0335f9f79a065637a93f6f0af2dae429" and "e8f7ab40b52685c645584455bcb44f05569177c0" have entirely different histories.
3d67bc0a03
...
e8f7ab40b5
2 changed files with 3 additions and 7 deletions
|
|
@ -1,12 +1,10 @@
|
||||||
package components
|
package components
|
||||||
|
|
||||||
type ContentList struct {
|
type ContentList struct {
|
||||||
ID string
|
|
||||||
Items []ContentListItem
|
Items []ContentListItem
|
||||||
}
|
}
|
||||||
|
|
||||||
type ContentListItem struct {
|
type ContentListItem struct {
|
||||||
ID string
|
|
||||||
Text string
|
Text string
|
||||||
Description string
|
Description string
|
||||||
EndElement string
|
EndElement string
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
{{define "content_list"}}
|
{{define "content_list"}}
|
||||||
<ul class="list-group" {{ if .ID }}id="{{.ID}}"{{end}}>
|
<ul class="list-group">
|
||||||
{{ range .Items}}
|
{{ range .Items}}
|
||||||
<li class="list-group-item text-wrap {{if eq .IsDisabled true}}disabled{{end}}
|
<li class="list-group-item text-wrap {{if eq .IsDisabled true}}disabled{{end}} {{if .TypeClass}}list-group-item-{{.TypeClass}}{{end}}"
|
||||||
{{if .TypeClass}}list-group-item-{{.TypeClass}}{{end}}"
|
{{if eq .IsDisabled true}}aria-disabled="true"{{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>
|
><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>
|
<small>{{.Description}}</small>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue