dossiers: link individual dossiers to the old UI
This commit is contained in:
parent
f242c73974
commit
06de1d6cee
2 changed files with 12 additions and 5 deletions
|
@ -26,19 +26,19 @@
|
|||
- @dossiers.each do |dossier|
|
||||
%tr
|
||||
%td.folder-col
|
||||
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
||||
= link_to(users_dossier_recapitulatif_path(dossier), class: 'cell-link') do
|
||||
%span.icon.folder
|
||||
%td.number-col
|
||||
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
||||
= link_to(users_dossier_recapitulatif_path(dossier), class: 'cell-link') do
|
||||
= dossier.id
|
||||
%td
|
||||
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
||||
= link_to(users_dossier_recapitulatif_path(dossier), class: 'cell-link') do
|
||||
= dossier.procedure.libelle
|
||||
%td.status-col
|
||||
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
||||
= link_to(users_dossier_recapitulatif_path(dossier), class: 'cell-link') do
|
||||
= render partial: 'shared/dossiers/status', locals: { dossier: dossier }
|
||||
%td.updated-at-col
|
||||
= link_to(modifier_dossier_path(dossier), class: 'cell-link') do
|
||||
= link_to(users_dossier_recapitulatif_path(dossier), class: 'cell-link') do
|
||||
= dossier.updated_at.localtime.strftime("%d/%m/%Y")
|
||||
|
||||
= paginate(@dossiers)
|
||||
|
|
|
@ -18,6 +18,13 @@ describe 'new_user/dossiers/index.html.haml', type: :view do
|
|||
expect(rendered).to have_selector('.dossiers-table tbody tr', count: 2)
|
||||
end
|
||||
|
||||
it 'affiche les informations des dossiers' do
|
||||
dossier = user_dossiers.first
|
||||
expect(rendered).to have_text(dossier.id)
|
||||
expect(rendered).to have_text(dossier.procedure.libelle)
|
||||
expect(rendered).to have_link(dossier.id, href: users_dossier_recapitulatif_path(dossier))
|
||||
end
|
||||
|
||||
context 'quand il n’y a pas de dossiers invités' do
|
||||
let(:dossiers_invites) { [] }
|
||||
|
||||
|
|
Loading…
Reference in a new issue