use DossierProjectionService
This commit is contained in:
parent
5bfd4ecbbf
commit
0c845c937d
2 changed files with 5 additions and 2 deletions
|
@ -112,6 +112,8 @@ module Instructeurs
|
|||
|
||||
@dossiers = @dossiers.sort_by { |d| filtered_sorted_paginated_ids.index(d.id) }
|
||||
|
||||
@projected_dossiers = DossierProjectionService.project(filtered_sorted_paginated_ids, procedure_presentation.displayed_fields)
|
||||
|
||||
kaminarize(page, filtered_sorted_ids.count)
|
||||
|
||||
assign_exports
|
||||
|
|
|
@ -129,7 +129,8 @@
|
|||
= submit_tag "Enregistrer", class: 'button'
|
||||
|
||||
%tbody
|
||||
- @dossiers.each do |dossier|
|
||||
- @projected_dossiers.each do |p|
|
||||
- dossier = p.dossier
|
||||
%tr
|
||||
%td.folder-col
|
||||
= link_to(instructeur_dossier_path(@procedure, dossier), class: 'cell-link') do
|
||||
|
@ -141,7 +142,7 @@
|
|||
= link_to(instructeur_dossier_path(@procedure, dossier), class: 'cell-link') do
|
||||
= dossier.id
|
||||
|
||||
- @procedure_presentation.displayed_fields_values(dossier).each do |value|
|
||||
- p.columns.each do |column|
|
||||
%td
|
||||
= link_to(value, instructeur_dossier_path(@procedure, dossier), class: 'cell-link')
|
||||
|
||||
|
|
Loading…
Reference in a new issue