2018-01-11 19:04:39 +01:00
|
|
|
- if smart_listing.present?
|
2017-04-12 11:12:05 +02: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
|
2017-04-06 15:59:42 +02:00
|
|
|
%th Lien
|
2017-07-17 16:36:32 +02:00
|
|
|
- if @active_class || @archived_class
|
|
|
|
%th#published_at= smart_listing.sortable 'Date publication', 'published_at'
|
|
|
|
- else
|
|
|
|
%th#created_at= smart_listing.sortable 'Date création', 'created_at'
|
2017-04-06 15:59:42 +02:00
|
|
|
%th Actions
|
2015-12-03 15:38:17 +01:00
|
|
|
|
2016-01-07 15:29:29 +01:00
|
|
|
- @procedures.each do |procedure|
|
|
|
|
- procedure = procedure.decorate
|
2017-04-06 19:10:25 +02: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
|
2017-02-14 17:08:14 +01:00
|
|
|
%td.col-xs-6
|
2016-12-21 11:26:33 +01:00
|
|
|
= procedure.libelle
|
2016-06-24 16:41:44 +02:00
|
|
|
- if @active_class
|
2017-04-26 14:58:48 +02:00
|
|
|
%td.procedure-lien= link_to procedure.lien, procedure.lien, 'data-method' => :get
|
2017-07-17 16:36:32 +02:00
|
|
|
- if @active_class || @archived_class
|
|
|
|
%td
|
|
|
|
= procedure.published_at_fr
|
|
|
|
- else
|
|
|
|
%td
|
|
|
|
= procedure.created_at_fr
|
2016-06-20 17:37:04 +02:00
|
|
|
%td
|
2016-12-26 10:56:48 +01:00
|
|
|
= link_to('Cloner', admin_procedure_clone_path(procedure.id), 'data-method' => :put, class: 'btn-sm btn-primary clone-btn')
|
2018-01-11 19:04:39 +01:00
|
|
|
- if !procedure.publiee_ou_archivee?
|
2016-06-20 17:37:04 +02:00
|
|
|
= 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
|
2017-01-02 10:48:47 +01:00
|
|
|
= smart_listing.pagination_per_page_links
|
|
|
|
%br
|
|
|
|
|
2016-01-07 15:29:29 +01:00
|
|
|
|
|
|
|
- else
|
|
|
|
%h4.center
|
|
|
|
Aucune procédure
|