Subversion Repositories SmartDukaan

Rev

Rev 32779 | Rev 33066 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32779 Rev 33065
Line 34... Line 34...
34
                 <input placeholder="Image" id="authUserImage" name="authUserImage" type="text" value="" class="form-control input-sm">
34
                 <input placeholder="Image" id="authUserImage" name="authUserImage" type="text" value="" class="form-control input-sm">
35
                 </div>
35
                 </div>
36
				</div>
36
				</div>
37
				<div class = "row">
37
				<div class = "row">
38
					<div class="col-lg-3">
38
					<div class="col-lg-3">
39
						<input class="btn btn-primary create-auth-user" type="button" value="Create Auth User">	
39
						<input class="btn btn-primary create-auth-user" type="button" value="Create Auth User">
40
					</div>
40
					</div>
41
				</div>
41
				</div>
42
	</form><br><br>
42
	</form><br><br>
43
	<div id="auth-user-table">
43
	<div id="auth-user-table">
44
		<div class="row">
44
		<div class="row">
45
	    	<div class="col-lg-12">
45
	    	<div class="col-lg-12">
46
	    		<table class="table table-striped table-advance table-hover">
46
	    		<table class="table table-striped table-advance table-hover" id="authTable">
47
	    			<tbody>
47
	    		<thead>
48
	    				<tr>
48
	    		    <tr>
49
	    				    <th>Employee Code</th>
49
                        <th>Employee Code</th>
50
	    					<th>First Name</th>
50
                        <th>First Name</th>
51
	    					<th>Last Name</th>
51
                        <th>Last Name</th>
52
	    					<th>Email</th>
52
                        <th>Email</th>
53
	    					<th>Mobile Number</th>
53
                        <th>Mobile Number</th>
54
	    					<th>Gmail Id</th>
54
                        <th>Gmail Id</th>
55
	    					<th>Image</th>
55
                        <th>Image</th>
56
	    					<th>Auth Users</th>
56
                        <th>Auth Users</th>
57
	    					<th>Created Date</th>
57
                        <th>Created Date</th>
58
	    					<th>Reset Password</th>
58
                        <th>Reset Password</th>
59
	    					<th>Remove</th>
59
                        <th>Remove</th>
-
 
60
 
60
 
61
 
-
 
62
                    </tr>
-
 
63
	    		</thead>
-
 
64
	    			<tbody>
61
 
65
 
62
	    				</tr>
-
 
63
	    				#if(!$authUsers.isEmpty())
66
	    				#if(!$authUsers.isEmpty())
64
			    			#foreach( $authUser in $authUsers )
67
			    			#foreach( $authUser in $authUsers )
65
			    				<tr>
68
			    				<tr>
66
			    				   <td>$authUser.getEmployeeCode()</td>
69
			    				   <td>$authUser.getEmployeeCode()</td>
67
			    					<td>$authUser.getFirstName()</td>
70
			    					<td>$authUser.getFirstName()</td>
Line 148... Line 151...
148
	    </div>
151
	    </div>
149
    #end
152
    #end
150
</section>
153
</section>
151
<div id="auth-user-details-container" style="background:white;background-color:white;">
154
<div id="auth-user-details-container" style="background:white;background-color:white;">
152
</div>
155
</div>
-
 
156
<script type="text/javascript">
-
 
157
$(document).ready(function() {
-
 
158
 
-
 
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+'" />' );
-
 
163
 
-
 
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
        });
-
 
173
    var table = $('#authTable').DataTable( {
-
 
174
    	retrieve: true,
-
 
175
        orderCellsTop: true,
-
 
176
        fixedHeader: true
-
 
177
    });
-
 
178
});
-
 
179
 
-
 
180
</script>
153
 
181
 
154
 
182
 
155
 
183
 
156
 
184
 
157
 
185