Update Terms of Use Modal and fix message flashing.

This commit is contained in:
Patrick Jentsch
2025-06-03 13:51:28 +02:00
parent c28d534942
commit 56844e0898
8 changed files with 53 additions and 28 deletions

View File

@ -19,12 +19,10 @@
</div>
<div class="modal-footer">
{% if current_user.is_authenticated %}
{% if current_user.terms_of_use_accepted %}
<a href="#!" class="btn-flat waves-effect waves-light modal-close">Close</a>
{% if current_user.is_authenticated and not current_user.terms_of_use_accepted %}
<a href="#!" class="btn waves-effect waves-light modal-close" id="terms-of-use-modal-accept-button">Accept</a>
{% else %}
<a href="#!" class="btn waves-effect waves-light modal-close">Accept</a>
{% endif %}
<a href="#!" class="btn-flat waves-effect waves-light modal-close">Close</a>
{% endif %}
</div>
</div>