% if resource.errors.any? %>
<%= pluralize(resource.errors.count, "error") %> prohibited this resource from being saved:
<% resource.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= f.hidden_field :agent_id, value: current_agent.id %>
<%= f.hidden_field :source, value: current_agent.name %>
<%= f.submit 'Save' %>