2016-01-08 11:39:04 +01:00
|
|
|
- unless smart_listing.empty?
|
|
|
|
%table.table
|
2016-07-18 18:24:29 +02:00
|
|
|
%thead
|
|
|
|
%th= smart_listing.sortable 'Procédure', 'procedure.libelle'
|
|
|
|
%th= smart_listing.sortable 'Dossier', 'nom_projet'
|
|
|
|
%th= smart_listing.sortable 'État', 'state'
|
|
|
|
%th= smart_listing.sortable 'Date de mise à jour', 'updated_at'
|
|
|
|
- unless @liste == 'termine'
|
|
|
|
%th Actions
|
2015-12-02 14:05:56 +01:00
|
|
|
|
2016-01-08 11:39:04 +01:00
|
|
|
- @dossiers.each do |dossier|
|
|
|
|
- dossier = dossier.decorate
|
|
|
|
%tr
|
2016-07-18 18:24:29 +02:00
|
|
|
%td.col-md-4.col-lg-4= dossier.procedure.libelle
|
|
|
|
%td.col-md-4.col-lg-4
|
2016-01-08 11:39:04 +01:00
|
|
|
= link_to(dossier.nom_projet, "/backoffice/dossiers/#{dossier.id}")
|
|
|
|
%td= dossier.display_state
|
|
|
|
%td= dossier.last_update
|
2016-07-18 18:24:29 +02:00
|
|
|
- unless @liste == 'termine'
|
|
|
|
%td
|
|
|
|
- if current_gestionnaire.follow?(dossier.id)
|
|
|
|
= link_to('Quitter'.html_safe, backoffice_dossier_follow_path(dossier_id: dossier.id), 'data-method' => :put, class: 'btn-sm btn-danger', id: "suivre_dossier_#{dossier.id}")
|
|
|
|
-else
|
|
|
|
= link_to('Suivre', backoffice_dossier_follow_path(dossier_id: dossier.id), 'data-method' => :put, class: 'btn-sm btn-primary', id: "suivre_dossier_#{dossier.id}")
|
2016-01-08 11:39:04 +01:00
|
|
|
|
|
|
|
= smart_listing.paginate
|
|
|
|
= smart_listing.pagination_per_page_links
|
|
|
|
- else
|
|
|
|
%h4.center
|
|
|
|
Aucun dossier
|