<div class="col-md-12" ng-controller="EmployeeController">
    <ul class="breadcrumb">
        <li><a href="#/organization">{{'label.anchor.organization' | translate}}</a></li>
        <li class="active">{{'label.anchor.manageemployees' | translate}}&nbsp;&nbsp;{{employee.lastname}}</li>
    </ul>

    <input ng-autofocus="true" ng-model="filterText" type="text" ng-keyup="onFilter()" class="form-control" placeholder="{{'label.input.filterbyname' | translate}}">
    <a href="#/createemployee" class="btn btn-primary pull-right" has-permission='CREATE_STAFF'><i class="icon-plus icon-white"></i>{{'label.button.createemployee' | translate }}</a>

    <table class="table">
        <thead>
        <tr class="graybg">
            <th>{{ 'label.heading.name' | translate }}</th>
            <th>{{ 'label.heading.isLoanOfficer' | translate }}</th>
            <th>{{ 'label.heading.office' | translate }}</th>
            <th>{{ 'label.active' | translate }}</th>
        </tr>
        </thead>
        <tbody>
        <tr class="pointer-main" ng-repeat="employee in employees | filter:filterText">
            <td class="pointer" data-ng-click="routeTo(employee.id)">{{employee.displayName}}</td>
            <td class="pointer" data-ng-click="routeTo(employee.id)">{{employee.isLoanOfficer}}</td>
            <td class="pointer" data-ng-click="routeTo(employee.id)">{{employee.officeName}}</td>
            <td class="pointer" data-ng-click="routeTo(employee.id)">{{employee.isActive}}</td>
        </tr>
        </tbody>
    </table>
</div>