be more specific on the count of dossiers we display in the table

This commit is contained in:
Lisa Durand 2023-01-17 10:32:53 +01:00
parent 48503e0743
commit 4d1f164c43
3 changed files with 34 additions and 1 deletions

View file

@ -99,7 +99,7 @@
%div{ data: batch_operation_component.render? ? { controller: 'batch-operation' } : {} }
.flex.align-center.fr-mt-2w
%span.fr-h6.fr-mb-0.fr-mr-2w
= t('views.instructeurs.dossiers.dossiers_count', count: @dossiers_count)
= page_entries_info @filtered_sorted_paginated_ids, entry_name: 'dossier'
= render batch_operation_component
.fr-table.fr-table--bordered

View file

@ -0,0 +1,17 @@
en:
helpers:
page_entries_info:
more_pages:
display_entries: Displaying %{entry_name} <b>%{first}&nbsp;-&nbsp;%{last}</b> of <b>%{total}</b> in total
one_page:
display_entries:
one: Displaying <b>%{count}</b> %{entry_name}
other: Displaying <b>all %{count}</b> %{entry_name}
zero: No %{entry_name} found
views:
pagination:
first: "&laquo; First"
last: Last &raquo;
next: Next &rsaquo;
previous: "&lsaquo; Prev"
truncate: "&hellip;"

View file

@ -0,0 +1,16 @@
fr:
helpers:
page_entries_info:
more_pages:
display_entries: "%{first} - %{last} <span class='fr-text--sm'>sur %{total} %{entry_name}</span>"
one_page:
display_entries:
one: "<b>%{count}</b> %{entry_name}"
other: "%{count} <span class='fr-text--sm'>sur %{count} %{entry_name}</span>"
views:
pagination:
first: "&laquo; Premier"
last: Dernier &raquo;
next: Suivant &rsaquo;
previous: "&lsaquo; Précédent"
truncate: "&hellip;"