% if agent.is_form_configurable? %>
<% else %>
<%= label_tag :options %>
<% end %>
<%= submit_tag "Save", :class => "btn btn-primary" %>
<% if agent.can_dry_run? %>
<%= button_tag class: 'btn btn-default agent-dry-run-button', type: 'button', 'data-action-url' => agent.persisted? ? dry_run_agent_path(agent) : dry_run_agents_path, 'data-with-event-mode' => agent_dry_run_with_event_mode(agent) do %><%= icon_tag('glyphicon-refresh') %> Dry Run<% end %>
<% end %>