<div class="col-md-12" ng-controller="FloatingRatesController">
    <ul class="breadcrumb">
        <li><a href="#/products">{{'label.anchor.products' | translate}}</a></li>
        <li class="active">{{'label.anchor.floatingrates' | translate}}</li>
    </ul>

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

    <table class="table">
        <thead>
        <tr class="graybg">
            <th>{{'label.heading.name' | translate}}</th>
            <th>{{'label.heading.createdby' | translate}}</th>
            <th>{{'label.heading.isbaselendingrate' | translate}}</th>
            <th>{{'label.heading.active' | translate}}</th>
        </tr>
        </thead>
        <tbody>
        <tr class="pointer-main" ng-repeat="floatingrate in floatingrates |orderBy:'name' | filter:filterText">
            <td class="pointer" data-ng-click="routeTo(floatingrate.id)">{{floatingrate.name}}</td>
            <td class="pointer" data-ng-click="routeTo(floatingrate.id)">{{floatingrate.createdBy}}</td>
            <td class="pointer" data-ng-click="routeTo(floatingrate.id)">{{floatingrate.isBaseLendingRate}}</td>
            <td class="pointer" data-ng-click="routeTo(floatingrate.id)">{{floatingrate.isActive}}</td>
        </tr>
        </tbody>
    </table>
</div>