demarches-normaliennes/app/views/users/dossiers/_list.html.haml

30 lines
1 KiB
Text
Raw Normal View History

2016-01-08 11:39:04 +01:00
- unless smart_listing.empty?
%table.table
%thead
2016-08-30 11:18:43 +02:00
%th.col-md-1.col-lg-1= smart_listing.sortable 'Numéro', 'id'
%th.col-md-5.col-lg-5= smart_listing.sortable 'Procédure', 'procedure.libelle'
2016-01-08 11:39:04 +01:00
%th.col-md-2.col-lg-2= smart_listing.sortable 'État', 'state'
%th.col-md-2.col-lg-2= smart_listing.sortable 'Date de mise à jour', 'updated_at'
- @dossiers.each do |dossier|
- if dossier.class == Invite
-invite = dossier
-dossier = dossier.dossier.decorate
- else
- dossier = dossier.decorate
2016-01-08 11:39:04 +01:00
%tr
2016-08-30 11:18:43 +02:00
%td.center
= dossier.id
2016-01-08 11:39:04 +01:00
%td
2016-08-30 11:18:43 +02:00
= link_to(dossier.procedure.libelle, users_dossiers_invite_path(id: invite.id)) unless invite.nil?
= link_to(dossier.procedure.libelle, users_dossier_recapitulatif_path(dossier)) if invite.nil?
2016-01-08 11:39:04 +01:00
%td{id: "dossier_#{dossier.id}_state"}= dossier.display_state
%td= dossier.last_update
2015-11-26 12:29:34 +01:00
2016-01-08 11:39:04 +01:00
= smart_listing.paginate
= smart_listing.pagination_per_page_links
- else
%h4.center
Aucun dossier