]> git.openstreetmap.org Git - rails.git/commitdiff
Handle reason as a rich text area when editing a block
authorTom Hughes <tom@compton.nu>
Mon, 19 Mar 2012 11:24:47 +0000 (11:24 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 19 Mar 2012 11:24:47 +0000 (11:24 +0000)
app/views/user_blocks/edit.html.erb

index a50ac75d7616c6ddb9c693cdbb6a65d90cf2f6e8..d78bd11d803e923e29ddc721207248b2ece2d15e 100644 (file)
@@ -9,7 +9,7 @@
 
   <p>
     <%= f.label :reason, t('user_block.edit.reason', :name => h(@user_block.user.display_name)) %><br />
 
   <p>
     <%= f.label :reason, t('user_block.edit.reason', :name => h(@user_block.user.display_name)) %><br />
-    <%= f.text_area :reason, :cols => 80, :rows => 5 %>
+    <%= richtext_area :user_block, :reason, :cols => 80, :rows => 20, :format => @user_block.reason_format %>
   </p>
   <p>
     <%= label_tag 'user_block_period', t('user_block.edit.period') %><br />
   </p>
   <p>
     <%= label_tag 'user_block_period', t('user_block.edit.period') %><br />