37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
%tr.vertical_center.contact#contact{:id => contact.id}
|
|
%td{:style => "vertical-align:middle;"}
|
|
=image_tag "/provenance/#{contact.provenance_id}.png", :style => "width:20px;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,0.5)"
|
|
%td
|
|
-if contact.urgent
|
|
%div{:style => "width:20px;height:20px;border-radius:50%;background:red;"}
|
|
%td{:style => "vertical-align:middle;"}
|
|
-if !contact.readed
|
|
%span{:style => "display:inline-block;width:10px;height:10px;border-radius:50%;background:#00B3EC"}
|
|
|
|
%td
|
|
=l contact.created_at
|
|
%td
|
|
=contact.name
|
|
%td
|
|
=contact.cp
|
|
=contact.city
|
|
%td
|
|
=contact.small_comment
|
|
|
|
%td
|
|
-if contact.admin
|
|
%span{:style => "background:#{contact.admin.color};padding:5px 10px;color:white"}
|
|
=contact.admin.username
|
|
%td.actions{:style => "width:430px;text-align:right;"}
|
|
|
|
|
|
= link_to ic(:"trash-o"), [:admin, contact], :confirm => 'Voulez-vous vraiment supprimer cet utilisateur ?', :method => :delete, :remote => true, :class => "btn btn-danger"
|
|
|
|
= link_to ic(:pencil)+" modifier / attribuer la fiche", edit_admin_contact_path(contact), :remote => true, :class => "btn btn-warning"
|
|
|
|
= link_to ic(:eye)+ " détail de la fiche ", [:admin, contact], :class => "btn btn-primary"
|
|
|
|
|
|
|
|
|