<% html_title("DMSF") %>
<% path = @folder.nil? ? [] : @folder.dmsf_path %>

<%= render(:partial => 'path', :locals => {:path => path}) %>

Send documents by email

<% form_tag({:action => "email_entries_send", :id => @project, :folder_id => @folder}, { :method=>:post, :class => "tabular"}) do %>

<%= label_tag("", "From:") %> <%= h(User.current.mail) %>

<%= label_tag("email[to]", "To:") %> <%= text_field_tag("email[to]", @email_params["to"], :style => "width: 90%;") %>

<%= label_tag("email[cc]", "CC:") %> <%= text_field_tag("email[cc]", @email_params["cc"], :style => "width: 90%;") %>

<%= label_tag("email[subject]", "Subject:") %> <%= text_field_tag("email[subject]", @email_params["subject"], :style => "width: 90%;") %>

<%= label_tag("", "Documents:") %> Documents.zip <%= hidden_field_tag("email[zipped_content]", @email_params["zipped_content"]) %>

<%= label_tag("email[body]", "Body:") %> <%= text_area_tag("email[body]", @email_params["body"], :rows=> "20", :style => "width: 90%;") %>

<%= submit_tag("Send") %>

<% end %>