<%= setup_context :object => @agent, :controller => :agents, :agent_type => @agent.agent_type, :title => @agent.title %> <%= form_for @agent, :as => "agent", :url => {:action => :update}, :html => {:class => 'form-horizontal aspace-record-form', :id => "agent_form"}.merge(update_monitor_params(@agent)) do |f| %> <%= form_context :agent, @agent do |form| %>
<%= render_aspace_partial :partial => "sidebar", :locals => {:form => form} %>
<%= render_aspace_partial :partial => "toolbar" %>
<%= link_to_help :topic => "#{@agent.agent_type}" %>

<%= @agent.title %> <%= I18n.t("agent._singular") %>

<%= render_aspace_partial :partial => "agents/form", :locals => {:form => form} %>
<%= link_to I18n.t("actions.cancel"), :back, :class => "btn btn-cancel btn-default" %>
<% end %> <% end %>