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

12 lines
284 B
Ruby

# frozen_string_literal: true
class EditableChamp::ChampLabelComponent < ApplicationComponent
include Dsfr::InputErrorable
attr_reader :attribute
def initialize(form:, champ:, seen_at: nil)
@form, @champ, @seen_at = form, champ, seen_at
@attribute = :value
end
end