Garde les tags dans les params lors de la pagination

This commit is contained in:
Kara Diaby 2023-03-28 14:53:43 +02:00 committed by Paul Chavard
parent 1887d220d6
commit af830e94c3

View file

@ -38,7 +38,7 @@
- if @filter.from_publication_date.present?
.selected-from-publication-date.fr-mb-2w
= link_to "Depuis #{l(@filter.from_publication_date)}", all_admin_procedures_path(@filter.without(:from_publication_date)), class: 'fr-tag fr-tag--dismiss fr-mb-1w'
= paginate @procedures, views_prefix: 'administrateurs'
= paginate @procedures, params: @filter.params, views_prefix: 'administrateurs'
%thead
%tr
%th{ scope: 'col' }
@ -52,4 +52,4 @@
%tbody{ 'data-turbo': 'true' }
- @procedures.each do |procedure|
= render partial: 'detail', locals: { procedure: procedure, show_detail: false }
.fr-mt-2w= paginate @procedures, views_prefix: 'administrateurs'
.fr-mt-2w= paginate @procedures, params: @filter.params, views_prefix: 'administrateurs'