injected dossier_ids in front
This commit is contained in:
parent
4d1f164c43
commit
5802f3f7cf
5 changed files with 71 additions and 5 deletions
|
@ -0,0 +1,17 @@
|
|||
.fr-notice.fr-notice--info.fr-mt-2w.hidden
|
||||
.fr-container
|
||||
.fr-notice__body
|
||||
#not_selected
|
||||
%p.fr-notice__title
|
||||
Les
|
||||
%span#dynamic_number n
|
||||
dossiers de cette pages sont sélectionnés.
|
||||
%a{ :href => "#", data: { action: "batch-operation#onSelectMore", dossiers: @filtered_sorted_ids.join(',') } }
|
||||
= "Sélectionner les #{@dossiers_count} dossiers."
|
||||
#selected.hidden
|
||||
%p.fr-notice__title
|
||||
= "#{@dossiers_count} dossiers sont sélectionnés"
|
||||
%a{ :href => "#", data: { action: "batch-operation#onDeleteSelection" } }
|
||||
= "Effacer la sélection"
|
||||
|
||||
= check_box_tag :"batch_operation[dossier_ids][]", [], false, class: 'hidden', data: { batch_operation_target: "input", action: "batch-operation#onCheckOne", operations: "accepter,repasser_en_construction,follow,unfollow" }, form: dom_id(BatchOperation.new), id: dom_id(BatchOperation.new, "checkbox_multiple"), aria: { label: t('views.instructeurs.dossiers.batch_operation.enabled') }
|
|
@ -102,6 +102,9 @@
|
|||
= page_entries_info @filtered_sorted_paginated_ids, entry_name: 'dossier'
|
||||
|
||||
= render batch_operation_component
|
||||
|
||||
= render partial: "notice_dossier_select_all", local: {dossiers_count: @dossiers_count, filtered_sorted_ids: @filtered_sorted_ids}
|
||||
|
||||
.fr-table.fr-table--bordered
|
||||
%table.table.dossiers-table.hoverable
|
||||
%thead
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue