Subversion Repositories SmartDukaan

Rev

Rev 5168 | Rev 7162 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4793 amar.kumar 1
 
2
<div id="top-infopane">
3
#set($messages = $action.getActionErrors())
4
 
5
#if($messages && $messages.size() != 0)
6
    #foreach($message in $messages)
7
        $message <br/>
8
    #end
9
#else
10
<div id="action-messages">
11
#set($messages = $action.getActionMessages())
12
#if($messages && $messages.size() != 0)
13
    #foreach($message in $messages)
14
        $message <br />
15
    #end
16
#end
17
</div>
18
<br/>
19
<table id = "agent-mgmnt-options">
20
	<tr>
21
		<td><a href = "#" id = "create-agent" class = "agent-option"> Create new Agent </a></td>
22
	</tr>
23
	<tr>
24
		<td><a href = "#" id = "deactivate-agent" class = "agent-option"> Deactivate Agent </a></td>
25
	</tr>
26
	<tr>
27
		<td><a href = "#" id = "change-password" class = "agent-option"> Change Password </a></td>
28
	</tr>
5168 amar.kumar 29
	<tr>
30
		<td><a href = "#" id = "change-role" class = "agent-option"> Change Agent Role </a></td>
31
	</tr>
5909 amar.kumar 32
</table>
4793 amar.kumar 33
 
34
<br/><br/><br/>
35
<div id = "agent-table" >
36
	<table id = "agents" class = "display">
37
		<thead>
38
			<tr>
39
				<th>Agent ID</th>
40
				<th>Name</th>
41
				<th>Email ID</th>
5168 amar.kumar 42
				<th>Open Ticket Count</th>
4793 amar.kumar 43
			</tr>
44
		</thead>
45
		<tbody>
46
			#foreach($agent in $action.getAgents())
47
				#set( $id = $agent.getId())
48
				#set( $name = $agent.getName())
49
				#set( $emailId = $agent.getEmailId())
5168 amar.kumar 50
				#set( $ticketCount = $action.getOpenTicketCount($id))
4793 amar.kumar 51
				<tr>
52
					<td>$id</td>
53
					<td>$name</td>
54
					<td>$emailId</td>
5168 amar.kumar 55
                    <td><a href="#" class = "agent-ticket-count" agentId = $emailId>$ticketCount</a></td>
4793 amar.kumar 56
				</tr>
57
			#end
58
		</tbody>
59
	</table>
60
</div>
61
</div>
62
 
63
<div id="create-agent-div" class="hidden">
64
    <h1>Create new Agent</h1>
65
    <form id="create-agent-form" >
66
        <table>
67
 
68
			<colgroup>
69
                <col width="200px"/>
70
                <col width="300px"/>
71
				<col width="200px"/>
72
            </colgroup>
73
 
74
			<tr >
75
                <td>Agent Name: </td>
76
                <td><input type="text" id = "new-agent-name" name="name"/></td>
77
				<td id ="agent-name-error">&nbsp;</td>
78
            </tr>
79
			<tr>
80
				<td>Agent Email: </td>
81
				<td><input type="text" id = "new-agent-id" name="emailId"/></td>
82
				<td id ="agent-email-error">&nbsp;</td>
83
			</tr>
84
			<tr>
85
				<td>Role: </td>
86
				<td>
87
					<select id = "new-agent-role" name = "role" multiple = "multiple">
88
						<option value = "Agent">Agent</option>
89
						<option value = "Outbound">Outbound</option>
90
						<option value = "TeamLead">TeamLead</option>
91
					</select>
92
				</td>
93
			</tr>
94
			<tr>
95
					<td>Password: </td>
96
					<td><input type="password" id = "create-password1" name="password"/></td>
97
					<td id ="agent-password1-error">&nbsp;</td>
98
			</tr>
99
			<tr>
100
					<td>ReEnter Password: </td>
101
					<td><input type="password" id = "create-password2" name="password2"/></td>
102
					<td id ="agent-password2-error">&nbsp;</td>
