[TASK] refactor alert messages

This commit is contained in:
Marie Birner
2023-04-07 09:57:38 +02:00
parent 1490b191af
commit 7190e14c2f
5 changed files with 19 additions and 20 deletions

View File

@ -34,3 +34,10 @@
<input type="checkbox" id="{{ name }}{{ id }}" name="{{ name }}" {% if checked %} checked {% endif %} class="h-4 w-4 accent-primary-600 mr-2"/> {{ label }}
</label>
{% endmacro checkbox %}
{% macro alert(message, type, class='') %}
<div class="{{ class }} alert-{{ type }} text-white px-3 py-1 rounded-md text-center">
{{ message }}
</div>
{% endmacro alert %}