X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d14cf519fd876274900758a903e7e390d38922d5..b52fabef6d17d9a6e4afa821b768fb87bcbd71b6:/app/views/messages/new.html.erb diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb index 73d0ede2a..0918a23f0 100644 --- a/app/views/messages/new.html.erb +++ b/app/views/messages/new.html.erb @@ -1,22 +1,23 @@ <% 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, user_path(@message.recipient))) %>

<% end %> -<%= error_messages_for 'message' %> +<%= error_messages_for "message" %> -<%= form_for :message, :html => { :class => 'standard-form' }, :url => new_message_path(@message.recipient) do |f| %> +<%= form_for @message, :html => { :class => "standard-form" } do |f| %> + <%= hidden_field_tag :display_name, @message.recipient.display_name %>
-
- +
+ <%= f.text_field :title, :size => 60, :class => "richtext_title" %>
-
- +
+ <%= richtext_area :message, :body, :cols => 80, :rows => 20 %>
- <%= submit_tag t('.send_button') %> - <%= link_to t('.back_to_inbox'), inbox_path(current_user), :class => 'deemphasize button' %> + <%= f.submit %> + <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "deemphasize button" %>
<% end %>