Skip to content

Commit

Permalink
Ajoute le bouton pro connect sur la vue users/sign_in
Browse files Browse the repository at this point in the history
  • Loading branch information
kara22 committed Oct 23, 2024
1 parent 67c7742 commit 0a49fd2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 2 additions & 5 deletions app/views/users/sessions/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
%h1.fr-h2= t('views.users.sessions.new.sign_in', application_name: Current.application_name)

= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
= render partial: 'shared/pro_connect_login', locals: { url: agent_connect_login_path }
%p.fr-hr-or= t('views.shared.france_connect_login.separator')

%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'new-account-legend' } }
%legend.fr-fieldset__legend#new-account-legend
Expand All @@ -31,8 +33,3 @@

.fr-fieldset__element
.fr-btns-group= f.submit t('views.users.sessions.new.connection'), class: "fr-btn"

- if AgentConnectService.enabled?
%p.fr-hr-or= t('views.shared.france_connect_login.separator')
%h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant')
.fr-btns-group= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary"
2 changes: 0 additions & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,6 @@ en:
reset_password: Forgot password?
connection: Sign in
find_procedure: Find your procedure
state_civil_servant: Are you a state civil servant?
connect_with_agent_connect: Visit our dedicated page
subtitle: "Sign in with my account"
for_tiers_alert: If you are completing a forme for someone else, you must use your own credentials.
link_sent:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,6 @@ fr:
reset_password: Mot de passe oublié ?
connection: Se connecter
find_procedure: Trouvez votre démarche
state_civil_servant: Vous êtes agent de la fonction publique d’État ?
connect_with_agent_connect: Accédez à notre page dédiée
subtitle: "Se connecter avec son compte"
for_tiers_alert: Si vous remplissez un dossier pour un tiers, vous devez utiliser vos propres identifiants.
link_sent:
Expand Down

0 comments on commit 0a49fd2

Please sign in to comment.