webseite-grav/plugins/form/templates/forms/layouts/button.html.twig

13 lines
335 B
Twig
Raw Permalink Normal View History

2021-04-30 11:23:26 +02:00
{% set button_tag %}
<button
{% block embed_button_core %}{% endblock %}
{% block embed_button_classes %}{% endblock %}
>{%- block embed_button_content -%}{%- endblock -%}</button>
{% endset %}
{% if button_url %}
<a href="{{ button_url|e }}">{{ button_tag|trim|raw }}</a>
{% else %}
{{ button_tag|trim|raw }}
{% endif %}