Merge pull request #1406 from betagouv/fix-1403
[Fix #1403] Apply dossier index style to recherche
This commit is contained in:
commit
1f7a853af4
2 changed files with 22 additions and 18 deletions
|
@ -94,6 +94,7 @@
|
||||||
- @dossiers.each do |dossier|
|
- @dossiers.each do |dossier|
|
||||||
%tr
|
%tr
|
||||||
%td.folder-col
|
%td.folder-col
|
||||||
|
= link_to(dossier_path(@procedure, dossier), class: 'cell-link') do
|
||||||
%span.icon.folder
|
%span.icon.folder
|
||||||
- if current_gestionnaire.notifications_for_procedure(@procedure).include?(dossier.id)
|
- if current_gestionnaire.notifications_for_procedure(@procedure).include?(dossier.id)
|
||||||
%span.notifications{ 'aria-label': 'notifications' }
|
%span.notifications{ 'aria-label': 'notifications' }
|
||||||
|
|
|
@ -9,18 +9,21 @@
|
||||||
%table.table.dossiers-table.hoverable
|
%table.table.dossiers-table.hoverable
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th Nº
|
%th.notification-col
|
||||||
|
%th.number-col Nº dossier
|
||||||
%th Procédure
|
%th Procédure
|
||||||
%th Demandeur
|
%th Demandeur
|
||||||
%th Statut
|
%th.status-col Statut
|
||||||
%tbody
|
%tbody
|
||||||
- @dossiers.each do |dossier|
|
- @dossiers.each do |dossier|
|
||||||
/ # FIXME: here we have a n+1, we fire a request
|
/ # FIXME: here we have a n+1, we fire a request
|
||||||
/ (due to dossier_linked_path) per result
|
/ (due to dossier_linked_path) per result
|
||||||
%tr
|
%tr
|
||||||
|
%td.folder-col
|
||||||
|
= link_to(dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link') do
|
||||||
|
%span.icon.folder
|
||||||
%td.number-col
|
%td.number-col
|
||||||
= link_to(dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link') do
|
= link_to(dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link') do
|
||||||
%span.icon.folder>
|
|
||||||
= dossier.id
|
= dossier.id
|
||||||
%td= link_to(dossier.procedure.libelle, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')
|
%td= link_to(dossier.procedure.libelle, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')
|
||||||
%td= link_to(dossier.user.email, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')
|
%td= link_to(dossier.user.email, dossier_linked_path(current_gestionnaire, dossier), class: 'cell-link')
|
||||||
|
|
Loading…
Add table
Reference in a new issue