1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 03:58:26 +02:00

Sidebar structure

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-02-11 19:21:27 +01:00
parent 196ccb69ad
commit e7c207d2af
3 changed files with 207 additions and 172 deletions

View File

@ -1,13 +1,21 @@
{% load i18n %}
<div>
{% if user.is_authenticated and not user.registration.email_confirmed %}
<div class="alert alert-warning" role="alert">
{% url "registration:email_validation_resend" pk=user.pk as send_email_url %}
{% blocktrans trimmed %}
Your email address is not validated. Please click on the link you received by email.
You can resend a mail by clicking on <a href="{{ send_email_url }}">this link</a>.
{% endblocktrans %}
{% if user.is_authenticated %}
<div class="card">
<div class="card-header bg-dark-subtle">
<h3 class="card-title">{% trans "Informations" %}</h3>
</div>
{% endif %}
</div>
<div class="card-body">
{% for information in user.registration.important_informations %}
<div class="card">
<div class="card-header bg-dark-subtle">
<h4 class="card-title">{{ information.title }}</h4>
</div>
<div class="card-body bg-warning-subtle">
{{ information.content|safe }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}