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.

17 lines
755B

  1. {{ $type := .Get "type" }}
  2. {{ $body := .Get "text" | default .Inner }}
  3. {{ $isghost := .Get "isghost" }}
  4. {{ $isblock := .Get "isblock" }}
  5. {{ $id := .Get "id" }}
  6. {{ $name := .Get "name" }}
  7. {{ $class := .Get "class" }}
  8. {{ $action := .Get "action" }}
  9. {{ $form := .Get "form" }}
  10. {{ $value := .Get "value" }}
  11. {{ $onclick := .Get "onclick" }}
  12. {{ $disabled := .Get "disabled" }}
  13. {{ $tabindex := .Get "tabindex" }}
  14. {{ $target := .Get "target" }}
  15. {{ $method := .Get "method" }}
  16. {{ partial "components/button.html" (dict "type" $type "body" $body "isghost" $isghost "isblock" $isblock "action" $action "form" $form "value" $value "onclick" $onclick "id" $id "name" $name "class" $class "disabled" $disabled "tabindex" $tabindex "target" $target "method" $method) }}