+ <%= f.primary %>
+ <% else %>
+ <div class="alert alert-info">
+ <% if @user_block.active? %>
+ <%= t "user_blocks.update.only_creator_can_edit_without_revoking" %>
+ <% else %>
+ <%= t "user_blocks.update.inactive_block_cannot_be_reactivated" %>
+ <% end %>
+ </div>
+
+ <%= hidden_field_tag "user_block_period", 0 %>
+ <%= hidden_field_tag "user_block[needs_view]", false %>
+
+ <% if @user_block.active? %>
+ <%= f.submit t(".revoke"), :class => "btn btn-danger" %>
+ <% else %>
+ <%= f.primary %>
+ <% end %>
+ <% end %>