refactor(champ): simplify dossier link champ
This commit is contained in:
parent
4604be0796
commit
39ecc669b1
5 changed files with 20 additions and 21 deletions
|
@ -1,11 +1,11 @@
|
|||
.dossier-link{ class: "dossier-link-#{form.index}" }
|
||||
.dossier-link
|
||||
= form.number_field :value,
|
||||
id: champ.input_id,
|
||||
aria: { describedby: champ.describedby_id },
|
||||
placeholder: "Numéro de dossier",
|
||||
autocomplete: 'off',
|
||||
required: champ.mandatory?,
|
||||
data: { remote: true, url: champs_dossier_link_path(form.index) }
|
||||
data: { remote: true, url: champs_dossier_link_path(champ.id) }
|
||||
|
||||
.help-block
|
||||
= render partial: 'shared/champs/dossier_link/help_block', locals: { id: champ.value }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue