chore(dossier): remove fallback from commune champ

This commit is contained in:
Paul Chavard 2023-04-11 10:49:01 +02:00
parent 54c9690289
commit def32a3615
4 changed files with 21 additions and 42 deletions

View file

@ -1,8 +1,8 @@
%label.notice{ for: code_postal_input_id }= t('.postal_code')
= @form.text_field :code_postal, required: @champ.required?, id: code_postal_input_id, class: "width-33-desktop width-100-mobile small-margin"
- if @champ.code_postal_with_fallback?
- if @champ.code_postal?
- if commune_options.empty?
.fr-error-text.mb-4= t('.not_found', postal_code: @champ.code_postal_with_fallback)
.fr-error-text.mb-4= t('.not_found', postal_code: @champ.code_postal)
- elsif commune_options.size <= 3
%fieldset.radios
- commune_options.each.with_index do |(option, value), index|