style(demande): fix identity updated at mention

This commit is contained in:
Colin Darie 2023-06-27 12:53:12 +02:00
parent 899f671aed
commit acd95177d4
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
3 changed files with 10 additions and 7 deletions

View file

@ -13,7 +13,13 @@
.tab-title .tab-title
%h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex %h2.fr-h6.fr-background-alt--grey.fr-mb-0.flex
.flex-grow.fr-py-3v.fr-px-4v= t('views.shared.dossiers.demande.requester_identity') .flex-grow.fr-py-3v.fr-px-4v
= t('views.shared.dossiers.demande.requester_identity')
- if dossier.identity_updated_at.present? && demande_seen_at&.<(dossier.identity_updated_at)
%span.fr-badge.fr-badge--new.fr-badge--sm
= t('views.shared.dossiers.demande.requester_identity_updated_at', date: try_format_datetime(dossier.identity_updated_at))
- if dossier.etablissement.present? && profile == 'usager' && !dossier.read_only? - if dossier.etablissement.present? && profile == 'usager' && !dossier.read_only?
= link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline' = link_to t('views.shared.dossiers.demande.edit_siret'), siret_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline'
@ -21,11 +27,6 @@
= link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline' = link_to t('views.shared.dossiers.demande.edit_identity'), identite_dossier_path(dossier), class: 'fr-py-3v fr-btn fr-btn--tertiary-no-outline'
- if dossier.identity_updated_at.present? && demande_seen_at&.<(dossier.identity_updated_at)
%span.highlighted
modifié le
= try_format_datetime(dossier.identity_updated_at)
.fr-my-4v.fr-px-4v .fr-my-4v.fr-px-4v
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display) } = render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display) }

View file

@ -331,7 +331,7 @@ en:
best_regards: Best Regards, best_regards: Best Regards,
dossiers: dossiers:
form: form:
updated_at: "updated at %{datetime}" updated_at: "updated on %{datetime}"
edit: edit:
autosave: Your file is automatically saved after each modification. You can close the window at any time and pick up where you left off later. autosave: Your file is automatically saved after each modification. You can close the window at any time and pick up where you left off later.
notice: "Download the notice of the procedure" notice: "Download the notice of the procedure"
@ -344,6 +344,7 @@ en:
write_message_to_administration_placeholder: "Write your message to the administration here" write_message_to_administration_placeholder: "Write your message to the administration here"
demande: demande:
requester_identity: "Identity of the requester" requester_identity: "Identity of the requester"
requester_identity_updated_at: "updated on %{date}"
my_identity: "My identity" my_identity: "My identity"
form: "Form" form: "Form"
edit_siret: "Edit SIRET" edit_siret: "Edit SIRET"

View file

@ -345,6 +345,7 @@ fr:
demande: demande:
en_construction: "Date de dépôt du dossier" en_construction: "Date de dépôt du dossier"
requester_identity: "Identité du demandeur" requester_identity: "Identité du demandeur"
requester_identity_updated_at: "modifiée le %{date}"
my_identity: "Mon identité" my_identity: "Mon identité"
form: "Sections du formulaire" form: "Sections du formulaire"
edit_siret: "Modifier le SIRET" edit_siret: "Modifier le SIRET"