add cnaf ui
This commit is contained in:
parent
40d0cfcdc4
commit
57a7f82a8f
10 changed files with 146 additions and 0 deletions
|
@ -36,6 +36,8 @@
|
|||
= render partial: "shared/champs/textarea/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:annuaire_education)
|
||||
= 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(:address)
|
||||
= render partial: "shared/champs/address/show", locals: { champ: c }
|
||||
- when TypeDeChamp.type_champs.fetch(:communes)
|
||||
|
|
16
app/views/shared/dossiers/editable_champs/_cnaf.html.haml
Normal file
16
app/views/shared/dossiers/editable_champs/_cnaf.html.haml
Normal file
|
@ -0,0 +1,16 @@
|
|||
.cnaf-inputs
|
||||
%div
|
||||
= form.label :numero_allocataire, t('.numero_allocataire_label')
|
||||
%p.notice= t('.numero_allocataire_notice')
|
||||
= form.text_field :numero_allocataire,
|
||||
required: champ.mandatory?,
|
||||
size: 7,
|
||||
aria: { describedby: describedby_id(champ) }
|
||||
|
||||
%div
|
||||
= form.label :code_postal, t('.code_postal_label')
|
||||
%p.notice= t('.code_postal_notice')
|
||||
= form.text_field :code_postal,
|
||||
size: 5,
|
||||
required: champ.mandatory?,
|
||||
aria: { describedby: describedby_id(champ) }
|
Loading…
Add table
Add a link
Reference in a new issue