ui: users: Fix close button for confirmation dialog for Bootstrap 5

- Also place the body content in <p> for improved semantics and suggested by
Bootstrap.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2024-11-15 16:37:58 -08:00 committed by Veiko Aasa
parent 618a0caec3
commit 7602cf6172
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -42,17 +42,18 @@
Delete user <em>{{ username }}</em> and all the user's files? Delete user <em>{{ username }}</em> and all the user's files?
{% endblocktrans %} {% endblocktrans %}
</h5> </h5>
<button type="button" class="close" data-bs-dismiss="modal" <button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="{% trans 'Close' %}"> aria-label="{% trans 'Close' %}">
<span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<p>
{% blocktrans trimmed %} {% blocktrans trimmed %}
Deleting a user account also removes all the files user's home Deleting a user account also removes all the files user's home
directory. If you wish to keep these files, disable the user account directory. If you wish to keep these files, disable the user
instead. account instead.
{% endblocktrans %} {% endblocktrans %}
</p>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-danger confirm"> <button type="button" class="btn btn-danger confirm">