<!doctype html>
<html ng-app="userApp" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset=utf-8/>
    <script src="scripts/angular/angular.min.js"></script>
    <script src="scripts/angular/angular-route.min.js"></script>
    <script src="scripts/angular/angular-sanitize.min.js"></script>
    <script src="scripts/angular-misc/ng-table.min.js"></script>
    <script src="scripts/angular-misc/angular-commons.js"></script>
    <script src="scripts/angular-misc/ui-bootstrap-tpls-0.10.0.min.js"></script>
    <script src="scripts/angular-misc/dialogs.v2.min.js"></script>
    <script src="scripts/userApp.js"></script>
    <script src="scripts/jquery.min.js"></script>
    <script src="scripts/bootstrap.min.js"></script>
    <link rel="stylesheet" href="css/testAdmin.css"/>
    <link rel="stylesheet" href="css/tooltip.css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="scripts/angular-misc/ng-table.min.css">
    <title>Ceph RGW user management</title>
</head>

<body ng-controller="ListCtrl"  onresize="resizeBlocks(['#list','#control'])">

<header ng-include src="'partials/header.html'" ng-init="pageTitle='RGW user management'"></header>


<div>
    <div id="datePanel">Date : {{date | date:'HH:mm:ss'}}  <span class="text-warning" ng-show="status != 200"><i class="icon-warning-sign"></i> {{status}}</span></div>
    <div id="list">
        <table>
            <tr>
                <th><input type="text" ng-model="search" class="search-query" placeholder="Search"></th>
                <th>&nbsp; &nbsp; </th>
                <th ng-show="hasRole('admin_rgw')">new user <a href="#/new"><i class="icon-plus-sign" alt="add a new user" title="add a new user"></i></a>
                </th>
            </tr>
        </table>
        <br>
        <table ng-table="tableParams" class="table table-condensed table-hover clickable">
            <tr ng-repeat="user in orderedData | filter:search" ng-click="showDetail(user.uid)">
                <td data-title="'Uid'" sortable="'uid'">{{user.uid}}</td>
                <!--td data-title="'Display-name'" sortable="'display_name'">{{user.display_name}}</td-->
                <td data-title="'View'" sortable="user" style="text-align:center"><i class="icon-eye-open"
                                                                                     alt="view details of {{user.uid}}"
                                                                                     title="view details of {{user.uid}}"></i>
                </td>
            </tr>
        </table>
    </div>
</div>
<div ng-view id="control"></div>

<script>resizeBlocks(['#list','#control']);</script>

</body>
</html>