<%= form_for issue, :html => { :class => "form-horizontal issue" } do |f| %> <% if issue.errors.any? %>

<%= pluralize(issue.errors.count, "error") %> prohibited this issue from being saved:

<% end %>
<%= f.label :project_id, :class => 'control-label col-lg-2' %>
<%= f.collection_select :project_id, Project.all, :id, :name, {}, :class=>"form-control" %>
<%=f.error_span(:project_id) %>
<%= f.label :title, :class => 'control-label col-lg-2' %>
<%= f.text_field :title, :class => 'form-control' %>
<%=f.error_span(:title) %>
<%= f.label :status, :class => 'control-label col-lg-2' %>
<%= f.select :status, Issue.status.options, {}, :class=>"form-control" %>
<%=f.error_span(:status) %>
<%= f.label :creator_id, :class => 'control-label col-lg-2' %>
<%= f.collection_select :creator_id, User.all, :id, :email, {}, :class=>"form-control" %>
<%=f.error_span(:creator_id) %>
<%= f.label :assignee_id, :class => 'control-label col-lg-2' %>
<%= f.collection_select :assignee_id, User.all, :id, :email, {include_blank: true}, :class=>"form-control" %>
<%=f.error_span(:assignee_id) %>
<%= f.submit nil, :class => 'btn btn-primary' %> <%= link_to t('.cancel', :default => t("helpers.links.cancel")), issues_path, :class => 'btn btn-default' %>
<% end %>