demarches-normaliennes/app/views/demo/_list.html.haml

27 lines
789 B
Text
Raw Normal View History

2016-01-07 11:41:03 +01:00
- unless smart_listing.empty?
%table.table
%tr
%th{colspan: 4}
%h4 Lien vers les procédures TPS
%tr
%th= smart_listing.sortable 'ID', 'id'
%th= smart_listing.sortable 'Titre', 'libelle'
%th Description
%th= smart_listing.sortable 'Organisation', 'organisation'
- smart_listing.collection.each do |procedure|
- procedure = procedure.decorate
%tr
%td
= procedure.id
2016-12-23 16:58:06 +01:00
%td.col-md-4.col-sm-4.col-xs-4.col-lg-4
2016-01-07 11:41:03 +01:00
= link_to procedure.libelle, procedure.lien
%td
= procedure.description
2016-12-23 16:58:06 +01:00
%td.col-md-3.col-sm-3.col-xs-3.col-lg-3
2016-01-07 11:41:03 +01:00
= procedure.organisation
= smart_listing.paginate
= smart_listing.pagination_per_page_links
- else
%p Aucune procédure trouvée