X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9b36021ec5eabeca8db735cf80c5876d2d31338d..26cd62d5f263e348206f9ae2bfa2e0e07aa35d08:/app/views/messages/new.html.erb diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb index e33bc176d..2838a5dab 100644 --- a/app/views/messages/new.html.erb +++ b/app/views/messages/new.html.erb @@ -1,22 +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' }, :url => new_message_path(@message.recipient) do |f| %> -
-
- - <%= 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_messages_path, :class => 'deemphasize button' %> -
-
+ <%= f.primary %> + <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "btn btn-link" %> <% end %>