demarches-normaliennes/app/components/editable_champ/carte_component.rb
2024-05-27 10:33:37 +02:00

16 lines
401 B
Ruby

class EditableChamp::CarteComponent < EditableChamp::EditableChampBaseComponent
include ApplicationHelper
def dsfr_champ_container
:fieldset
end
def initialize(**args)
super(**args)
@autocomplete_component = EditableChamp::ComboSearchComponent.new(**args)
end
def update_path
champs_carte_features_path(@champ.dossier, @champ.stable_id, row_id: @champ.row_id)
end
end