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

13 lines
284 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2022-08-12 10:45:04 +02:00
class EditableChamp::ChampLabelComponent < ApplicationComponent
2023-05-05 09:13:05 +02:00
include Dsfr::InputErrorable
attr_reader :attribute
def initialize(form:, champ:, seen_at: nil)
@form, @champ, @seen_at = form, champ, seen_at
2023-05-05 09:13:05 +02:00
@attribute = :value
2022-08-12 10:45:04 +02:00
end
end