<% content_for :title, "Suspend \"#{@user.name}\"" %>

<h1>Suspend &ldquo;<%= @user.name %>&rdquo;</h1>

<%= form_tag admin_suspension_path(@user), method: "put", :class => 'well' do %>
  <p>
    <label class="checkbox">
      Suspended?
      <%= check_box_tag "user[suspended]", "1", @user.suspended?, class: "checkbox" %>
    </label>
  </p>
  <p>
    <label for="user_reason_for_suspension">Reason for suspension</label>
    <%= text_field_tag "user[reason_for_suspension]", @user.reason_for_suspension %>
  </p>
  <%= submit_tag "Save", class: "btn btn-primary" %>
  <%= link_to "Cancel", class: "btn btn-default" %>
<% end %>

<% content_for :title, "Suspend \"#{@user.name}\"" %>

<ol class="breadcrumb">
  <li><%= link_to @user.name, admin_user_path(@user) %></li>
  <li class="active">Suspend</li>
</ol>

<h1 class="page-title">Suspend &ldquo;<%= @user.name %>&rdquo;</h1>

<%= form_tag admin_suspension_path(@user), method: "put", :class => 'well remove-top-padding' do %>
  <div class="checkbox add-top-margin">
    <label>
      Suspended?
      <%= check_box_tag "user[suspended]", "1", @user.suspended? %>
    </label>
  </div>
  <div class="form-group">
    <label for="user_reason_for_suspension">Reason for suspension</label>
    <%= text_field_tag "user[reason_for_suspension]", @user.reason_for_suspension, class: 'form-control input-md-6' %>
  </div>
  <hr />
  <%= submit_tag "Save", class: "btn btn-primary add-right-margin" %>
  <%= link_to "Cancel", admin_user_path(@user), class: "btn btn-default" %>
<% end %>

Tidy up suspend user form
Tidy up suspend user form

* Add a breadcrumb to get back to user edit form easily
* Make the cancel button work (it hasn’t until now)
* Use bootstrap 3 form styles
