demarches-normaliennes/app/components/editable_champ/titre_identite_component.rb
2024-03-25 15:13:14 +01:00

9 lines
225 B
Ruby

class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname
'fr-input'
end
def user_can_destroy?
!@champ.mandatory? || @champ.dossier.brouillon?
end
end