diff --git a/template/components/content_dropdown.go b/template/components/content_dropdown.go new file mode 100644 index 0000000..1040060 --- /dev/null +++ b/template/components/content_dropdown.go @@ -0,0 +1,15 @@ +package components + +type ContentDropdown struct { + Label string + TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, link, outline-primary + IsDisabled bool + Items []ContentDropdownItem +} + +type ContentDropdownItem struct { + Text string + Link string + IsDisabled bool + IsActive bool +} diff --git a/template/components/form_dropdown.html b/template/components/content_dropdown.html similarity index 79% rename from template/components/form_dropdown.html rename to template/components/content_dropdown.html index 2c6827b..ce83a26 100644 --- a/template/components/form_dropdown.html +++ b/template/components/content_dropdown.html @@ -1,15 +1,15 @@ -{{define "form_dropdown_item"}} +{{define "content_dropdown_item"}}
  • {{.Text}}
  • {{end}} -{{define "form_dropdown"}} +{{define "content_dropdown"}} diff --git a/template/components/form_href.go b/template/components/content_href.go similarity index 88% rename from template/components/form_href.go rename to template/components/content_href.go index 25dbee3..143ca80 100644 --- a/template/components/form_href.go +++ b/template/components/content_href.go @@ -1,6 +1,6 @@ package components -type FormHref struct { +type ContentHref struct { Text string Link string Icon string diff --git a/template/components/form_href.html b/template/components/content_href.html similarity index 88% rename from template/components/form_href.html rename to template/components/content_href.html index dc9adb3..f4980ac 100644 --- a/template/components/form_href.html +++ b/template/components/content_href.html @@ -1,4 +1,4 @@ -{{define "form_href"}} +{{define "content_href"}} {{.Text}} diff --git a/template/components/form_dropdown.go b/template/components/form_dropdown.go deleted file mode 100644 index b80d8f1..0000000 --- a/template/components/form_dropdown.go +++ /dev/null @@ -1,15 +0,0 @@ -package components - -type FormDropdown struct { - Label string - TypeClass string - IsDisabled bool - Items []FormDropdownItem -} - -type FormDropdownItem struct { - Text string - Link string - IsDisabled bool - IsActive bool -}