html-over-websockets-with-d.../app/website/templates/components/link.html

14 lines
489 B
HTML
Raw Normal View History

2021-11-21 09:21:39 +01:00
<form class="link">
2021-11-20 19:54:57 +01:00
{# Primary data #}
<input type="hidden" name="action" value="{{ action }}">
<input type="hidden" name="value" value="{{ value }}">
{# Secondary data #}
{% if page %}
<input type="hidden" name="page" value="{{ page }}">
{% endif %}
2021-11-21 09:34:54 +01:00
{% if id %}
<input type="hidden" name="id" value="{{ id }}">
{% endif %}
2021-11-20 19:54:57 +01:00
{# Button #}
2021-11-21 09:34:54 +01:00
<a class="link__button" type="button" hx-ws="send" hx-trigger="click">{{ children }}</a>
2021-11-20 19:54:57 +01:00
</form>