page modifications historique

This commit is contained in:
Lisa Durand 2024-05-22 16:31:42 +02:00
parent 659e4ffb61
commit 1cec1b91c1
3 changed files with 13 additions and 7 deletions

View file

@ -1,5 +1,5 @@
--- ---
fr: fr:
title: title:
one: Modification one: Modification du formulaire
other: Modifications other: Modifications du formulaire

View file

@ -8,5 +8,5 @@
%h3.fr-h6 %h3.fr-h6
= t('.title', count: @procedure.revisions_count) = t('.title', count: @procedure.revisions_count)
%p.fr-tile-subtitle Historique des modifications du formulaire %p.fr-tile-subtitle Historique des modifications apportées au formulaire
%p.fr-btn.fr-btn--tertiary Voir %p.fr-btn.fr-btn--tertiary Voir

View file

@ -1,12 +1,12 @@
= render partial: 'administrateurs/breadcrumbs', = render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)], locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)], [@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
['Modifications']] } ['Historique des modifications du formulaire']] }
.container .fr-container
%h1.page-title %h1.fr-h2
Historique des modifications du formulaire Historique des modifications du formulaire
.container .fr-container
- previous_revision = nil - previous_revision = nil
- @procedure.revisions.each do |revision| - @procedure.revisions.each do |revision|
- if previous_revision.present? && !revision.draft? - if previous_revision.present? && !revision.draft?
@ -30,3 +30,9 @@
%p= t('.dossiers_en_instruction', count: dossiers_en_instruction_count) %p= t('.dossiers_en_instruction', count: dossiers_en_instruction_count)
= render Procedure::RevisionChangesComponent.new changes:, previous_revision: = render Procedure::RevisionChangesComponent.new changes:, previous_revision:
- previous_revision = revision - previous_revision = revision
.padded-fixed-footer
.fixed-footer.fr-pb-2w
.fr-container
= link_to admin_procedure_path(id: @procedure), class: 'fr-link fr-icon-arrow-left-line fr-link--icon-left' do
Revenir à l'écran de gestion