<%= text_field_tag('from', User.current.mail, :id => "email", :size => 30) %>
<%= text_field_tag('subject', '', :id => "subject", :size => 100) %>
<%= text_area_tag 'message-content', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %> <%= l(:text_email_macros, :macro => "%%NAME%%, %%LAST_NAME%%, %%MIDDLE_NAME%%, %%FULL_NAME%%, %%COMPANY%%, %%DATE%%, %%[Custom field]%%") %>
<%= wikitoolbar_for 'message-content' %><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>
<%= submit_tag l(:button_submit) %> <%= link_to_remote l(:label_preview), { :url => { :controller => 'contacts', :action => 'preview_email' }, :method => 'post', :update => 'preview', :with => "Form.serialize('message-form')", :complete => "Element.scrollTo('preview')" }, :accesskey => accesskey(:preview) %>
<% end %> <% content_for :header_tags do %> <%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <% end %>