%(include|header.tpl)s

<div class="breadcrumb"><p><a href="%(url|/)sagents">Agents</a> &#187 <a href="%(url|/)sserver/">Enable/Disable Agents</a></p></div>

<h1>Enable/Disable Agents</h1>

<div class="info" id="msg" tal:condition="info" tal:content="info">Something happened, but I'm not sure.</div>
<div class="error" id="err" tal:condition="error" tal:content="error">An error occured while processing your request. No more information is available.</div>
<div class="info" id="opsuccess" tal:condition="opsuccess">Operation completed sucessfully.</div>

<p>This page enables you to enable and disable specific agents during runtime for change at next restart.</p>
<p>Please note that you <strong>must restart <c>bongo-manager</c></strong> for these changes to take effect, since they're only to do with the agent list at startup, not dynamic starting and stopping.</p>

<p>

<div tal:condition="success" style="text-align: center;">
<form method="post">
	<input type="hidden" name="command" value="agentstatus" />
	<table class="htable" cellspacing="0" style="margin-left: auto; margin-right: auto; width: 75%%">
	<tr class="highlight hrow">
		<th style="padding: 10px;">Agent Name</th>
		<th style="padding: 10px;">Enabled</th>
	</tr>
	<tr tal:repeat="agent agentlist" tal:attributes="class string:highlight${repeat/agent/odd}">
    	<td><label tal:attributes="for agent/name" tal:content="agent/name">unknown agent</label></td>
		<td style="height: 24px; width: 24px">
	    	<input type="checkbox" tal:attributes="checked agent/enabled;name agent/name;id agent/name"/>
		</td>
	</tr>
	</table>
	<br />
	<span class="button"><button type="reset" value="Reset">Reset</button></span> <span class="button"><button type="submit" value="Save">Save</button></span>
</form>
</div>

</p>

	<br />
%(include|footer.tpl)s