103
			</tr>
104
			<tr>
105
				<td>Manager Email: </td>
106
				<td>
107
					<select id = "manager-email-id" name = "managerEmailId">
108
					#foreach($agent in $action.getAgents())
109
						#set( $emailId = $agent.getEmailId())
110
						#set($id = $agent.getId())
111
						<option id = $id >$emailId</option>
112
					#end
113
					</select>
114
				</td>
115
			</tr>
116
			<br/>
117
 
118
			<tr> 
119
				<td colspan = "2" ><input type="submit" value = "Create Agent "id="create-agent"/></td> 
120
            </tr>
121
 
122
		</table>
123
    </form>
124
</div>
125
 
126
 
127
<div id = "deactivate-agent-div" class = "hidden" align = "center">
128
	<h1>Deactivate Agent</h1>
129
	<select id = "deactivate-agent-email" name ="emailId" >
130
		#foreach($agent in $action.getAgents())
131
			#set( $emailId = $agent.getEmailId())
132
			#set($id = $agent.getId())
133
			#if($id != 1)
134
				<option id = $id>$emailId</option>
135
			#end
136
		#end
137
	</select>
138
	<input type = "button" id = "deactivate-agent" value = "Deactivate" />
139
</div>
140
 
141
<div id="change-password-div" class = "hidden" >
142
	<h1>Change Password</h1>
143
	<form id = "change-password-form">
144
		<table >
145
			<colgroup>
146
                <col width="200px"/>
147
                <col width="300px"/>
148
            </colgroup>
149
 
150
			<tr>
151
				<td>Select Agent : </td>
152
				<td>
153
					<select id = "agentEmail" name = "emailId">
154
					#foreach($agent in $action.getAgents())
155
						#set( $emailId = $agent.getEmailId())
156
						#set($id = $agent.getId())
157
						#if($id != 1)
158
							<option>$emailId</option>
159
						#end
160
					#end
161
					</select>
162
				</td>
163
            </tr>
164
			<tr>
165
				<td>Enter New Password : </td>
166
				<td><input type="password" id = "change-password1" name="newPassword"/></td>
167
			</tr>
168
			<tr>
169
				<td>ReEnter Password: </td>
170
				<td><input type="password" id = "change-password2" name="password2"/></td>
171
			</tr>
172
			<tr>
173
				<td colspan ="2"><input type ="button" id = "change-agent-password"value = "Change Password" /></td>
174
			</tr>
175
		</table>
176
	</form>
177
</div>
178
 
5168 amar.kumar 179
<div id = "change-agent-role-div" class = "hidden" align = "center">
180
	<h1>Change Agent Role</h1>
181
	<form id="change-agent-role-form" >
182
        <table>
183
			<colgroup>
184
                <col width="200px"/>
185
                <col width="300px"/>
186
            </colgroup>
187
			<tr>
188
                <td>Select Agent : </td>
189
				<td>
190
					<select id = "deactivate-agent-email" name ="id" >
191
            		#foreach($agent in $action.getAgents())
192
            			#set( $emailId = $agent.getEmailId())
193
            			#set($id = $agent.getId())
194
            			#if($id != 1)
195
            				<option id = $id value = $id>$emailId</option>
196
            			#end
197
            		#end
198
					</select>
199
				</td>
200
			<tr>
201
				<td>Choose Role(s) : </td>
202
				<td>
203
					<select id = "changed-role" name = "role" multiple = "multiple">
204
						<option value = "Agent">Agent</option>
205
						<option value = "Outbound">Outbound</option>
206
						<option value = "TeamLead">TeamLead</option>
207
					</select>
208
				</td>
209
			</tr>
210
		</table>
211
		<br />
212
		<br />
213
		<input type = "submit" id = "change-agent-role" value = "Change Role" />
214
	</form>
215
	<h4 >Note : All previous roles will be overwritten by new roles</h5>
216
</div>
217
 
218
 
4793 amar.kumar 219
<div id="bottom-infopane">
220
</div>
221
#end