| 29209 |
manish |
1 |
|
| 24383 |
amit.gupta |
2 |
<section class="wrapper">
|
|
|
3 |
<div class="row">
|
|
|
4 |
<div class="col-lg-12">
|
|
|
5 |
<h3 class="page-header"><i class="icon_document_alt"></i>USER</h3>
|
|
|
6 |
<ol class="breadcrumb">
|
|
|
7 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
8 |
<li><i class="icon_document_alt"></i>Create Auth User</li>
|
|
|
9 |
</ol>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
|
|
12 |
<form id="create-scheme-form">
|
|
|
13 |
<div class = "row">
|
| 27595 |
tejbeer |
14 |
|
| 24478 |
amit.gupta |
15 |
<div class="col-lg-2 form-group">
|
| 27595 |
tejbeer |
16 |
<input placeholder="Employee Code" id="authUserEmployeeCode" name="authUserEmployeeCode" type="text" value="" class="form-control input-sm">
|
|
|
17 |
</div>
|
|
|
18 |
<div class="col-lg-2 form-group">
|
| 24383 |
amit.gupta |
19 |
<input placeholder="First Name" id="authUserFirstName" name="authUserFirstName" type="text" value="" class="form-control input-sm">
|
|
|
20 |
</div>
|
| 24478 |
amit.gupta |
21 |
<div class="col-lg-2 form-group">
|
| 24383 |
amit.gupta |
22 |
<input placeholder="Last Name" id="authUserLastName" name="authUserLastName" type="text" value="" class="form-control input-sm">
|
|
|
23 |
</div>
|
| 24478 |
amit.gupta |
24 |
<div class="col-lg-2 form-group">
|
| 24383 |
amit.gupta |
25 |
<input placeholder="Email" id="authUserEmail" name="authUserEmail" type="email" value="" class="form-control input-sm">
|
|
|
26 |
</div>
|
| 24478 |
amit.gupta |
27 |
<div class="col-lg-2 form-group">
|
| 24383 |
amit.gupta |
28 |
<input placeholder="Mobile Number" id="authUserMobileNumber" name="authUserMobileNumber" type="Number" value="" class="form-control input-sm" pattern="\d{3}[\-]\d{3}[\-]\d{4}" required>
|
|
|
29 |
</div>
|
| 24478 |
amit.gupta |
30 |
<div class="col-lg-2 form-group">
|
|
|
31 |
<input placeholder="Gmail Id" id="authUserGmailId" name="authUserGmailId" type="text" value="" class="form-control input-sm" required>
|
|
|
32 |
</div>
|
| 32463 |
jai.hind |
33 |
<div class="col-lg-2 form-group">
|
|
|
34 |
<input placeholder="Image" id="authUserImage" name="authUserImage" type="text" value="" class="form-control input-sm">
|
|
|
35 |
</div>
|
| 24383 |
amit.gupta |
36 |
</div>
|
|
|
37 |
<div class = "row">
|
|
|
38 |
<div class="col-lg-3">
|
| 33065 |
raveendra. |
39 |
<input class="btn btn-primary create-auth-user" type="button" value="Create Auth User">
|
| 24383 |
amit.gupta |
40 |
</div>
|
|
|
41 |
</div>
|
|
|
42 |
</form><br><br>
|
|
|
43 |
<div id="auth-user-table">
|
|
|
44 |
<div class="row">
|
|
|
45 |
<div class="col-lg-12">
|
| 33065 |
raveendra. |
46 |
<table class="table table-striped table-advance table-hover" id="authTable">
|
|
|
47 |
<thead>
|
|
|
48 |
<tr>
|
|
|
49 |
<th>Employee Code</th>
|
|
|
50 |
<th>First Name</th>
|
|
|
51 |
<th>Last Name</th>
|
|
|
52 |
<th>Email</th>
|
|
|
53 |
<th>Mobile Number</th>
|
|
|
54 |
<th>Gmail Id</th>
|
|
|
55 |
<th>Image</th>
|
|
|
56 |
<th>Auth Users</th>
|
|
|
57 |
<th>Created Date</th>
|
|
|
58 |
<th>Reset Password</th>
|
|
|
59 |
<th>Remove</th>
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
</tr>
|
|
|
63 |
</thead>
|
| 24383 |
amit.gupta |
64 |
<tbody>
|
| 32463 |
jai.hind |
65 |
|
| 24383 |
amit.gupta |
66 |
#if(!$authUsers.isEmpty())
|
|
|
67 |
#foreach( $authUser in $authUsers )
|
|
|
68 |
<tr>
|
| 27595 |
tejbeer |
69 |
<td>$authUser.getEmployeeCode()</td>
|
| 24383 |
amit.gupta |
70 |
<td>$authUser.getFirstName()</td>
|
|
|
71 |
<td>$authUser.getLastName()</td>
|
|
|
72 |
<td>$authUser.getEmailId()</td>
|
|
|
73 |
<td>$authUser.getMobileNumber()</td>
|
| 24478 |
amit.gupta |
74 |
<td>#if($authUser.getGmailId())
|
|
|
75 |
<span>$authUser.getGmailId()</span>
|
| 32779 |
shampa |
76 |
<button class="mk_gmail_edit btn btn-primary" data-id="$authUser.getEmailId()">Update</button>
|
| 24478 |
amit.gupta |
77 |
#else
|
|
|
78 |
<span></span>
|
| 24483 |
amit.gupta |
79 |
<button class="mk_gmail_edit btn btn-primary" data-id="$authUser.getEmailId()">Add</button>
|
| 24478 |
amit.gupta |
80 |
#end
|
|
|
81 |
</td>
|
| 32463 |
jai.hind |
82 |
|
|
|
83 |
<td>
|
|
|
84 |
|
|
|
85 |
#if($authUser.getImageUrl())
|
|
|
86 |
<span> $authUser.getImageUrl() </span>
|
|
|
87 |
<button class="img_edit btn btn-primary" data-id="$authUser.getEmailId()">Edit</button>
|
|
|
88 |
#else
|
|
|
89 |
<span></span>
|
|
|
90 |
<button class="img_edit btn btn-primary" data-id="$authUser.getEmailId()">Edit</button>
|
|
|
91 |
#end
|
|
|
92 |
|
|
|
93 |
</td>
|
|
|
94 |
|
| 29209 |
manish |
95 |
#if($authUser.getManagerId() != 0)
|
|
|
96 |
<td>
|
|
|
97 |
<select class="form-control input-sm" id = "auth-users" name = "auth-users" placeholder="Authusers">
|
| 29210 |
manish |
98 |
<option value="$userManagerMap.get($authUser.getId()).getId()" selected>$userManagerMap.get($authUser.getId()).getFullName()</option>
|
| 29209 |
manish |
99 |
#foreach($activeAuthUser in $activeAuthUsers)
|
|
|
100 |
<option value="$activeAuthUser.getId()">$activeAuthUser.getFullName()</option>
|
|
|
101 |
#end
|
|
|
102 |
</select>
|
|
|
103 |
<button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add</button>
|
|
|
104 |
</td>
|
|
|
105 |
|
|
|
106 |
#else
|
|
|
107 |
<td>
|
|
|
108 |
<select class="form-control input-sm" id = "auth-users" name = "auth-users" placeholder="Authusers">
|
|
|
109 |
<option value="" disabled selected>AuthUsers</option>
|
|
|
110 |
#foreach($activeAuthUser in $activeAuthUsers)
|
|
|
111 |
<option value="$activeAuthUser.getId()">$activeAuthUser.getFullName()</option>
|
|
|
112 |
#end
|
|
|
113 |
</select>
|
|
|
114 |
<button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add</button>
|
|
|
115 |
</td>
|
|
|
116 |
#end
|
|
|
117 |
|
| 24383 |
amit.gupta |
118 |
<td>$authUser.getFormattedCreateTimestamp()</td>
|
|
|
119 |
<td><button class="btn btn-primary reset-password" data-id="$authUser.getEmailId()">Reset</button></td>
|
| 25570 |
tejbeer |
120 |
<td><button class="btn btn-primary remove-user" data-id="$authUser.getId()">Remove</button></td>
|
| 32463 |
jai.hind |
121 |
|
| 24383 |
amit.gupta |
122 |
</tr>
|
|
|
123 |
#end
|
|
|
124 |
#else
|
|
|
125 |
<tr>
|
|
|
126 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
127 |
</tr>
|
|
|
128 |
#end
|
|
|
129 |
</tbody>
|
|
|
130 |
</table>
|
|
|
131 |
</div>
|
|
|
132 |
</div>
|
|
|
133 |
</div>
|
| 33066 |
raveendra. |
134 |
<!--#if(!$authUsers.isEmpty())
|
| 24383 |
amit.gupta |
135 |
<div class="row" id="authUsers-paginated">
|
|
|
136 |
<div class="col-lg-9">
|
|
|
137 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
138 |
</div>
|
|
|
139 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
140 |
<div class="btn-group" style="width:40%">
|
|
|
141 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
142 |
</div>
|
|
|
143 |
<div class="btn-group" style="width:40%">
|
|
|
144 |
#if($end >= $size)
|
|
|
145 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
146 |
#else
|
|
|
147 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
148 |
#end
|
|
|
149 |
</div>
|
|
|
150 |
</div>
|
|
|
151 |
</div>
|
| 33066 |
raveendra. |
152 |
#end -->
|
| 24383 |
amit.gupta |
153 |
</section>
|
|
|
154 |
<div id="auth-user-details-container" style="background:white;background-color:white;">
|
|
|
155 |
</div>
|
| 33065 |
raveendra. |
156 |
<script type="text/javascript">
|
|
|
157 |
$(document).ready(function() {
|
| 29209 |
manish |
158 |
|
| 33065 |
raveendra. |
159 |
$('#authTable thead tr').clone(true).appendTo( '#authTable thead' );
|
|
|
160 |
$('#authTable thead tr:eq(1) th').each( function (i) {
|
|
|
161 |
var title = $(this).text();
|
|
|
162 |
$(this).html( '<input type="text" style = "width:60%;" placeholder="Search '+title+'" />' );
|
| 29209 |
manish |
163 |
|
| 33065 |
raveendra. |
164 |
$( 'input', this ).on( 'keyup change', function () {
|
|
|
165 |
if ( table.column(i).search() !== this.value ) {
|
|
|
166 |
table
|
|
|
167 |
.column(i)
|
|
|
168 |
.search( this.value )
|
|
|
169 |
.draw();
|
|
|
170 |
}
|
|
|
171 |
} );
|
|
|
172 |
});
|
| 33066 |
raveendra. |
173 |
$(document).ready(function() {
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
var dtable = $('#authTable').DataTable({
|
|
|
177 |
|
|
|
178 |
pageLength: 10,
|
|
|
179 |
paging:true,
|
|
|
180 |
scrollCollapse: true,
|
|
|
181 |
fixedHeader: true,
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
});
|
|
|
185 |
|
|
|
186 |
});
|
| 33065 |
raveendra. |
187 |
});
|
| 29209 |
manish |
188 |
|
| 33065 |
raveendra. |
189 |
</script>
|
| 29209 |
manish |
190 |
|
|
|
191 |
|
|
|
192 |
|
| 33065 |
raveendra. |
193 |
|
|
|
194 |
|
|
|
195 |
|
| 24383 |
amit.gupta |
196 |
|