<div class="col-md-12" ng-controller="UserListController">
    <ul class="breadcrumb">
        <li class="active">{{'label.anchor.users' | translate}}</li>
    </ul>

    <input ng-model="filterText" type="text" ng-keyup="onFilter()" class="span marginbottom0px form-control" placeholder="{{'label.input.filterbyname' | translate}}">
    <a href="#/createuser" class="btn btn-primary pull-right" has-permission='CREATE_USER'><i class="icon-plus icon-white"></i>{{'label.button.createuser' | translate}}</a>
    <table class="table">
        <thead>
        <tr class="graybg">
            <th>{{'label.heading.firstname' | translate}}</th>
            <th>{{'label.heading.lastname' | translate}}</th>
            <th>{{'label.heading.email' | translate}}</th>
            <th>{{'label.heading.office' | translate}}</th>
        </tr>
        </thead>
        <tbody>
        <tr class="pointer-main" ng-repeat="user in users| orderBy:'firstname':reverse | filter:filterText">
            <td class="pointer" data-ng-click="routeTo(user.id)">{{user.firstname}}</td>
            <td class="pointer" data-ng-click="routeTo(user.id)">{{user.lastname}}</td>
            <td class="pointer" data-ng-click="routeTo(user.id)">{{user.email}}</td>
            <td class="pointer" data-ng-click="routeTo(user.id)">{{user.officeName}}</td>
        </tr>
        </tbody>
    </table>
</div>