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

14 lines
322 B
Ruby
Raw Normal View History

2022-09-21 15:18:23 +02:00
class EditableChamp::RNAComponent < EditableChamp::EditableChampBaseComponent
def dsfr_input_classname
'fr-input'
end
def update_path
if Champ.update_by_stable_id?
champs_rna_path(@champ.dossier, @champ.stable_id, row_id: @champ.row_id)
else
champs_legacy_rna_path(@champ)
end
end
2022-09-21 15:18:23 +02:00
end