Subversion Repositories SmartDukaan

Rev

Rev 29211 | Blame | Compare with Previous | Last modification | View Log | RSS feed

                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                            <th>Employee Code</th>
                                                <th>First Name</th>
                                                <th>Last Name</th>
                                                <th>Email</th>
                                                <th>Mobile Number</th>
                                                <th>Gmail Id</th>
                                                <th>Image</th>
                                                <th>Auth Users</th>
                                                <th>Created Date</th>
                                                <th>Reset Password</th>
                                                <th>Remove</th>
                                        </tr>
                                        #if(!$authUsers.isEmpty())
                                                #foreach( $authUser in $authUsers )
                                                        <tr class="authUser-details" data="$authUser.getId()">
                                                            <td>$authUser.getEmployeeCode()</td>
                                                                <td>$authUser.getFirstName()</td>
                                                                <td>$authUser.getLastName()</td>
                                                                <td>$authUser.getEmailId()</td>
                                                                <td>$authUser.getMobileNumber()</td>
                                                                <td>#if($authUser.getGmailId())
                                                                                <span>$authUser.getGmailId()</span>
                                                                                <button class="mk_gmail_edit btn btn-primary" data-id="$authUser.getEmailId()">Edit</button> 
                                                                        #else
                                                                                <span></span>
                                                                                <button class="mk_gmail_edit btn btn-primary" data-id="$authUser.getEmailId()">Add</button> 
                                                                        #end
                                                                </td>
                                                                <td>

                                                                              #if($authUser.getImageUrl())
                                                                              <span> $authUser.getImageUrl() </span>
                                                                                <button class="img_edit btn btn-primary" data-id="$authUser.getEmailId()">Edit</button>
                                                                                #else
                                                                                <span></span>
                                                                                <button class="img_edit btn btn-primary" data-id="$authUser.getEmailId()">Edit</button>
                                                                                #end

                                                                           </td>



                                                                #if($authUser.getManagerId() != 0)
                                                                <td>
                                                                <select  class="form-control input-sm" id = "auth-users" name = "auth-users" placeholder="Authusers">
                                                           <option value="$userManagerMap.get($authUser.getId()).getId()" selected>$userManagerMap.get($authUser.getId()).getFullName()</option>

                                                    #foreach($activeAuthUser in $activeAuthUsers)
                                                        <option value="$activeAuthUser.getId()">$activeAuthUser.getFullName()</option>
                                                #end
                                         </select>
                                         <button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add</button> 
                                                                </td>
                                                                
                                                                #else
                                                                
                                                                <td>
                                         <select  class="form-control input-sm" id = "auth-users" name = "auth-users" placeholder="Authusers">
                                                          <option value="" disabled selected>AuthUsers</option>
                                                    #foreach($activeAuthUser in $activeAuthUsers)
                                                        <option value="$activeAuthUser.getId()">$activeAuthUser.getFullName()</option>
                                                #end
                                         </select>
                                         <button class="btn btn-primary add-manager" data-id="$authUser.getId()">Add</button> 
                                       </td>
                                     
                                     #end
                                                                <td>$authUser.getFormattedCreateTimestamp()</td>
                                                                <td><button class="btn btn-primary reset-password" data-id="$authUser.getEmailId()">Reset</button></td>
                                                                <td><button class="btn btn-primary remove-user" data-id="$authUser.getId()">Remove</button></td>
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>