X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..7b2af50f4a12da6f18c4b5d89ee1264e252c6da9:/app/views/user_blocks/new.html.erb diff --git a/app/views/user_blocks/new.html.erb b/app/views/user_blocks/new.html.erb index 80854b840..f26a91c5c 100644 --- a/app/views/user_blocks/new.html.erb +++ b/app/views/user_blocks/new.html.erb @@ -1,15 +1,16 @@ -<% @title = t 'user_block.new.title', :name => h(@this_user.display_name) %> -
- <%= f.label :reason, t('user_block.new.reason', :name => @this_user.display_name) %>
- <%= f.text_area :reason, :cols => 80, :rows => 5 %>
+ <%= f.label :reason, t('user_block.new.reason', :name => @user.display_name) %>
+ <%= richtext_area :user_block, :reason, :cols => 80, :rows => 20 %>
<%= label_tag 'user_block_period', t('user_block.new.period') %>
@@ -20,7 +21,7 @@
<%= f.label :needs_view, t('user_block.new.needs_view') %>
- <%= hidden_field_tag 'display_name', @this_user.display_name %> + <%= hidden_field_tag 'display_name', @user.display_name %> <%= f.submit t('user_block.new.submit') %>
<% end %>