2013-06-29 23:10:44 +02:00

31 lines
688 B
Plaintext

.links
= link_to 'Ajouter un groupe', new_admin_newsgroup_path, :class => "lien" if has_permission?('adherent.add')
%h1 Liste des groupes
%table.admin_table
%thead
%tr
%th{:style=>"width:80%;"} Nom du groupe
%th{:style=>"width:20%;"}
%tbody
-@newsgroups.each do |newsgroup|
%tr
%td=h newsgroup.name
%td.link-column
=link = link_to( 'Editer', edit_admin_newsgroup_path(newsgroup),:class => "lien" ) if has_permission?('adherent.edit')
=link = link_to('Supprimer', [:admin, newsgroup], :confirm => 'Êtes-vous sure de supprimer le groupe ?', :method => :delete, :class => "lien") if has_permission?('adherent.delete')
%br