%h1=@petition_lang

=#link_to petition_lang.lang_site.name, petition_path(:slug => petition_lang.slug, :lang => petition_lang.lang_site.slug), :target => "_blank"

%hr


%h1
  Liste des signataires
  
%p  
  %span.badge.badge-success=@petition.confirmed_signators_number
  =raw "- "+raw(content_tag("span", (@petition.signators_number-@petition.confirmed_signators_number).to_s, :class => "badge badge-warning"))+" en attente" if @petition.signators_number-@petition.confirmed_signators_number > 0
%table.table.table.table-bordered
  %tr
    %th Date
    %th Nom
    %th Prénom
    %th Adresse
    %th Adresse suite
    %th Ville
    %th Pays
    %th Email
    %th
  
  -@petition.signators.each do |signator|
    %tr{:class => (signator.enabled ? "success" : "warning")}
      %td=l signator.created_at, :format => :date
      %td=signator.name
      %td=signator.firstname
      %td=signator.address
      %td=signator.address2
      %td
        =signator.cp
        =signator.city
      %td=signator.country
      %td=signator.email
      %td=#link_to i(:envelope), reconfirm_admin_petition_path(signator) if !signator.enabled
      