X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95c3d640a44857b0b92ec3be6dad606e40057c5c..fb16b5ed14fa9f7f043522674fb4f37628f07c8e:/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 3d0d2d0bf..f26a91c5c 100644 --- a/app/views/user_blocks/new.html.erb +++ b/app/views/user_blocks/new.html.erb @@ -1,11 +1,16 @@ -
- <%= f.label :reason, t('user_block.new.reason', :name => @this_user.display_name) %>
- <%= f.text_area :reason %>
+ <%= 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') %>
@@ -16,9 +21,9 @@
<%= 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 %> -<%= link_to 'Back', user_blocks_path %> +<%= link_to t('user_block.new.back'), user_blocks_path %>