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

9 lines
615 B
Plaintext

-if @sheets
-form_tag :controller => "newsletters", :action => "send_newsletter", :id => params[:id] do
#sheets_checkboxs
-@sheets.sort{|u,v| ((u.person.surname if u.person) || u.corporate).to_s <=>(( v.person.surname if v.person )|| v.corporate).to_s}.each do |sheet|
=check_box_tag "confirmed_sheets[]", sheet.id,true, :id => "confirmed_sheets_"+sheet.id.to_s
%label{:for => "confirmed_sheets_"+sheet.id.to_s}=(sheet.person.name if sheet.person and (!sheet.corporate or sheet.corporate == "")) || sheet.corporate
%br
=submit_tag "Envoyer la newsletter à toutes les adresses de ces fiches"