X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bca0d5873b4b9b1b5709611aa28ff736eb94720e..af4003e2eee24883318212e79f46d2ba4d2b9dbd:/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 a4f8ac7e0..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 %>