Subversion Repositories SmartDukaan

Rev

Rev 5168 | Go to most recent revision | Details | 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>
29
</table
30
 
31
<br/><br/><br/>
32
<div id = "agent-table" >
33
	<table id = "agents" class = "display">
34
		<thead>
35
			<tr>
36
				<th>Agent ID</th>
37
				<th>Name</th>
38
				<th>Email ID</th>
39
				<th>Manager ID</th>
40
			</tr>
41
		</thead>
42
		<tbody>
43
			#foreach($agent in $action.getAgents())
44
				#set( $id = $agent.getId())
45
				#set( $name = $agent.getName())
46
				#set( $emailId = $agent.getEmailId())
47
				#set( $managerId = $agent.getManagerId())
48
				<tr>
49
					<td>$id</td>
50
					<td>$name</td>
51
					<td>$emailId</td>
52
					<td>$managerId</td>
53
				</tr>
54
			#end
55
		</tbody>
56
	</table>
57
</div>
58
</div>
59
 
60
<div id="create-agent-div" class="hidden">
61
    <h1>Create new Agent</h1>
62
    <form id="create-agent-form" >
63
        <table>
64
 
65
			<colgroup>
66
                <col width="200px"/>
67
                <col width="300px"/>
68
				<col width="200px"/>
69
            </colgroup>
70
 
71
			<tr >
72
                <td>Agent Name: </td>
73
                <td><input type="text" id = "new-agent-name" name="name"/></td>
74
				<td id ="agent-name-error">&nbsp;</td>
75
            </tr>
76
			<tr>
77
				<td>Agent Email: </td>
78
				<td><input type="text" id = "new-agent-id" name="emailId"/></td>
79
				<td id ="agent-email-error">&nbsp;</td>
80
			</tr>
81
			<tr>
82
				<td>Role: </td>
83
				<td>
84
					<select id = "new-agent-role" name = "role" multiple = "multiple">
85
						<option value = "Agent">Agent</option>
86
						<option value = "Outbound">Outbound</option>
87
						<option value = "TeamLead">TeamLead</option>
88
					</select>
89
				</td>
90
			</tr>
91
			<tr>
92
					<td>Password: </td>
93
					<td><input type="password" id = "create-password1" name="password"/></td>
94
					<td id ="agent-password1-error">&nbsp;</td>
95
			</tr>
96
			<tr>
97
					<td>ReEnter Password: </td>
98
					<td><input type="password" id = "create-password2" name="password2"/></td>
99
					<td id ="agent-password2-error">&nbsp;</td>
100
			</tr>
101
			<tr>
102
				<td>Manager Email: </td>
103
				<td>
104
					<select id = "manager-email-id" name = "managerEmailId">
105
					#foreach($agent in $action.getAgents())
106
						#set( $emailId = $agent.getEmailId())
107
						#set($id = $agent.getId())
108
						<option id = $id >$emailId</option>
109
					#end
110
					</select>
111
				</td>
112
			</tr>
113
			<br/>
114
 
115
			<tr> 
116
				<td colspan = "2" ><input type="submit" value = "Create Agent "id="create-agent"/></td> 
117
            </tr>
118
 
119
		</table>
120
    </form>
121
</div>
122
 
123
 
124
<div id = "deactivate-agent-div" class = "hidden" align = "center">
125
	<h1>Deactivate Agent</h1>
126
	<select id = "deactivate-agent-email" name ="emailId" >
127
		#foreach($agent in $action.getAgents())
128
			#set( $emailId = $agent.getEmailId())
129
			#set($id = $agent.getId())
130
			#if($id != 1)
131
				<option id = $id>$emailId</option>
132
			#end
133
		#end
134
	</select>
135
	<input type = "button" id = "deactivate-agent" value = "Deactivate" />
136
</div>
137
 
138
<div id="change-password-div" class = "hidden" >
139
	<h1>Change Password</h1>
140
	<form id = "change-password-form">
141
		<table >
142
			<colgroup>
143
                <col width="200px"/>
144
                <col width="300px"/>
145
            </colgroup>
146
 
147
			<tr>
148
				<td>Select Agent : </td>
149
				<td>
150
					<select id = "agentEmail" name = "emailId">
151
					#foreach($agent in $action.getAgents())
152
						#set( $emailId = $agent.getEmailId())
153
						#set($id = $agent.getId())
154
						#if($id != 1)
155
							<option>$emailId</option>
156
						#end
157
					#end
158
					</select>
159
				</td>
160
            </tr>
161
			<tr>
162
				<td>Enter New Password : </td>
163
				<td><input type="password" id = "change-password1" name="newPassword"/></td>
164
			</tr>
165
			<tr>
166
				<td>ReEnter Password: </td>
167
				<td><input type="password" id = "change-password2" name="password2"/></td>
168
			</tr>
169
			<tr>
170
				<td colspan ="2"><input type ="button" id = "change-agent-password"value = "Change Password" /></td>
171
			</tr>
172
		</table>
173
	</form>
174
</div>
175
 
176
<div id="bottom-infopane">
177
</div>
178
#end