feat(api particulier): add DGFiP field

This commit is contained in:
François Vantomme 2021-11-24 17:30:35 +01:00 committed by simon lehericey
parent 08405226b7
commit 2110ef072c
32 changed files with 577 additions and 76 deletions

View file

@ -38,6 +38,8 @@
= render partial: "shared/champs/annuaire_education/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:cnaf)
= render partial: "shared/champs/cnaf/show", locals: { champ: c, profile: profile }
- when TypeDeChamp.type_champs.fetch(:dgfip)
= render partial: "shared/champs/dgfip/show", locals: { champ: c, profile: profile }
- when TypeDeChamp.type_champs.fetch(:address)
= render partial: "shared/champs/address/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:communes)

View file

@ -0,0 +1,16 @@
.dgfip-inputs
%div
= form.label :numero_fiscal, t('.numero_fiscal_label')
%p.notice= t('.numero_fiscal_notice')
= form.text_field :numero_fiscal,
required: champ.mandatory?,
size: 14,
aria: { describedby: describedby_id(champ) }
%div
= form.label :reference_avis, t('.reference_avis_label')
%p.notice= t('.reference_avis_notice')
= form.text_field :reference_avis,
size: 14,
required: champ.mandatory?,
aria: { describedby: describedby_id(champ) }