demarches-normaliennes/app/components/editable_champ/repetition_component.rb
2024-08-22 09:26:48 +02:00

11 lines
332 B
Ruby

# frozen_string_literal: true
class EditableChamp::RepetitionComponent < EditableChamp::EditableChampBaseComponent
def legend_params
@champ.description.present? ? { describedby: dom_id(@champ, :repetition) } : {}
end
def notice_params
@champ.description.present? ? { id: dom_id(@champ, :repetition) } : {}
end
end