2009-02-07 20:01:59 +01:00
|
|
|
<% content_for('sidebar') { %>
|
|
|
|
<%= render :partial => 'shared/folders' %>
|
|
|
|
<% } %>
|
|
|
|
|
2009-09-01 14:23:05 +02:00
|
|
|
<h1><%= t :mailbox%></h1>
|
2009-02-05 16:55:24 +01:00
|
|
|
<form name="composeMail" id='composeMail' action="/webmail/compose" enctype="multipart/form-data" method="post">
|
2009-01-07 20:27:12 +01:00
|
|
|
<div id="header">
|
|
|
|
<ul id="primary">
|
2009-09-01 14:23:05 +02:00
|
|
|
<li><%= link_folders %></li>
|
|
|
|
<li><span><%= t :compose %></span>
|
2009-01-07 20:27:12 +01:00
|
|
|
<ul id="secondary">
|
2009-09-01 14:23:05 +02:00
|
|
|
<li><%= link_compose_new %></li>
|
|
|
|
<li><a href='#' onclick="getFormField('composeMail').submit();"><%= t :send %></a></li>
|
|
|
|
<li><a href="#" onclick="chooseContacts();"><%= t :choose_address %></a></li>
|
2009-01-07 20:27:12 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li><%=link_mail_prefs%></li>
|
|
|
|
<li><%=link_mail_filters%></li>
|
|
|
|
<li><%=link_main%></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="tab_main">
|
|
|
|
<div id="tab_content">
|
|
|
|
|
|
|
|
<div id="msg-compose">
|
|
|
|
<input type="hidden" id="mail_toc" name="mail[toc]" value="<%=@mail.toc%>"/>
|
2009-09-01 14:23:05 +02:00
|
|
|
<input type="hidden" id="mail_op" name="op" value="<%= t :send %>"/>
|
2009-01-07 20:27:12 +01:00
|
|
|
<div id="msghdr">
|
|
|
|
<table>
|
2009-09-01 14:23:05 +02:00
|
|
|
<tr><td><label for=''><%= t :to %></label></td><td><%= text_field_with_auto_complete(:mail, :to, {"size"=>65}, :skip_style => true, :tokens=> ",") %></td></tr>
|
|
|
|
<tr><td><label for=''><%= t :cc %></label></td><td><%= text_field_with_auto_complete(:mail, :cc, {"size"=>65}, :skip_style => true, :tokens=> ",") %></td></tr>
|
|
|
|
<tr><td><label for=''><%= t :bcc %></label></td><td><%= text_field_with_auto_complete(:mail, :bcc, {"size"=>65}, :skip_style => true, :tokens=> ",") %></td></tr>
|
|
|
|
<tr><td><label for=''><%= t :subject %></label></td><td><%= text_field('mail', 'subject', {"size"=>65}) %></td></tr>
|
2009-01-07 20:27:12 +01:00
|
|
|
</table>
|
|
|
|
<%= hidden_field('mail', 'from') %>
|
|
|
|
<%= hidden_field('mail', 'content_type') %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="msgpart ct-text-plain">
|
|
|
|
<%= text_area "mail", "body", "rows"=>20, "cols"=>75 %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="msgpart">
|
|
|
|
<% if @mail.attachments and @mail.attachments.size > 0%>
|
|
|
|
<table class="attachments">
|
|
|
|
<% i = 0
|
|
|
|
@mail.attachments.each { |att| %>
|
|
|
|
<tr><td><%=attachment(att, i)%></td></tr>
|
|
|
|
<% i = i + 1
|
|
|
|
}%>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
<hr/>
|
2009-09-01 14:23:05 +02:00
|
|
|
<label for="attachment"><%= t :attachment %>:</label><%=%><input type="file" name="attachment"/>
|
|
|
|
<input type="button" name="mail_add_attachement" value="<%= t :add %>"
|
|
|
|
onclick="getFormField('mail_op').value='<%= t :add %>';getFormField('composeMail').submit();">
|
2009-01-07 20:27:12 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div></div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<% 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" %>
|
|
|
|
<% %>
|
|
|
|
<% } %>
|