Merge pull request #4930 from betagouv/4890-accessibilite

Améliorations d'accessibilité (CGU, pieds-de-page, sélection du genre)
This commit is contained in:
Pierre de La Morinerie 2020-03-25 10:58:45 +01:00 committed by GitHub
commit 1de3674e36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 4 deletions

View file

@ -1,4 +1,6 @@
- content_for(:title, 'Accessibilité')
- content_for :footer do
= render partial: "root/footer"
.accessibilite

View file

@ -1,4 +1,6 @@
- content_for(:title, 'Suivi')
- content_for :footer do
= render partial: "root/footer"
.suivi
%h1.new-h1 Cookies déposés et configuration du suivi

View file

@ -1,4 +1,6 @@
- content_for(:title, 'Statistiques')
- content_for :footer do
= render partial: "root/footer"
.statistiques
-# Load Chartkick lazily, by using our React lazy-loader.

View file

@ -1,4 +1,6 @@
- content_for(:title, 'Contact')
- content_for :footer do
= render partial: "root/footer"
#contact-form
.container

View file

@ -12,8 +12,16 @@
%span.mandatory *
champs requis
= f.label :gender, class: "required"
= f.select :gender, [Individual::GENDER_MALE, Individual::GENDER_FEMALE], {}, class: "small"
%fieldset
%legend
= f.label :gender, class: "required"
.radios
%label
= f.radio_button :gender, Individual::GENDER_MALE
= Individual::GENDER_MALE
%label
= f.radio_button :gender, Individual::GENDER_FEMALE
= Individual::GENDER_FEMALE
.flex
.inline-champ

View file

@ -20,7 +20,7 @@
Non
= f.label :password, "Mot de passe"
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum", 'aria-describedby':'8 caractères minimum'
= f.submit "Créer un compte", class: "button large primary expand"

View file

@ -18,7 +18,7 @@ CADRE_JURIDIQUE_URL = [DOC_URL, "tutoriels/video-le-cadre-juridique"].join("/")
WEBINAIRE_URL = "https://app.livestorm.co/demarches-simplifiees"
LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/")
CGU_URL = [DOC_URL, "cgu"].join("/")
MENTIONS_LEGALES_URL = [CGU_URL, "4-mentions-legales"].join("#")
MENTIONS_LEGALES_URL = [DOC_URL, "mentions-legales"].join("/")
API_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "api"].join("/")
WEBHOOK_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "webhook"].join("/")
FAQ_URL = "https://faq.demarches-simplifiees.fr"

View file

@ -189,6 +189,7 @@ feature 'The routing', js: true do
visit commencer_path(path: procedure.reload.path)
click_on 'Commencer la démarche'
choose 'M.'
fill_in 'individual_nom', with: 'Nom'
fill_in 'individual_prenom', with: 'Prenom'
click_button('Continuer')

View file

@ -282,6 +282,7 @@ feature 'The user' do
end
def fill_individual
choose 'M.'
fill_in('individual_prenom', with: 'prenom')
fill_in('individual_nom', with: 'nom')
click_on 'Continuer'

View file

@ -22,6 +22,7 @@ feature 'Creating a new dossier:' do
expect(page).to have_current_path identite_dossier_path(user.reload.dossiers.last)
expect(page).to have_procedure_description(procedure)
choose 'M.'
fill_in 'individual_nom', with: 'Nom'
fill_in 'individual_prenom', with: 'Prenom'
end

View file

@ -62,6 +62,7 @@ feature 'linked dropdown lists' do
end
def fill_individual
choose 'M.'
fill_in('individual_prenom', with: 'prenom')
fill_in('individual_nom', with: 'nom')
click_on 'Continuer'