2022-09-08 11:25:39 +02:00
|
|
|
class EditableChamp::DossierLinkComponent < EditableChamp::EditableChampBaseComponent
|
2023-08-21 16:18:31 +02:00
|
|
|
def dsfr_input_classname
|
|
|
|
'fr-input'
|
|
|
|
end
|
|
|
|
|
2023-04-04 18:52:27 +02:00
|
|
|
def dossier
|
|
|
|
@dossier ||= @champ.blank? ? nil : Dossier.visible_by_administration.find_by(id: @champ.to_s)
|
|
|
|
end
|
2022-08-12 10:45:04 +02:00
|
|
|
end
|