feat: add demo mode tests to ensure API is disabled on it

This commit is contained in:
Herculino Trotta
2026-06-27 18:02:31 -03:00
parent d0e9c05283
commit 106d721279
2 changed files with 157 additions and 3 deletions
+2 -3
View File
@@ -34,8 +34,7 @@
{% if demo_mode %}
<div class="px-3 m-0" id="demo-mode-alert" hx-preserve>
<div class="alert alert-warning my-3 relative" role="alert">
<strong>{% trans "This is a demo!" %}</strong> {% trans "Any data you add here will be wiped in 24hrs or less"
%}
<strong>{% trans "This is a demo!" %}</strong>{% trans "Any data you add here will be wiped in 24hrs or less" %}
<button type="button" class="btn btn-sm btn-ghost absolute right-2 top-1/2 -translate-y-1/2"
onclick="this.parentElement.style.display='none'" aria-label="Close"></button>
</div>
@@ -54,4 +53,4 @@
{% endblock extra_js_body %}
</body>
</html>
</html>