refactor(fc_info): use Dsfr::Notice for france connect informations
This commit is contained in:
parent
ab82128585
commit
fcb478eb53
15 changed files with 73 additions and 77 deletions
|
@ -100,3 +100,6 @@
|
|||
%li.fr-nav__item= active_link_to t('.files'), dossiers_path, active: :inclusive, class: 'fr-nav__link'
|
||||
- if current_user.expert && current_expert.avis_summary[:total] > 0
|
||||
= render partial: 'layouts/header/avis_tab', locals: { current_expert: current_expert }
|
||||
|
||||
= yield(:notice_info)
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
= render partial: "layouts/header"
|
||||
%main{ role: :main }
|
||||
= render partial: "layouts/flash_messages"
|
||||
|
||||
= content_for?(:content) ? yield(:content) : yield
|
||||
|
||||
- if content_for?(:footer)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
- if dossier.france_connect_information.present?
|
||||
- content_for(:notice_info) do
|
||||
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
|
||||
|
||||
.container
|
||||
- if dossier.depose_at.present?
|
||||
.card
|
||||
|
@ -11,9 +15,6 @@
|
|||
modifié le
|
||||
= try_format_datetime(dossier.identity_updated_at)
|
||||
|
||||
- if dossier.france_connect_information.present?
|
||||
= render partial: "shared/dossiers/france_connect_informations", locals: { user_information: dossier.france_connect_information }
|
||||
|
||||
.card
|
||||
= render partial: "shared/dossiers/user_infos", locals: { user_deleted: dossier.user_deleted?, email: dossier.user_email_for(:display) }
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
- if dossier.france_connect_information.present?
|
||||
- content_for(:notice_info) do
|
||||
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
|
||||
|
||||
.dossier-edit.container
|
||||
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
|
||||
|
||||
|
@ -22,9 +26,6 @@
|
|||
class: "fr-btn fr-btn--secondary mt-2",
|
||||
title: t("views.shared.dossiers.edit.notice_title"), **external_link_attributes
|
||||
|
||||
- if dossier.france_connect_information.present?
|
||||
= render partial: "shared/dossiers/france_connect_informations", locals: { user_information: dossier.france_connect_information }
|
||||
|
||||
- if dossier.show_groupe_instructeur_selector?
|
||||
%span{ data: { controller: 'autosave' } }
|
||||
= f.label :groupe_instructeur_id do
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
.fr-tile.fr-tile--horizontal.mb-4
|
||||
.fr-tile__body
|
||||
%h4.fr-tile__title
|
||||
FranceConnect
|
||||
%p
|
||||
- if user_information.full_name.empty?
|
||||
= t("views.shared.dossiers.france_connect_informations.details_no_name")
|
||||
- elsif user_information.updated_at.present?
|
||||
= t("views.shared.dossiers.france_connect_informations.details_updated", name: user_information.full_name, date: l(user_information.updated_at.to_date, format: :default))
|
||||
- else
|
||||
= t("views.shared.dossiers.france_connect_informations.details", name: user_information.full_name)
|
||||
.fr-tile__img
|
||||
= image_tag "logo-france-connect.png", alt: "", class: "fr-responsive-img"
|
|
@ -0,0 +1,3 @@
|
|||
= render Dsfr::NoticeComponent.new(closable: true) do |c|
|
||||
- c.with_title do
|
||||
= france_connect_informations(user_information)
|
Loading…
Add table
Add a link
Reference in a new issue