demarches-normaliennes/app/models/champs
Sébastien Carceles 5c7b2ba1f3
feat(dossier): prefill drop down list champ (#8361)
* feat(dossier): prefill drop down list champ

* decorate the types de champ to avoid if / else

In order to avoid doing if this a drop down ? / else at several places,
we decorate the types de champ and let the decorator give the possible
and example values.

* show all possible values when there are too many

* allow to prefill 'other' option

* review: remove duplicate

* review: refactor for readability

* validate that value is in options

* review: exclude disabled options
2023-01-18 09:47:22 +01:00
..
address_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
annuaire_education_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
boolean_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
carte_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
checkbox_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
civilite_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
cnaf_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
commune_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
date_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
datetime_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
decimal_number_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
departement_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
dgfip_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
dossier_link_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
drop_down_list_champ.rb feat(dossier): prefill drop down list champ (#8361) 2023-01-18 09:47:22 +01:00
email_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
explication_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
header_section_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
iban_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
integer_number_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
linked_drop_down_list_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
mesri_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
multiple_drop_down_list_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
number_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
pays_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
phone_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
piece_justificative_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
pole_emploi_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
region_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
repetition_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
rna_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
siret_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
text_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
textarea_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
titre_identite_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00
yes_no_champ.rb chore(db): remove unused columns 2023-01-17 12:49:22 +01:00