From: Tom Hughes Date: Mon, 19 Mar 2012 11:24:47 +0000 (+0000) Subject: Handle reason as a rich text area when editing a block X-Git-Tag: live~5687 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/359371b31c33d062ca31c4cc48876c81e4e6ef26?ds=sidebyside Handle reason as a rich text area when editing a block --- diff --git a/app/views/user_blocks/edit.html.erb b/app/views/user_blocks/edit.html.erb index a50ac75d7..d78bd11d8 100644 --- a/app/views/user_blocks/edit.html.erb +++ b/app/views/user_blocks/edit.html.erb @@ -9,7 +9,7 @@

<%= f.label :reason, t('user_block.edit.reason', :name => h(@user_block.user.display_name)) %>
- <%= f.text_area :reason, :cols => 80, :rows => 5 %> + <%= richtext_area :user_block, :reason, :cols => 80, :rows => 20, :format => @user_block.reason_format %>

<%= label_tag 'user_block_period', t('user_block.edit.period') %>