X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a1b179fa384d689e6cb78c2b8d863621e7bff152..ae00fa84c8f981e909c61ab31b6115bb96e859cc:/app/views/messages/new.html.erb
diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb
index 2c008732c..2838a5dab 100644
--- a/app/views/messages/new.html.erb
+++ b/app/views/messages/new.html.erb
@@ -1,23 +1,12 @@
<% content_for :heading do %>
-
<%= raw(t '.send_message_to', :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %>
+ <%= t(".send_message_to_html", :name => link_to(@message.recipient.display_name, @message.recipient)) %>
<% end %>
-<%= error_messages_for 'message' %>
+<%= bootstrap_form_for @message do |f| %>
+ <%= hidden_field_tag :display_name, @message.recipient.display_name, :autocomplete => "off" %>
+ <%= f.text_field :title %>
+ <%= f.richtext_field :body, :cols => 80, :rows => 20 %>
-<%= form_for @message, :html => { :class => 'standard-form' } do |f| %>
- <%= hidden_field_tag :display_name, @message.recipient.display_name %>
-
+ <%= f.primary %>
+ <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "btn btn-link" %>
<% end %>