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
|
class Dossiers::NotifiedToggleComponent < ApplicationComponent
|
||||||
def initialize(procedure:, procedure_presentation:)
|
def initialize(procedure:, procedure_presentation:)
|
||||||
@procedure = procedure
|
@procedure = procedure
|
||||||
|
@procedure_presentation = procedure_presentation
|
||||||
@sorted_column = procedure_presentation.sorted_column
|
@sorted_column = procedure_presentation.sorted_column
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
= form_tag update_sort_instructeur_procedure_path(@procedure),
|
= form_with model: [:instructeur, @procedure_presentation],
|
||||||
method: :get, data: { controller: 'autosubmit' } do
|
data: { controller: 'autosubmit' } do
|
||||||
.fr-fieldset__element.fr-m-0
|
.fr-fieldset__element.fr-m-0
|
||||||
.fr-checkbox-group.fr-checkbox-group--sm
|
.fr-checkbox-group.fr-checkbox-group--sm
|
||||||
= hidden_field_tag 'sorted_column[id]', @procedure.notifications_column.id
|
= hidden_field_tag 'sorted_column[id]', @procedure.notifications_column.id
|
||||||
|
|
Loading…
Add table
Reference in a new issue