mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 18:01:30 +00:00
Fixed flash messages in admin pages
This commit is contained in:
parent
20a3ed27ca
commit
0b21c2656c
2 changed files with 9 additions and 16 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
{% block flashes %}
|
{% block flashes %}
|
||||||
{# Insert flashes #}
|
{# Insert flashes #}
|
||||||
<turbo-stream action="replace" action="morph" target="toast-container">
|
<turbo-stream action="update" action="morph" target="toast-container">
|
||||||
<template>
|
<template>
|
||||||
<div class="toast-container" id="toast-container">
|
|
||||||
{% for label, messages in app.flashes() %}
|
{% for label, messages in app.flashes() %}
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
{{ include('_toast.html.twig', {
|
{{ include('_toast.html.twig', {
|
||||||
|
|
@ -11,13 +10,10 @@
|
||||||
}) }}
|
}) }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</turbo-stream>
|
</turbo-stream>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{# Insert info about when the sidebar trees were updated last time, so the sidebar_tree_controller can decide if it needs to reload the tree #}
|
{# Insert info about when the sidebar trees were updated last time, so the sidebar_tree_controller can decide if it needs to reload the tree #}
|
||||||
<span id="sidebar-last-time-updated" style="display: none;" data-last-update="{{ sidebar_tree_updater.lastTreeUpdate.format("Y-m-d\\TH:i:sP") }}"></span>
|
<span id="sidebar-last-time-updated" style="display: none;" data-last-update="{{ sidebar_tree_updater.lastTreeUpdate.format("Y-m-d\\TH:i:sP") }}"></span>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -195,9 +195,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{# Include turbo control things, so we can still control page title and reloading #}
|
|
||||||
{% include "_turbo_control.html.twig" %}
|
|
||||||
</turbo-frame>
|
</turbo-frame>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue