
Form con problemi.......
By:
MdreW on
Jul 3rd, 2012 | syntax:
Ruby | size: 1.10 KB | hits: 37 | expires: Never
%div{:id => @email.div_details}
%dl
%dt Stato
%dd= @email.status || "non inviata"
.clear.p10
%dt Ogetto
%dd= best_in_place [@email.campaign, @email], :subject
.clear.p10
%dt Testo
%dd= best_in_place [@email.campaign, @email], :body, :type => :textarea, :sanitize => false
%div{:id => "attachments"}
%h3{:class => "tcenter"} Allegati
%ul
%li{:class => "list"}
= form_for( [@campaign, @email, @attachment_new], :html => { :multipart => true}, :remote => true ) do |f|
= f.file_field :file
%span{:class => "fright"}
= f.submit
= render :partial => 'attachment', :collection => @attachments
.tcenter= button_to("Invia", tosend_campaign_email_path(@email.campaign, @email), :remote => true)
- if @email.status == "inviata"
%div{:id => "statistics"}
%h3{:class => "tcenter"} Statistiche
%dl
%dt Indirizzi
%dd= @email.addresses.count
%dt Inviate:
%dd= @email.postings.sended.count
.clear.p10
%dt Fallite:
%dd= @email.postings.failed.count
.clear.p10