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.
23 lines
585 B
23 lines
585 B
{# Learn how to use Turbo Streams: https://github.com/symfony/ux-turbo#broadcast-doctrine-entities-update #}
|
|
{% block create %}
|
|
<turbo-stream action="append" target="twoks">
|
|
<template>
|
|
<div id="{{ 'twok_' ~ id }}">
|
|
#{{ id }} created
|
|
</div>
|
|
</template>
|
|
</turbo-stream>
|
|
{% endblock %}
|
|
|
|
{% block update %}
|
|
<turbo-stream action="update" target="twok_{{ id }}">
|
|
<template>
|
|
#{{ id }} updated
|
|
</template>
|
|
</turbo-stream>
|
|
{% endblock %}
|
|
|
|
{% block remove %}
|
|
<turbo-stream action="remove" target="twok_{{ id }}"></turbo-stream>
|
|
{% endblock %}
|