pic_vert_app/app/views/admin/sheets/_sheets.html.haml

13 lines
347 B
Plaintext

=@sheets.size
résultats
%table.table.table-striped.table-hover
%tr
%th #
%th Nom
%th Téléphone
%th.hidden-phone Email
%th.hidden-phone Commune
%th{:style => "width:100px;"}
=render @sheets.sort{|u,v| ((u.person.surname if u.person) || u.corporate).to_s <=>(( v.person.surname if v.person )|| v.corporate).to_s}