feat(procedure_revision.compate): track and show diff for TypeDeChamp.explication between draft and published revisions

This commit is contained in:
Martin 2023-12-19 10:44:51 +01:00
parent f7feca5fd1
commit e43c2f1407
6 changed files with 25 additions and 11 deletions

View file

@ -9,4 +9,4 @@
.fr-collapse{ id: dom_id(@champ, :explanation) }
= render SimpleFormatComponent.new(@champ.collapsible_explanation_text, allow_a: true)
- if notice_explicative.attached?
= render Dsfr::DownloadComponent.new(attachment: notice_explicative, virus_not_analyzed: !notice_explicative.virus_scanner.started?, new_tab: true)
= render Dsfr::DownloadComponent.new(attachment: notice_explicative, virus_not_analyzed: !notice_explicative.virus_scanner.started?, new_tab: true)

View file

@ -24,6 +24,7 @@ fr:
update_drop_down_secondary_description: La description secondaire du champ « %{label} » a été modifiée. La nouvelle description est « %{to} ».
update_type_champ: Le type du champ « %{label} » a été modifié. Il est maintenant de type « %{to} ».
update_piece_justificative_template: Le modèle de pièce justificative du champ « %{label} » a été modifié.
update_notice_explicative: La notice explicative du champ « %{label} » a été modifiée.
update_drop_down_options: "Les options de sélection du champ « %{label} » ont été modifiées :"
update_drop_down_options_alert: "Le champ « %{label} » est utilisé pour le routage des dossiers. Veuillez mettre à jour la configuration des groupes d'instructeurs après avoir publié les modifications."
enable_mandatory: Le champ « %{label} » est maintenant obligatoire.
@ -59,6 +60,7 @@ fr:
update_drop_down_secondary_description: La description secondaire de lannotation « %{label} » a été modifiée. La nouvelle description est « %{to} ».
update_type_champ: Le type de lannotation privée « %{label} » a été modifié. Elle est maintenant de type « %{to} ».
update_piece_justificative_template: Le modèle de pièce justificative de lannotation privée « %{label} » a été modifié.
update_notice_explicative: La notice explicative lannotation privée « %{label} » a été modifiée.
update_drop_down_options: "Les options de sélection de lannotation privée « %{label} » ont été modifiées :"
update_carte_layers: "Les référentiels cartographiques de lannotation privée « %{label} » ont été modifiés :"
enable_drop_down_other: Lannotation privée « %{label} » comporte maintenant un choix « Autre ».

View file

@ -59,6 +59,9 @@
- when :piece_justificative_template
- list.with_item do
= t(".#{prefix}.update_piece_justificative_template", label: change.label)
- when :notice_explicative
- list.with_item do
= t(".#{prefix}.update_notice_explicative", label: change.label)
- when :drop_down_options
- added = change.to.sort - change.from.sort
- removed = change.from.sort - change.to.sort