2016-01-07 15:29:29 +01:00
|
|
|
- unless smart_listing.empty?
|
2016-12-21 11:26:33 +01:00
|
|
|
%table.table#dossiers_list
|
2016-01-07 15:29:29 +01:00
|
|
|
%thead
|
|
|
|
%th#ID= smart_listing.sortable 'ID', 'id'
|
|
|
|
%th#libelle= smart_listing.sortable 'Libellé', 'libelle'
|
2016-06-24 16:41:44 +02:00
|
|
|
- if @active_class
|
2016-06-20 17:37:04 +02:00
|
|
|
%th#lien Lien
|
|
|
|
%th#created_at= smart_listing.sortable 'Date création', 'created_at'
|
2016-06-15 11:34:05 +02:00
|
|
|
%th#lien Actions
|
2015-12-03 15:38:17 +01:00
|
|
|
|
2016-01-07 15:29:29 +01:00
|
|
|
- @procedures.each do |procedure|
|
|
|
|
- procedure = procedure.decorate
|
2016-12-21 11:26:33 +01:00
|
|
|
%tr{id: "tr_dossier_#{procedure.id}", 'data-dossier_url' => admin_procedure_path(id: procedure.id)}
|
2016-07-18 18:24:29 +02:00
|
|
|
%td= procedure.id
|
2016-01-07 15:29:29 +01:00
|
|
|
%td.col-md-6.col-lg-6
|
2016-12-21 11:26:33 +01:00
|
|
|
= procedure.libelle
|
2016-06-24 16:41:44 +02:00
|
|
|
- if @active_class
|
2016-12-21 11:26:33 +01:00
|
|
|
%td= link_to procedure.lien, procedure.lien, class: 'procedure-lien', 'data-method' => :get
|
2016-06-20 17:37:04 +02:00
|
|
|
%td
|
|
|
|
= procedure.created_at_fr
|
|
|
|
%td
|
|
|
|
= link_to('Cloner', admin_procedure_clone_path(procedure.id), 'data-method' => :put, class: 'btn-sm btn-primary')
|
|
|
|
- unless procedure.published? || procedure.archived?
|
|
|
|
= link_to('X', url_for(controller: 'admin/procedures', action: :destroy, id: procedure.id), 'data-method' => :delete, class: 'btn-sm btn-danger')
|
2016-01-07 15:29:29 +01:00
|
|
|
|
|
|
|
= smart_listing.paginate
|
|
|
|
|
|
|
|
- else
|
|
|
|
%h4.center
|
|
|
|
Aucune procédure
|