<% if @task.errors.any? %>

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

    <% @task.errors.full_messages.each do |message| %>
  • <%= message %>
  • <% end %>
<% end %>
<%= f.label :title, class: "control-label" %> <%= f.text_field :title, class: "form-control" %>
<%= f.label :content, class: "control-label" %> <%= f.text_area :content, class: "form-control" %>
<%= f.label :user_id, class: "control-label" %> <%= f.select :user_id, Blast::User.all.collect { |p| [ p.email, p.id ] }, { selected: current_user.id }, class: "form-control" %>
<%- if Blast::Core.available?(:contacts) %>
<%= f.label :contact_id, class: "control-label" %> <%= f.select :contact_id, Blast::Contacts::Contact.all.collect { |p| [ p.email, p.id ] }, { allow_blank: true }, class: "form-control" %>
<% end %>