Merge pull request #5311 from betagouv/rename-menu-deroulant

Rename menu deroulant
This commit is contained in:
Keirua 2020-06-29 11:13:00 +02:00 committed by GitHub
commit 748672a7df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -1177,7 +1177,7 @@ enum TypeDeChamp {
dossier_link dossier_link
""" """
Menu déroulant Choix parmi une liste
""" """
drop_down_list drop_down_list
@ -1212,7 +1212,7 @@ enum TypeDeChamp {
linked_drop_down_list linked_drop_down_list
""" """
Menu déroulant à choix multiples Choix multiples
""" """
multiple_drop_down_list multiple_drop_down_list

View file

@ -18,8 +18,8 @@ fr:
phone: 'Téléphone' phone: 'Téléphone'
address: 'Adresse' address: 'Adresse'
yes_no: 'Oui/Non' yes_no: 'Oui/Non'
drop_down_list: 'Menu déroulant' drop_down_list: 'Choix parmi une liste'
multiple_drop_down_list: 'Menu déroulant à choix multiples' multiple_drop_down_list: 'Choix multiples'
linked_drop_down_list: 'Deux menus déroulants liés' linked_drop_down_list: 'Deux menus déroulants liés'
pays: 'Pays' pays: 'Pays'
regions: 'Régions' regions: 'Régions'

View file

@ -50,7 +50,7 @@ FactoryBot.define do
type_champ { TypeDeChamp.type_champs.fetch(:datetime) } type_champ { TypeDeChamp.type_champs.fetch(:datetime) }
end end
factory :type_de_champ_drop_down_list do factory :type_de_champ_drop_down_list do
libelle { 'Menu déroulant' } libelle { 'Choix parmi une liste' }
type_champ { TypeDeChamp.type_champs.fetch(:drop_down_list) } type_champ { TypeDeChamp.type_champs.fetch(:drop_down_list) }
drop_down_list_value { "val1\r\nval2\r\n--separateur--\r\nval3" } drop_down_list_value { "val1\r\nval2\r\n--separateur--\r\nval3" }
trait :long do trait :long do

View file

@ -135,7 +135,7 @@ feature 'As an administrateur I can edit types de champ', js: true do
it "Add dropdown champ" do it "Add dropdown champ" do
add_champ add_champ
select('Menu déroulant', from: 'champ-0-type_champ') select('Choix parmi une liste', from: 'champ-0-type_champ')
fill_in 'champ-0-libelle', with: 'Libellé de champ menu déroulant', fill_options: { clear: :backspace } fill_in 'champ-0-libelle', with: 'Libellé de champ menu déroulant', fill_options: { clear: :backspace }
fill_in 'champ-0-drop_down_list_value', with: 'Un menu', fill_options: { clear: :backspace } fill_in 'champ-0-drop_down_list_value', with: 'Un menu', fill_options: { clear: :backspace }