feat: streamlined alerts
This commit is contained in:
@@ -12,12 +12,8 @@
|
||||
{% include '_partials/_toast.html.twig' with { level: 'info', messages: ['Bitte lade ein Foto von dir hoch'] } %}
|
||||
{% endif %}
|
||||
{% if news is not null %}
|
||||
<div class="{{ html_classes('p-4 mb-4 flex items-start space-x-2 text-gray-100 rounded-md', { 'bg-blue-600': news.status == 1, 'bg-red-600': news.status == 2 }) }}">
|
||||
{{ icon('alert', 'w-5 h-5 flex-shrink-0') }}
|
||||
<div class="leading-relaxed text-base">
|
||||
{{ news.message | nl2br }}
|
||||
</div>
|
||||
</div>
|
||||
{% set alertType = news.status == 2 ? 'warning' : 'info' %}
|
||||
{% include '_partials/_alert.html.twig' with { 'type': alertType, 'message': news.message } %}
|
||||
{% endif %}
|
||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
||||
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||
@@ -169,4 +165,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user