16 lines
401 B
Ruby
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
|