26 lines
932 B
Plaintext
26 lines
932 B
Plaintext
= link_to i(:plus, :icon => false)+' Ajouter une petition', new_admin_petition_path, :class => "btn"
|
|
%h1 Liste des petitions en ligne
|
|
|
|
%table.stat_table.table.table-striped
|
|
%tr
|
|
%th Nom
|
|
%th Url
|
|
%th Nbr sign.
|
|
%th
|
|
|
|
|
|
|
|
- @petitions.each do |petition|
|
|
%tr
|
|
%td= petition.name
|
|
%td=link_to petition_url(:id => petition.slug),petition_url(:id => petition.slug)
|
|
|
|
%td
|
|
=petition.confirmed_signators_number
|
|
="("+(petition.signators_number-petition.confirmed_signators_number).to_s+" en attente)" if petition.signators_number-petition.confirmed_signators_number > 0
|
|
%td
|
|
= link_to i(:"trash-o"), [:admin, petition], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette petition ? Les signatures seront également supprimées.' }
|
|
= link_to i(:pencil), edit_admin_petition_path(petition)
|
|
= link_to i(:info), [:admin, petition]
|
|
|