forked from goffee/core
components: buttons, dropdown, href, nav
This commit is contained in:
parent
bfde0cc445
commit
7073cd1c21
9 changed files with 106 additions and 19 deletions
6
template/components/form_href.html
Normal file
6
template/components/form_href.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{define "form_href"}}
|
||||
<a class="{{if eq .IsButton true}} btn btn-{{.TypeClass}}{{end}} {{if eq .IsDisabled true}}disabled{{end}}"
|
||||
href="{{.Link}}" {{if eq .IsButton true}}role="button"{{end}} {{if eq .IsDisabled true}}aria-disabled="true"{{end}}>
|
||||
{{.Text}}
|
||||
</a>
|
||||
{{end}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue