2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-20 18:53:40 +02:00
|
|
|
class Procedure::Card::ChampsComponent < ApplicationComponent
|
|
|
|
def initialize(procedure:)
|
|
|
|
@procedure = procedure
|
|
|
|
@count = @procedure.draft_revision.types_de_champ.public_only.size
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def error_messages
|
2024-06-03 07:44:27 +02:00
|
|
|
@procedure.errors.messages_for(:draft_types_de_champ_public).to_sentence
|
2022-07-20 18:53:40 +02:00
|
|
|
end
|
|
|
|
end
|