2022-09-08 11:25:39 +02:00
|
|
|
class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent
|
2023-08-21 16:18:31 +02:00
|
|
|
def dsfr_input_classname
|
|
|
|
'fr-input'
|
|
|
|
end
|
|
|
|
|
2022-12-13 15:22:18 +01:00
|
|
|
def user_can_destroy?
|
|
|
|
!@champ.mandatory? || @champ.dossier.brouillon?
|
|
|
|
end
|
|
|
|
|
|
|
|
def user_can_replace?
|
|
|
|
@champ.mandatory? && @champ.dossier.en_construction?
|
|
|
|
end
|
2022-08-12 10:45:04 +02:00
|
|
|
end
|