Rev 5909 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div id="top-infopane">#set($messages = $action.getActionErrors())#if($messages && $messages.size() != 0)#foreach($message in $messages)$message <br/>#end#else<div id="action-messages">#set($messages = $action.getActionMessages())#if($messages && $messages.size() != 0)#foreach($message in $messages)$message <br />#end#end</div><br/><table id = "agent-mgmnt-options"><tr><td><a href = "#" id = "create-agent" class = "agent-option"> Create new Agent </a></td></tr><tr><td><a href = "#" id = "deactivate-agent" class = "agent-option"> Deactivate Agent </a></td></tr><tr><td><a href = "#" id = "change-password" class = "agent-option"> Change Password </a></td></tr><tr><td><a href = "#" id = "change-role" class = "agent-option"> Change Agent Role </a></td></tr></table><br/><br/><br/><div id = "agent-table" ><table id = "agents" class = "display"><thead><tr><th>Agent ID</th><th>Name</th><th>Email ID</th><th>Role</th><th>Open Ticket Count</th></tr></thead><tbody>#foreach($agent in $action.getAgents())#set( $id = $agent.getId())#set( $name = $agent.getName())#set( $emailId = $agent.getEmailId())#set( $roles = $action.getRoleForAgent($emailId))#set( $ticketCount = $action.getOpenTicketCount($id))<tr><td>$id</td><td>$name</td><td>$emailId</td><td>#foreach ($role in $roles)$role #end</td><td><a href="#" class = "agent-ticket-count" agentId = $emailId>$ticketCount</a></td></tr>#end</tbody></table></div></div><div id="create-agent-div" class="hidden"><h1>Create new Agent</h1><form id="create-agent-form" ><table><colgroup><col width="200px"/><col width="300px"/><col width="200px"/></colgroup><tr ><td>Agent Name: </td><td><input type="text" id = "new-agent-name" name="name"/></td><td id ="agent-name-error"> </td></tr><tr><td>Agent Email: </td><td><input type="text" id = "new-agent-id" name="emailId"/></td><td id ="agent-email-error"> </td></tr><tr><td>Role: </td><td><select id = "new-agent-role" name = "role" multiple = "multiple"><option value = "Agent">Agent</option><option value = "Outbound">Outbound</option><option value = "TeamLead">TeamLead</option></select></td></tr><tr><td>Password: </td><td><input type="password" id = "create-password1" name="password"/></td><td id ="agent-password1-error"> </td></tr><tr><td>ReEnter Password: </td><td><input type="password" id = "create-password2" name="password2"/></td><td id ="agent-password2-error"> </td></tr><tr><td>Manager Email: </td><td><select id = "manager-email-id" name = "managerEmailId">#foreach($agent in $action.getAgents())#set( $emailId = $agent.getEmailId())#set($id = $agent.getId())<option id = $id >$emailId</option>#end</select></td></tr><br/><tr><td colspan = "2" ><input type="submit" value = "Create Agent "id="create-agent"/></td></tr></table></form></div><div id = "deactivate-agent-div" class = "hidden" align = "center"><h1>Deactivate Agent</h1><select id = "deactivate-agent-email" name ="emailId" >#foreach($agent in $action.getAgents())#set( $emailId = $agent.getEmailId())#set($id = $agent.getId())#if($id != 1)<option id = $id>$emailId</option>#end#end</select><input type = "button" id = "deactivate-agent" value = "Deactivate" /></div><div id="change-password-div" class = "hidden" ><h1>Change Password</h1><form id = "change-password-form"><table ><colgroup><col width="200px"/><col width="300px"/></colgroup><tr><td>Select Agent : </td><td><select id = "agentEmail" name = "emailId">#foreach($agent in $action.getAgents())#set( $emailId = $agent.getEmailId())#set($id = $agent.getId())#if($id != 1)<option>$emailId</option>#end#end</select></td></tr><tr><td>Enter New Password : </td><td><input type="password" id = "change-password1" name="newPassword"/></td></tr><tr><td>ReEnter Password: </td><td><input type="password" id = "change-password2" name="password2"/></td></tr><tr><td colspan ="2"><input type ="button" id = "change-agent-password"value = "Change Password" /></td></tr></table></form></div><div id = "change-agent-role-div" class = "hidden" align = "center"><h1>Change Agent Role</h1><form id="change-agent-role-form" ><table><colgroup><col width="200px"/><col width="300px"/></colgroup><tr><td>Select Agent : </td><td><select id = "deactivate-agent-email" name ="id" >#foreach($agent in $action.getAgents())#set( $emailId = $agent.getEmailId())#set($id = $agent.getId())#if($id != 1)<option id = $id value = $id>$emailId</option>#end#end</select></td><tr><td>Choose Role(s) : </td><td><select id = "changed-role" name = "role" multiple = "multiple"><option value = "Agent">Agent</option><option value = "Outbound">Outbound</option><option value = "TeamLead">TeamLead</option></select></td></tr></table><br /><br /><input type = "submit" id = "change-agent-role" value = "Change Role" /></form><h4 >Note : All previous roles will be overwritten by new roles</h5></div><div id="bottom-infopane"></div>#end