Finesse cookie dismiss button

This commit is contained in:
Vivek Santayana 2021-12-07 07:22:11 +00:00
parent 14272ba0b8
commit 7b1ae3b354
2 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,9 @@
<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 }}
<button type="button" id="dismiss-cookie-alert" class="btn btn-success" data-bs-dismiss="alert" aria-label="Close">Accept</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>
{% set cookie_flash_flag.value = True %} {% set cookie_flash_flag.value = True %}
{% endif %} {% endif %}

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 %}