Finesse cookie dismiss button

This commit is contained in:
Vivek Santayana 2021-12-07 07:22:11 +00:00
parent 8b4ca65122
commit 36ed23564d
2 changed files with 6 additions and 2 deletions

View File

@ -25,8 +25,10 @@
<div class="alert alert-primary alert-dismissible fade show" id="cookie-alert" role="alert"> <div class="alert alert-primary alert-dismissible fade show" id="cookie-alert" role="alert">
<i class="bi bi-info-circle-fill" title="Cookie Alert" aria-title="Cookie Alert"></i> <i class="bi bi-info-circle-fill" title="Cookie Alert" aria-title="Cookie Alert"></i>
{{ message|safe }} {{ message|safe }}
<div class="d-flex justify-content-center w-100">
<button type="button" id="dismiss-cookie-alert" class="btn btn-success" data-bs-dismiss="alert" aria-label="Close">Accept</button> <button type="button" id="dismiss-cookie-alert" class="btn btn-success" data-bs-dismiss="alert" aria-label="Close">Accept</button>
</div> </div>
</div>
{% set cookie_flash_flag.value = True %} {% set cookie_flash_flag.value = True %}
{% endif %} {% endif %}
{% else %} {% else %}

View File

@ -33,7 +33,9 @@
<div class="alert alert-primary alert-dismissible fade show" role="alert"> <div class="alert alert-primary alert-dismissible fade show" role="alert">
<i class="bi bi-info-circle-fill" title="Alert"></i> <i class="bi bi-info-circle-fill" title="Alert"></i>
{{ message|safe }} {{ message|safe }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> <div class="d-flex justify-content-center w-100">
<button type="button" id="dismiss-cookie-alert" class="btn btn-success" data-bs-dismiss="alert" aria-label="Close">Accept</button>
</div>
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}