page modifications historique
This commit is contained in:
parent
659e4ffb61
commit
1cec1b91c1
3 changed files with 13 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
fr:
|
||||
title:
|
||||
one: Modification
|
||||
other: Modifications
|
||||
one: Modification du formulaire
|
||||
other: Modifications du formulaire
|
||||
|
|
|
@ -8,5 +8,5 @@
|
|||
%h3.fr-h6
|
||||
= 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
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Modifications']] }
|
||||
.container
|
||||
%h1.page-title
|
||||
['Historique des modifications du formulaire']] }
|
||||
.fr-container
|
||||
%h1.fr-h2
|
||||
Historique des modifications du formulaire
|
||||
|
||||
.container
|
||||
.fr-container
|
||||
- previous_revision = nil
|
||||
- @procedure.revisions.each do |revision|
|
||||
- if previous_revision.present? && !revision.draft?
|
||||
|
@ -30,3 +30,9 @@
|
|||
%p= t('.dossiers_en_instruction', count: dossiers_en_instruction_count)
|
||||
= render Procedure::RevisionChangesComponent.new changes:, previous_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
|
||||
|
|
Loading…
Reference in a new issue