move last call to procedure_presentation controller
This commit is contained in:
parent
72d8e43b2a
commit
b3fd3e6570
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue