X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73c95847a6680bea7f35fe5b3da6eb4e52757b9c..6cf9f5dc9cba1b73d7f275560798d7dcc6a2e3ea:/app/views/messages/new.html.erb diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb index 0918a23f0..7c91722ff 100644 --- a/app/views/messages/new.html.erb +++ b/app/views/messages/new.html.erb @@ -1,23 +1,12 @@ <% content_for :heading do %> -

<%= t(".send_message_to_html", :name => link_to(@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" %> +<%= 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.text_field :title, :size => 60, :class => "richtext_title" %> -
-
- - <%= richtext_area :message, :body, :cols => 80, :rows => 20 %> -
-
- <%= f.submit %> - <%= 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 %>