Skip to content

Commit

Permalink
🚸(dashboard) refactor the consent summary page HTML
Browse files Browse the repository at this point in the history
Refactored the consent summary page with the `dsfr`
Add alert message and cusomise it with the `dsfr` style
  • Loading branch information
ssorin committed Dec 6, 2024
1 parent a0d036a commit b5cce85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ <h3 class="fr-card__title">
</div>
<div class="fr-card__header">
<div class="fr-card__img">
{# djlint:off H006 #}
<img class="fr-responsive-img"
src="https://www.systeme-de-design.gouv.fr/img/placeholder.16x9.png"
alt=""/>
{# djlint:on #}
</div>
</div>
</div>
17 changes: 11 additions & 6 deletions src/dashboard/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
{% endblock header %}

{% block content %}
{% if messages %}
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}
</ul>
{% if messages %}
{% for message in messages %}
<div class="fr-grid-row fr-grid-row--gutters fr-mb-1w">
<div class="fr-col-12">
<div role="alert" class="fr-alert {% if message.tags %}fr-alert--{{ message.tags }}{% endif %}">
<p>{{ message }}</p>
</div>
</div>
</div>
{% endfor %}
{% endif %}

{% block dashboard_content %}{% endblock dashboard_content %}
{% endblock content %}

Expand Down

0 comments on commit b5cce85

Please sign in to comment.