demarches-normaliennes/app/components/editable_champ/repetition_component.rb

12 lines
332 B
Ruby
Raw Permalink Normal View History

# 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
2022-08-12 10:45:04 +02:00
end