feat(api particulier): add DGFiP field
This commit is contained in:
parent
08405226b7
commit
2110ef072c
32 changed files with 577 additions and 76 deletions
|
@ -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)
|
||||
|
|
16
app/views/shared/dossiers/editable_champs/_dgfip.html.haml
Normal file
16
app/views/shared/dossiers/editable_champs/_dgfip.html.haml
Normal 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) }
|
Loading…
Add table
Add a link
Reference in a new issue