demarches-normaliennes/app/components/editable_champ/titre_identite_component.rb

10 lines
225 B
Ruby
Raw Normal View History

class EditableChamp::TitreIdentiteComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname
'fr-input'
end
def user_can_destroy?
!@champ.mandatory? || @champ.dossier.brouillon?
end
2022-08-12 10:45:04 +02:00
end