Skip to content

Commit

Permalink
Fix history table with new dsfr
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Jul 18, 2024
1 parent ad4a803 commit 8889396
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions mesads/templates/webpack/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ <h1>Historique des changements</h1>
{% for revision, objects in history.get_revisions %}
{% for cls, objects_ids in objects.items %}
{% for object_id, diff in objects_ids.items %}
<div class="fr-table fr-table--bordered">
<table>
<div class="fr-table fr-table--lg" id="table-history">
<div class="fr-table__wrapper">
<div class="fr-table__container">
<div class="fr-table__content">
<table id="table-history">
<caption>Changement du {{ revision.date_created|date:"d/m/Y" }} par {{ revision.user.email }}</caption>
<thead>
{% if "deleted_at" in diff.changed_fields.keys|selectattr:"name" %}
Expand Down Expand Up @@ -64,8 +67,11 @@ <h1>Historique des changements</h1>
{% endfor %}
{% endif %}
</tbody>
</table>
</table >
</div>
</div>
</div>
</div>
{% endfor %}
{% endfor %}
{% empty %}
Expand Down

0 comments on commit 8889396

Please sign in to comment.