2014-04-15 22:04:43 +00:00
|
|
|
<div id="messages">
|
|
|
|
<h1>New Message</h1>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-15 22:04:43 +00:00
|
|
|
<%= form_for(@message, html: { class: 'square' }) do |f| %>
|
2014-04-29 23:50:27 +00:00
|
|
|
<%= render 'shared/errors', messages: @message.errors.full_messages %>
|
|
|
|
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.hidden_field :recipient_id %>
|
|
|
|
<%= f.hidden_field :recipient_type %>
|
|
|
|
|
2014-04-15 22:04:43 +00:00
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :sender %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.select :sender_raw, cuser.to_s, {:include_blank => cuser.to_s} %>
|
2014-04-15 22:04:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :recipient %>
|
|
|
|
<%= text_field_tag :asdf, @message.recipient, :disabled => true %>
|
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :title %>
|
|
|
|
<%= f.text_field :title %>
|
|
|
|
</div>
|
|
|
|
<div class="fields horizontal">
|
|
|
|
<%= f.label :text %>
|
2014-04-20 01:29:52 +00:00
|
|
|
<%= f.text_area :text, rows: 15 %>
|
2014-04-15 22:04:43 +00:00
|
|
|
</div>
|
|
|
|
<div class="controls">
|
|
|
|
<%= f.submit 'Send Message' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2014-03-23 00:22:25 +00:00
|
|
|
</div>
|