<% content_for('sidebar') { %> <%= render :partial => 'shared/folders' %> <% } %>

<%= t :mailbox%>

<%= text_field_with_auto_complete(:mail, :to, {"size"=>65}, :skip_style => true, :tokens=> ",") %>
<%= text_field_with_auto_complete(:mail, :cc, {"size"=>65}, :skip_style => true, :tokens=> ",") %>
<%= text_field_with_auto_complete(:mail, :bcc, {"size"=>65}, :skip_style => true, :tokens=> ",") %>
<%= text_field('mail', 'subject', {"size"=>65}) %>
<%= hidden_field('mail', 'from') %> <%= hidden_field('mail', 'content_type') %>
<%= text_area "mail", "body", "rows"=>20, "cols"=>75 %>
<% if @mail.attachments and @mail.attachments.size > 0%> <% i = 0 @mail.attachments.each { |att| %> <% i = i + 1 }%>
<%=attachment(att, i)%>
<% end %>
<%=%>
<% content_for("scripts") { %> <%= @additional_scripts %> <% if ['text/html', 'multipart'].include?(@mail.content_type) %> <%= include_tinymce %> <% end %> <%= javascript_include_tag "controls" %> <%= javascript_include_tag "dragdrop" %> <%= javascript_include_tag "effects" %> <% %> <% } %>