Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

#set($searchResult = $action.getSearchResults())
#if($action.getCustomH3())
        <h2>$action.getCustomH3()</h2>
#end
<style>
        td {
                text-align:center;
        }
        th {
                text-align:center;
        }
</style>
<div class="table-responsive">          
  <table class="table">
    <thead>
      <tr>
        <th>Associate Id</th>
        <th>Name</th>
        <th>Phone</th>
        <th>EmailId</th>
        <th>Code</th>
        <th>Level</th>
                <th>Activated</th>
                <th>Add L3</th>
      </tr>
    </thead>
    <tbody>
        #if($searchResult.size() > 0)
                #foreach($result in $searchResult)
          <tr>
            <td class="edit-user" userId="$result.getId()"><a href="javascript:void(0)" >$result.getId()</a></td>
            <td>$result.getName()</td>
                <td>$result.getPhone()</td>
            <td>$result.getEmailId()</td>
            <td>$result.getCode()</td>
            <td>$result.getLevel()</td>
                #if($result.isActivated())
                        <td><span class="glyphicon glyphicon-ok"></span></td>
                #else
                        <td><span class="glyphicon glyphicon-remove"></span></td>
                        #end
                        #if($result.getLevel() == 'L2' && $result.isActivated())
                                <td class="add-l3-user" referrerEmail="$result.getEmailId()"><a href="javascript:void(0)" >Add L3 User</a></td>
                        #else
                                <td></td>
                        #end
          </tr>
                #end
        #else
                <tr><td colspan="7" style="text-align:center;font-weight:bold;">No Data Found</td></tr>
        #end
    </tbody>
  </table>
</div>