dont'use DSFR component - add a line inside the table instead
This commit is contained in:
parent
1d1f5ad567
commit
f1a378bf03
9 changed files with 33 additions and 33 deletions
|
@ -0,0 +1,7 @@
|
|||
en:
|
||||
selected_html: All <span id='dynamic_number'>n</span> files from this page are selected.
|
||||
select_all: "Select all %{dossiers_count} files."
|
||||
select_all_limit: "Select first %{limit} files on %{dossiers_count}"
|
||||
selected_all: "%{dossiers_count} files are selected."
|
||||
selected_all_limit: "%{limit} files are selected."
|
||||
delete_selection: "Delete selection"
|
|
@ -0,0 +1,7 @@
|
|||
fr:
|
||||
selected_html: Les <span id='dynamic_number'>n</span> dossiers de cette page sont sélectionnés.
|
||||
select_all: "Sélectionner les %{dossiers_count} dossiers."
|
||||
select_all_limit: "Sélectionner les %{limit} premiers dossiers sur les %{dossiers_count}"
|
||||
selected_all: "%{dossiers_count} dossiers sont sélectionnés."
|
||||
selected_all_limit: "%{limit} dossiers sont sélectionnés."
|
||||
delete_selection: "Effacer la sélection"
|
|
@ -0,0 +1,21 @@
|
|||
%tr#js_batch_select_more.fr-background-alt--blue-france.hidden
|
||||
%td.fr-py-2w.text-center{ colspan: 100 }
|
||||
#not_selected
|
||||
%p
|
||||
= t('.selected_html')
|
||||
%button.fr-btn.fr-btn--sm.fr-btn--tertiary-no-outline{ data: { action: "batch-operation#onSelectMore", dossiers: @filtered_sorted_ids.first(Instructeurs::ProceduresController::BATCH_SELECTION_LIMIT).join(',') } }
|
||||
- if @dossiers_count <= Instructeurs::ProceduresController::BATCH_SELECTION_LIMIT
|
||||
= t(".select_all", dossiers_count: @dossiers_count)
|
||||
- else
|
||||
= t(".select_all_limit", dossiers_count: @dossiers_count, limit: Instructeurs::ProceduresController::BATCH_SELECTION_LIMIT)
|
||||
|
||||
#selected.hidden
|
||||
%p
|
||||
- if @dossiers_count <= Instructeurs::ProceduresController::BATCH_SELECTION_LIMIT
|
||||
= t(".selected_all", dossiers_count: @dossiers_count)
|
||||
- else
|
||||
= t(".selected_all_limit", limit: Instructeurs::ProceduresController::BATCH_SELECTION_LIMIT)
|
||||
%button.fr-btn.fr-btn--sm.fr-btn--tertiary-no-outline{ data: { action: "batch-operation#onDeleteSelection" } }
|
||||
= t(".delete_selection")
|
||||
|
||||
= hidden_field_tag :"batch_operation[dossier_ids][]", "", form: dom_id(BatchOperation.new), id: dom_id(BatchOperation.new, "input_multiple_ids")
|
Loading…
Add table
Add a link
Reference in a new issue