<div class="wide box">
  <h1>New message</h1>

  <%= form_for(@message) do |f| %>
    <%= f.error_messages %>
    <%= f.hidden_field :recipient_id %>
    <%= f.hidden_field :recipient_type %>

    <p>
      <%= f.label :sender %><br />
      <%= f.select :sender_raw, cuser.to_s, {:include_blank => cuser.to_s} %>
    </p>
    <%= f.label :recipient %><br />
    <%= text_field_tag :asdf, @message.recipient, :disabled => true %>
  </p>
  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :text %><br />
    <%= f.text_area :text %>
  </p>
  <p>
    <%= f.submit 'Send' %>
  </p>
<% end %>
<%= link_to 'Back', messages_path %>
</div>
