mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 14:01:48 +00:00
30 lines
680 B
Text
30 lines
680 B
Text
|
<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>
|