demarches-normaliennes/spec/views/prefill_descriptions
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
..
_types_de_champs.html.haml_spec.rb feat(dossier): prefill drop down list champ (#8361) 2023-01-18 09:47:22 +01:00