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

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

    <table class="table">
        <thead>
        <tr class="graybg">
            <th>{{ 'label.heading.hooktemplate' | translate }}</th>
            <th>{{ 'label.heading.hookname' | translate }}</th>
            <th>{{ 'label.heading.isactive' | translate }}</th>
        </tr>
        </thead>
        <tbody>
        <tr class="pointer-code" data-ng-repeat="hook in hooks | filter:filterText">
            <td class="pointer" data-ng-click="routeTo(hook.id)">{{hook.name}}</td>
            <td class="pointer" data-ng-click="routeTo(hook.id)">{{hook.displayName}}</td>
            <td class="pointer" data-ng-click="routeTo(hook.id)">{{hook.isActive}}</td>
        </tr>
        </tbody>
    </table>
</div>