demarches-normaliennes/app/views/admin/procedures/_list.html.haml

24 lines
741 B
Text
Raw Normal View History

2016-01-07 15:29:29 +01:00
- unless smart_listing.empty?
%table.table
%thead
%th#ID= smart_listing.sortable 'ID', 'id'
%th#libelle= smart_listing.sortable 'Libellé', 'libelle'
%th#lien Lien
2016-06-15 11:34:05 +02:00
%th#lien Actions
2016-01-07 15:29:29 +01:00
- @procedures.each do |procedure|
- procedure = procedure.decorate
%tr
%td.col-md-1.col-lg-1= procedure.id
%td.col-md-6.col-lg-6
= link_to(procedure.libelle, "/admin/procedures/#{procedure.id}")
%td= link_to procedure.lien, procedure.lien
2016-06-15 11:34:05 +02:00
%td= link_to('cloner', admin_procedure_clone_path(procedure.id), 'data-method' => :put, class: 'btn-xs btn-primary')
2016-01-07 15:29:29 +01:00
= smart_listing.paginate
= smart_listing.pagination_per_page_links
- else
%h4.center
Aucune procédure