You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
<!-- {{/*
|
|
Basic usage:
|
|
{{< hackcss-buttongroup >}}
|
|
{{< hackcss-button text="Left" />}}
|
|
{{< hackcss-button text="Middle" type="info" />}}
|
|
{{< hackcss-button text="Right" isghost="true" />}}
|
|
{{< /hackcss-buttongroup >}}
|
|
|
|
{{< hackcss-buttongroup >}}
|
|
{{< hackcss-button text="Left" action="/go/somewhere" />}}
|
|
{{< /hackcss-buttongroup >}}
|
|
|
|
Advanced usage:
|
|
{{< hackcss-buttongroup action="/go/somewhere" method="post" >}}
|
|
{{< hackcss-button text="Left" target="_self" />}}
|
|
{{< hackcss-button text="Right" isghost="true" />}}
|
|
{{< /hackcss-buttongroup >}}
|
|
|
|
{{< hackcss-buttongroup action="/do/something" target="_blank" >}}
|
|
<input type="hidden" name="AssociateTag" value="jhabdas-20">
|
|
<input type="hidden" name="ASIN.1" value="B0736PV196">
|
|
<input type="hidden" name="Quantity.1" value="2">
|
|
{{< hackcss-button text="Print" action="javascript:window.print()" />}}
|
|
{{< hackcss-button text="Purchase" isghost="true" />}}
|
|
{{< /hackcss-buttongroup >}}
|
|
|
|
*/}} -->
|
|
{{ $action := .Get "action" }}
|
|
{{ $target := .Get "target" }}
|
|
{{ $method := .Get "method" }}
|
|
{{ $body := .Get "body" | default .Inner }}
|
|
{{ partial "components/buttongroup.html" (dict "action" $action "target" $target "method" $method "body" $body)}} |