X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7b384f03ab1d34fd3ebcc5ae3add25b3b5591e2e..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 3d3e6855c..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 %>