1 <h1><%= t('user_block.edit.title', :name => @user_block.user.display_name) %></h1>
3 <% form_for(@user_block) do |f| %>
4 <%= f.error_messages %>
7 <%= f.label :reason, t('user_block.edit.reason', :name => @user_block.user.display_name) %><br />
8 <%= f.text_area :reason %>
11 <%= label_tag 'user_block_period', t('user_block.edit.period') %><br />
12 <%= select_tag('user_block_period', options_for_select(UserBlock::PERIODS.collect { |h| [t('user_block.period', :count => h), h.to_s] }, params[:user_block_period])) %>
15 <%= f.check_box :needs_view %>
16 <%= f.label :needs_view, t('user_block.edit.needs_view') %>
19 <%= f.submit t('user_block.edit.submit') %>
23 <%= link_to t('user_block.edit.show'), @user_block %> |
24 <%= link_to t('user_block.edit.back'), user_blocks_path %>