mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-28 19:47:14 +02:00
feat: automated replacement
This commit is contained in:
@@ -2,19 +2,25 @@
|
||||
{% load toast_bg %}
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div class="toast align-items-center text-bg-{{ message.tags | toast_bg }} border-0"
|
||||
<div class="tw:alert tw:alert-{{ message.tags | toast_bg }}"
|
||||
role="alert"
|
||||
aria-live="assertive"
|
||||
aria-atomic="true">
|
||||
<div class="toast-header">
|
||||
<i class="{{ message.tags | toast_icon }} fa-fw me-1"></i>
|
||||
<strong class="me-auto">{{ message.tags | toast_title }}</strong>
|
||||
<div class="tw:flex tw:items-center tw:justify-between tw:w-full">
|
||||
<div class="tw:flex tw:items-center tw:gap-2">
|
||||
<i class="{{ message.tags | toast_icon }} fa-fw"></i>
|
||||
<div>
|
||||
<strong>{{ message.tags | toast_title }}</strong>
|
||||
<div>{{ message }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button"
|
||||
class="btn-close"
|
||||
class="tw:btn tw:btn-ghost tw:btn-sm tw:btn-circle"
|
||||
data-bs-dismiss="toast"
|
||||
aria-label={% translate 'Close' %}></button>
|
||||
aria-label={% translate 'Close' %}>
|
||||
<i class="fa-solid fa-xmark"></i>
|
||||
</button>
|
||||
</div>
|
||||
<div class="toast-body">{{ message }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user