<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% fields_for @agent do |form| %> <% logging_level = (@agent.logging_level == Agent::LOGGING_LEVEL_INFORMATIONAL || @agent.logging_level == Agent::LOGGING_LEVEL_DEBUG || @agent.logging_level == Agent::LOGGING_LEVEL_TRACE) ? @agent.logging_level : Agent::LOGGING_LEVEL_INFORMATIONAL %>
<% if @agent.runtime_state != 1 %>

<%= t 'agents.logging_level_cannot' %>

<% else %>

<%= t_label('agents.logging_level') %>

<%= radio_button_tag("agent_logging_level", Agent::LOGGING_LEVEL_INFORMATIONAL, logging_level == Agent::LOGGING_LEVEL_INFORMATIONAL, {:disabled => @view_only}) %> <%=t "agents.informational" %>
<%= radio_button_tag("agent_logging_level", Agent::LOGGING_LEVEL_DEBUG, logging_level == Agent::LOGGING_LEVEL_DEBUG, {:disabled => @view_only}) %> <%=t "agents.debug" %>
<%= radio_button_tag("agent_logging_level", Agent::LOGGING_LEVEL_TRACE, logging_level == Agent::LOGGING_LEVEL_TRACE, {:disabled => @view_only}) %> <%=t "agents.trace" %>
<% end %>
<% end %>