%= form_for(@contract, html: {class: "col-sm-6"}) do |f| %>
<% if @contract.errors.any? %>
<%= pluralize(@contract.errors.count, "error") %> prohibited this contract from being saved:
<% @contract.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :first_name %>
<%= f.text_field :first_name, class: "form-control" %>
<%= f.label :last_name %>
<%= f.text_field :last_name, class: "form-control" %>
<%= f.label :cosigner %>
<%= f.text_field :cosigner, class: "form-control" %>
<%= f.label :user_id, "User" %>
<%= collection_select(:contract, :user_id, @users, :id, :name, :include_blank => true) %>
<%= f.label :signed_at %>
<%= f.date_select :signed_at %>
<%= f.submit nil, class: "btn btn-primary" %>
<% end %>