Handle reason as a rich text area when editing a block

This commit is contained in:
Tom Hughes 2012-03-19 11:24:47 +00:00
parent 3b0ff552de
commit 359371b31c

View file

@ -9,7 +9,7 @@
<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 />