hegresphere/templates/broadcast/FAQ.stream.html.twig

23 lines
641 B
Twig
Raw Permalink Normal View History

2024-09-26 17:23:24 +02:00
{# Learn how to use Turbo Streams: https://github.com/symfony/ux-turbo#broadcast-doctrine-entities-update #}
{% block create %}
<turbo-stream action="append" target="f_a_qs">
<template>
<div id="{{ 'f_a_q_' ~ id }}">
#{{ id }} created
</div>
</template>
</turbo-stream>
{% endblock %}
{% block update %}
<turbo-stream action="update" target="f_a_q_{{ id }}">
<template>
#{{ id }} updated
</template>
</turbo-stream>
{% endblock %}
{% block remove %}
<turbo-stream action="remove" target="f_a_q_{{ id }}"></turbo-stream>
{% endblock %}