remove card historique des modifications

This commit is contained in:
Lisa Durand 2024-05-28 14:56:32 +02:00
parent a900718299
commit 1bc7cfd917
6 changed files with 8 additions and 28 deletions

View file

@ -1,9 +0,0 @@
class Procedure::Card::ModificationsComponent < ApplicationComponent
def initialize(procedure:)
@procedure = procedure
end
def render?
@procedure.revised?
end
end

View file

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

View file

@ -1,12 +0,0 @@
.fr-col-6.fr-col-md-4.fr-col-lg-3
= link_to modifications_admin_procedure_path(@procedure), id: 'modifications', class: 'fr-tile fr-enlarge-link' do
.fr-tile__body.flex.column.align-center.justify-between
%p.fr-badge.fr-badge--success Activée
%div
.line-count.fr-my-1w
%p.fr-tag= @procedure.revisions_count
%h3.fr-h6
= t('.title', count: @procedure.revisions_count)
%p.fr-tile-subtitle Historique des modifications apportées au formulaire
%p.fr-btn.fr-btn--tertiary Voir

View file

@ -4,7 +4,11 @@
['Champs du formulaire']], preview: @procedure.draft_revision.valid? } ['Champs du formulaire']], preview: @procedure.draft_revision.valid? }
.fr-container .fr-container
.flex.justify-between.align-center.fr-mb-3w
%h1.fr-h2 Champs du formulaire %h1.fr-h2 Champs du formulaire
- if @procedure.revised?
= link_to "Voir l'historique des modifications du formulaire", modifications_admin_procedure_path(@procedure), class: 'fr-link'
= render NestedForms::FormOwnerComponent.new = render NestedForms::FormOwnerComponent.new
.fr-grid-row .fr-grid-row
= render partial: 'champs_summary' = render partial: 'champs_summary'

View file

@ -1,8 +1,11 @@
= 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)],
['Champs du formulaire', champs_admin_procedure_path(@procedure)],
['Historique des modifications du formulaire']] } ['Historique des modifications du formulaire']] }
.fr-container .fr-container
.fr-mb-3w
= link_to "Champs du formulaire", champs_admin_procedure_path(@procedure), class: "fr-link fr-icon-arrow-left-line fr-link--icon-left"
%h1.fr-h2 %h1.fr-h2
Historique des modifications du formulaire Historique des modifications du formulaire

View file

@ -75,7 +75,6 @@
= render Procedure::Card::ServiceComponent.new(procedure: @procedure, administrateur: current_administrateur) = render Procedure::Card::ServiceComponent.new(procedure: @procedure, administrateur: current_administrateur)
= render Procedure::Card::AdministrateursComponent.new(procedure: @procedure) = render Procedure::Card::AdministrateursComponent.new(procedure: @procedure)
= render Procedure::Card::InstructeursComponent.new(procedure: @procedure) = render Procedure::Card::InstructeursComponent.new(procedure: @procedure)
= render Procedure::Card::ModificationsComponent.new(procedure: @procedure)
%h3.fr-h6 Pour aller plus loin %h3.fr-h6 Pour aller plus loin
.fr-grid-row.fr-grid-row--gutters.fr-mb-5w .fr-grid-row.fr-grid-row--gutters.fr-mb-5w