.links
	=link_to "Créer une newsletter", new_newsletter_path

%table.admin_table#newsletters-list

	%tr
		%th Expéditeur
		%th Sujet
		%th
		%th
	

	-for u in @newsletter
	
		%tr
			%td
				=u.email_from
			%td
				= u.title
			%td
				-  if has_permission?('newsletter.send')
					=form_tag send_test_newsletter_path(u) do
						= text_field_tag :email
						= submit_tag "Envoyer un email de test", :class => "lien"
			%td.link-column{:style => "width:200px;"}
				= link_to "Editer", edit_newsletter_path(u)
				= link_to "Effacer", u, :method => :delete,  :confirm => 'Voulez-vous vraiment supprimer cette newsletter ?'
				= link_to "Envoyer", select_recipients_newsletter_path(u)
			
				
