]> git.openstreetmap.org Git - rails.git/blob - app/views/message/new.rhtml
Fix a few typos
[rails.git] / app / views / message / new.rhtml
1 <h2>Send a new message to <%= h(@to_user.display_name) %></h2>
2
3 <% if params[:display_name] %>
4 <p>Writing a new message to <%= h(params[:display_name]) %></p>  
5 <p>TODO: drop down box of your friends</p>
6 <%end%>
7
8 <%= error_messages_for 'message' %>
9
10 <% form_for :message, :url => { :action => "new", :user_id => @to_user.id } do |f| %>
11   <table>
12     <tr valign="top">
13       <th>Subject</th>
14       <td><%= f.text_field :title, :size => 60, :value => @title %></td>
15     </tr>
16     <tr valign="top">
17       <th>Body</th>
18       <td><%= f.text_area :body, :cols => 80, :value => @body %></td>
19     </tr>
20     <tr>
21       <th></th>
22       <td><%= submit_tag 'Send' %></td>
23     </tr>
24   </table>
25 <% end %>
26
27 <br />
28
29 <%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>