]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/new.rhtml
Cope with empty areas better.
[rails.git] / app / views / message / new.rhtml
index 4075d543e1e16d7c084b54e4b33ee342ef4c23b1..883fdfbc0ca9e02d67b070936df454042b73c0a4 100644 (file)
@@ -9,12 +9,23 @@
 
 <%= error_messages_for 'message' %>
 
-<%= start_form_tag :controller => 'message', :action => 'new' %>
-subject: <%= text_field 'message', 'title' %><br>
-body: <%= text_area 'message', 'body' %><br>
-  <%= submit_tag 'Send' %>
-<% end_form_tag %>
+<% form_for :message do |f| %>
+  <table>
+    <tr valign="top">
+      <th>Subject</th>
+      <td><%= f.text_field :title, :size => 60 %></td>
+    </tr>
+    <tr valign="top">
+      <th>Body</th>
+      <td><%= f.text_area :body, :cols => 80 %></td>
+    </tr>
+    <tr>
+      <th></th>
+      <td><%= submit_tag 'Send' %></td>
+    </tr>
+  </table>
+<% end %>
 
 <br />
 
-<%= link_to 'Back to my account', :controller => 'user', :action => 'account' %>
+<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>