%(include|header.tpl)s

<div class="breadcrumb"><p><a href="%(url|/)sagents">Agents</a> &#187 <a href="#" tal:content="hname">Agent</a></p></div>

<h1 tal:content="hname">Agent</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>

<p tal:condition="description" tal:contect="description"></p>

<form method="post">
<table cellpadding="1">

<tr tal:repeat="setting settinglist">
    <td style="padding-right: 16px;"><label tal:attributes="for setting/id" tal:content="setting/name"></label></td>
    <td tal:condition="setting/textentry">
        <input type="text" tal:attributes="name setting/id;id setting/id;value setting/value" /> <span tal:content="setting/suffix"></span>
    </td>
    
    <td tal:condition="setting/numericentry">
        <input type="text" style="width: 45px;" tal:attributes="name setting/id;id setting/id;value setting/value" /> <span tal:content="setting/suffix"></span>
    </td>
    
    <td tal:condition="setting/boolentry">
        <input type="checkbox" tal:attributes="name setting/id;id setting/id;checked setting/checked" /> <span tal:content="setting/suffix"></span>
    </td>
 
    <td tal:condition="setting/selectentry">
        <div style="width: 325px; visibility: none">
            <div style="width: 25px; float: right;">
                <a tal:attributes="href setting/jsadd" style="float: right;"><img src="/img/list-add.png" width="16" height="16" border="0" alt="Add" /></a><br />
                <a tal:attributes="href setting/jsrm;id setting/jsid" style="float: right;"><img src="/img/list-remove.png" width="16" height="16" border="0" alt="Remove" /></a>
            </div>
        
            <select tal:attributes="id setting/selectorid" style="width: 300px; border: 1px solid #888a85; background-color: #fff;" size="5">
                <option tal:repeat="op setting/value" tal:content="op"></option>
            </select>
        </div>
        <div tal:attributes="id setting/revertbox">
            	<input type="text" tal:attributes="name setting/id;id setting/id;value setting/strvalue" />
            	<p>Please enter values into the above textbox, seperated by a comma.</p>
        </div>
        
        <script type="text/javascript" tal:content="setting/revertjs">
        </script>
    </td>
    
    <input type="hidden" tal:condition="setting/hidden" tal:attributes="name setting/id;id setting/id;value setting/value" />
</tr>
</table>
<br />
<br />
<span class="button"><button type="reset" value="Reset">Reset</button></span> <span class="button"><button type="submit" value="Save">Save</button></span>
</form>
</p>
%(include|footer.tpl)s
