From 4ed29268bf2dc1e52dbbc1611ba086e6589f5ab1 Mon Sep 17 00:00:00 2001 From: Lisa Durand Date: Fri, 14 Apr 2023 17:42:37 +0200 Subject: [PATCH] fix table display for search result --- app/views/recherche/index.html.haml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/app/views/recherche/index.html.haml b/app/views/recherche/index.html.haml index ed16059ff..6a0785a95 100644 --- a/app/views/recherche/index.html.haml +++ b/app/views/recherche/index.html.haml @@ -12,16 +12,17 @@ - if @projected_dossiers.present? = paginate @paginated_ids - %table.table.dossiers-table.hoverable - %thead - %tr - %th.notification-col - %th.number-col Nº dossier - %th Démarche - %th Demandeur - %th.status-col Statut - %th.action-col.follow-col - %tbody + .fr-table.fr-table--bordered + %table.table.dossiers-table.hoverable + %thead + %tr + %th.notification-col + %th.number-col Nº dossier + %th Démarche + %th Demandeur + %th.status-col Statut + %th.action-col.follow-col + %tbody - @projected_dossiers.each do |p| - procedure_libelle, user_email, procedure_id = p.columns - instructeur_dossier = @instructeur_dossiers_ids.include?(p.dossier_id) @@ -90,7 +91,9 @@ = t('views.instructeurs.dossiers.restore') - else - %td.action-col.follow-col= render partial: "instructeurs/procedures/dossier_actions", + %td.action-col.follow-col + %ul.inline.fr-btns-group.fr-btns-group--sm.fr-btns-group--inline.fr-btns-group--icon-right + = render partial: "instructeurs/procedures/dossier_actions", locals: { procedure_id: procedure_id, dossier_id: p.dossier_id, state: p.state,