pic_vert_app/app/views/public/people/_person.html.haml
Nicolas Bally 429325823c suite
2019-06-02 18:48:14 +02:00

32 lines
988 B
Plaintext

#sheet_person.line_sheet_block{:id => person.id}
%table{:style => "width:100%;"}
%tr
%td{:style => "width:16%;"}= "Oui" if person.newsletter
%td{:style => "width:16%;"}= person.surname
%td{:style => "width:16%;"}= person.firstname
%td{:style => "width:16%;"}= person.email
%td{:style => "width:16%;"}= person.phone
%td{:style => "width:16%;"}= person.job
%tr
%td{:colspan => 5}
-person.newsgroups.each do |ng|
="| "+ng.name+" |"
%td{:style => "width:16%;text-align:right;"}
-if has_permission?('adherent.edit')
-if person == person.sheet.person
-img = image_tag("/images/style/quartz-admin/principal_active.png")
-else
-img = image_tag("/images/style/quartz-admin/principal.png")
= link_to img, :url => principal_admin_person_path(person), :method => :get, :remote => true
-else
=image_tag("/images/style/quartz-admin/principal_active.png") if person == person.sheet.person