X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d075fc4c1f3e7a17b4c71e7a06fd6cf318e0ef2f..ee2a941d3eb7279aed5829ddbafe1cc9f9631459:/app/views/message/new.html.erb?ds=sidebyside
diff --git a/app/views/message/new.html.erb b/app/views/message/new.html.erb
index 85de1e51b..f7c26aea1 100644
--- a/app/views/message/new.html.erb
+++ b/app/views/message/new.html.erb
@@ -1,24 +1,22 @@
-
<%= t'message.new.send_message_to', :name => link_to(h(@to_user.display_name), {:controller => 'user', :action => 'view', :display_name => @to_user.display_name}) %>
+<% content_for :heading do %>
+ <%= raw(t'message.new.send_message_to', :name => link_to(h(@message.recipient.display_name), {:controller => 'user', :action => 'view', :display_name => @message.recipient.display_name})) %>
+<% end %>
<%= error_messages_for 'message' %>
-<% form_for :message, :url => { :action => "new", :display_name => @to_user.display_name } do |f| %>
-
-
- <%= t'message.new.subject' %> |
- <%= f.text_field :title, :size => 60, :value => @subject %> |
-
-
- <%= t'message.new.body' %> |
- <%= f.text_area :body, :cols => 80, :value => @body %> |
-
-
- |
- <%= submit_tag t('message.new.send_button') %> |
-
-
+<%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @message.recipient.display_name } do |f| %>
+
<% end %>
-
-
-
-<%= link_to t('message.new.back_to_inbox'), :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>