amelioration(design): utilise le modele du dsfr pour avoir les boutons en pleinne largueur sur les page de connexion/creation de compte

This commit is contained in:
Martin 2023-09-15 17:20:44 +02:00 committed by mfo
parent 038b4cd10b
commit 876e5ef231
2 changed files with 8 additions and 6 deletions

View file

@ -22,4 +22,5 @@
- c.describedby do - c.describedby do
= render partial: "devise/password_rules", locals: { id: c.describedby_id } = render partial: "devise/password_rules", locals: { id: c.describedby_id }
= f.submit t('views.shared.account.create'), class: "fr-btn fr-btn--lg" %ul.fr-btns-group
%li= f.submit t('views.shared.account.create'), class: "fr-btn"

View file

@ -29,11 +29,12 @@
= f.check_box :remember_me = f.check_box :remember_me
= f.label :remember_me, t('views.users.sessions.new.remember_me'), class: 'remember-me' = f.label :remember_me, t('views.users.sessions.new.remember_me'), class: 'remember-me'
.fr-fieldset__element
= f.submit t('views.users.sessions.new.connection'), class: "fr-btn fr-btn--lg" %ul.fr-btns-group
%li= f.submit t('views.users.sessions.new.connection'), class: "fr-btn fr-btn--lg"
- if AgentConnectService.enabled? - if AgentConnectService.enabled?
%p.fr-hr-or= t('views.shared.france_connect_login.separator') %p.fr-hr-or= t('views.shared.france_connect_login.separator')
.center %h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant')
%h2.important-header.mb-1= t('views.users.sessions.new.state_civil_servant') %ul.fr-btns-group
= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary" %li= link_to t('views.users.sessions.new.connect_with_agent_connect'), agent_connect_path, class: "fr-btn fr-btn--secondary"