move last call to procedure_presentation controller

This commit is contained in:
simon lehericey 2024-11-08 14:09:52 +01:00
parent 72d8e43b2a
commit b3fd3e6570
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
class Dossiers::NotifiedToggleComponent < ApplicationComponent
def initialize(procedure:, procedure_presentation:)
@procedure = procedure
@procedure_presentation = procedure_presentation
@sorted_column = procedure_presentation.sorted_column
end
end

View file

@ -1,5 +1,5 @@
= form_tag update_sort_instructeur_procedure_path(@procedure),
method: :get, data: { controller: 'autosubmit' } do
= form_with model: [:instructeur, @procedure_presentation],
data: { controller: 'autosubmit' } do
.fr-fieldset__element.fr-m-0
.fr-checkbox-group.fr-checkbox-group--sm
= hidden_field_tag 'sorted_column[id]', @procedure.notifications_column.id