]> git.openstreetmap.org Git - rails.git/commitdiff
Rework send message form using new form styles
authorTom MacWright <tom@macwright.org>
Tue, 11 Jun 2013 00:19:50 +0000 (17:19 -0700)
committerTom Hughes <tom@compton.nu>
Wed, 26 Jun 2013 17:59:03 +0000 (18:59 +0100)
app/views/message/new.html.erb

index 96f6b080d945823db4f7c948b39599e06aea3f6d..6b8ad18262661305b673d62c463feb3a6abd7a2c 100644 (file)
@@ -4,21 +4,20 @@
 
 <%= error_messages_for 'message' %>
 
-<%= form_for :message, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
-  <table>
-    <tr valign="top">
-      <td class="fieldName"><%= t'message.new.subject' %></td>
-      <td><%= f.text_field :title, :size => 60, :value => @subject %></td>
-    </tr>
-    <tr valign="top">
-      <td class="fieldName"><%= t'message.new.body' %></td>
-      <td><%= richtext_area :message, :body, :cols => 80, :value => @body %></td>
-    </tr>
-    <tr>
-      <td></td>
-      <td><%= submit_tag t('message.new.send_button') %></td>
-    </tr>
-  </table>
+<%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %>
+  <fieldset class="form-row">
+    <label><%= t'message.new.subject' %></label>
+    <%= f.text_field :title, :size => 60, :value => @subject %>
+  </fieldset>
+
+  <fieldset class="form-row">
+    <label><%= t'message.new.body' %></label>
+    <%= richtext_area :message, :body, :cols => 80, :value => @body %>
+  </fieldset>
+
+  <fieldset class="form-row">
+    <%= submit_tag t('message.new.send_button') %>
+  </fieldset>
 <% end %>
 
 <br />