Merge pull request #7609 from betagouv/fix-repetable-input-width
fix: drop down other input width
This commit is contained in:
commit
316effff40
2 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,7 @@ class RootController < ApplicationController
|
||||||
-- avant l'option C --
|
-- avant l'option C --
|
||||||
option C"
|
option C"
|
||||||
champ.value = '["option B", "option C"]'
|
champ.value = '["option B", "option C"]'
|
||||||
|
champ.type_de_champ.drop_down_other = "1"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.drop_down_other{ class: champ.other_value_present? ? '' : 'hidden' }
|
.drop_down_other{ class: champ.other_value_present? ? '' : 'hidden' }
|
||||||
.notice
|
.notice
|
||||||
%p Veuillez saisir votre autre choix
|
%p Veuillez saisir votre autre choix
|
||||||
= form.text_field :value_other, maxlength: "200", placeholder: "Saisissez ici", disabled: !champ.other_value_present?
|
= form.text_field :value_other, maxlength: 200, size: nil, disabled: !champ.other_value_present?
|
||||||
|
|
Loading…
Add table
Reference in a new issue