style: update instructeurs to new design table
This commit is contained in:
parent
bae0009120
commit
7e9e57cb17
1 changed files with 30 additions and 20 deletions
|
@ -19,15 +19,19 @@
|
|||
%hr.fr-mt-4w
|
||||
|
||||
.flex.justify-between.align-baseline
|
||||
.card-title= t('.assigned_instructeur', count: instructeurs.count)
|
||||
.card-title= t('.assigned_instructeur', count: instructeurs.total_count)
|
||||
= button_to export_groupe_instructeurs_admin_procedure_groupe_instructeurs_path(procedure, format: :csv), method: :get, class: 'fr-btn fr-btn--tertiary fr-btn--icon-left fr-icon-download-line' do
|
||||
Exporter la liste (.CSV)
|
||||
|
||||
%table.fr-table.fr-table--bordered.width-100
|
||||
.fr-table
|
||||
.fr-table__wrapper
|
||||
.fr-table__container
|
||||
.fr-table__content
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th= t('.title')
|
||||
%th.text-right= t('.actions')
|
||||
%th{ scope: 'col' }= t('.title')
|
||||
%th{ scope: 'col' }= t('.actions')
|
||||
%tbody
|
||||
- instructeurs.each do |instructeur|
|
||||
%tr
|
||||
|
@ -41,6 +45,12 @@
|
|||
{ method: :delete,
|
||||
data: { confirm: confirmation_message },
|
||||
params: { instructeur: { id: instructeur.id }},
|
||||
class: 'fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-subtract-line' }
|
||||
class: 'fr-btn fr-btn--sm fr-btn--secondary fr-btn--icon-left fr-icon-subtract-line' }
|
||||
|
||||
.fr-table__footer
|
||||
.fr-table__footer--start
|
||||
%p.fr-table__detail
|
||||
= number_with_delimiter instructeurs.total_count
|
||||
= t('activerecord.models.instructeur', count: instructeurs.total_count).downcase
|
||||
.fr-table__footer--middle
|
||||
= paginate instructeurs, views_prefix: 'shared'
|
||||
|
|
Loading…
Reference in a new issue