From: Tom MacWright Date: Tue, 11 Jun 2013 00:19:50 +0000 (-0700) Subject: Rework send message form using new form styles X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f60507599313c49a6f576c2c8c13cd2a9dcce8a7 Rework send message form using new form styles --- diff --git a/app/views/message/new.html.erb b/app/views/message/new.html.erb index 96f6b080d..6b8ad1826 100644 --- a/app/views/message/new.html.erb +++ b/app/views/message/new.html.erb @@ -4,21 +4,20 @@ <%= error_messages_for 'message' %> -<%= form_for :message, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %> - - - - - - - - - - - - - -
<%= t'message.new.subject' %><%= f.text_field :title, :size => 60, :value => @subject %>
<%= t'message.new.body' %><%= richtext_area :message, :body, :cols => 80, :value => @body %>
<%= submit_tag t('message.new.send_button') %>
+<%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @this_user.display_name } do |f| %> +
+ + <%= f.text_field :title, :size => 60, :value => @subject %> +
+ +
+ + <%= richtext_area :message, :body, :cols => 80, :value => @body %> +
+ +
+ <%= submit_tag t('message.new.send_button') %> +
<% end %>