.qi_header
  %h1 

    Pétitions
    %span
      signatures pour la pétition :
      =@don_tunnel.lang("fr").title
  

.qi_row
  .qi_pannel.qi_plain.padding

    .header
      %h2
        Liste des signataires
  
      %p  
        %span.badge.badge-success=@don_tunnel.confirmed_signators_number
        =raw "- "+raw(content_tag("span", (@don_tunnel.signators_number-@don_tunnel.confirmed_signators_number).to_s, :class => "badge badge-warning"))+" en attente" if @don_tunnel.signators_number-@don_tunnel.confirmed_signators_number > 0
    %table.table.table
      %tr
        %th Date
        %th Coordonnées
        
        %th Email
        %th Tel
        %th
  
      -@don_tunnel.signators.each do |signator|
        %tr{:class => (signator.enabled ? "success" : "warning")}
          %td=l signator.created_at, :format => :date
          %td
            =signator.firstname
            =signator.name
            
            -if signator.address
              %br
              =signator.address
            -if signator.address2
              %br
              =signator.address2
            %br
              =signator.cp
              =signator.city
              =signator.country
          %td=signator.email
          %td=signator.phone
          %td=#link_to i(:envelope), reconfirm_admin_don_tunnel_path(signator) if !signator.enabled
      