pic_vert_app/app/views/newsgroups/index.html.haml
2013-01-08 22:47:42 +01:00

31 lines
666 B
Plaintext

.links
= link_to 'Ajouter un groupe', new_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_newsgroup_path(newsgroup),:class => "lien" ) if has_permission?('adherent.edit')
=link = link_to('Supprimer', newsgroup, :confirm => 'Êtes-vous sure de supprimer le groupe ?', :method => :delete, :class => "lien") if has_permission?('adherent.delete')
%br