2023-08-17 17:11:58 +02:00
|
|
|
module Dsfr
|
|
|
|
class InputStatusMessageComponent < ApplicationComponent
|
2024-04-08 16:36:37 +02:00
|
|
|
def initialize(errors_on_attribute:, error_full_messages:, described_by:, champ:)
|
2023-08-17 17:11:58 +02:00
|
|
|
@errors_on_attribute = errors_on_attribute
|
|
|
|
@error_full_messages = error_full_messages
|
|
|
|
@described_by = described_by
|
2024-04-08 16:36:37 +02:00
|
|
|
@champ = champ
|
2023-08-17 17:11:58 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def render?
|
|
|
|
@errors_on_attribute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|