demarches-normaliennes/app/models/champs/yes_no_champ.rb
2023-08-02 11:43:23 +02:00

13 lines
194 B
Ruby

class Champs::YesNoChamp < Champs::BooleanChamp
def yes_input_id
"#{input_id}-yes"
end
def no_input_id
"#{input_id}-no"
end
def focusable_input_id
yes_input_id
end
end