aboutsummaryrefslogtreecommitdiff
blob: be741c124d328194ac075023d3abfea0a1acb279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
    <h1>
        {{:: 'server-info' | translate}}
        <i id="serverInfoReload" class="pficon  pficon-restart clickable" data-ng-click="serverInfoReload()"></i>
    </h1>

    <ul class="nav nav-tabs">
        <li><a href="#/server-info">{{:: 'info' | translate}}</a></li>
        <li class="active"><a href="#/server-info/providers">{{:: 'providers' | translate}}</a></li>
    </ul>

    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th class="kc-table-actions" colspan="5">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" data-ng-model="search" class="form-control search" onkeyup="if(event.keyCode == 13){$(this).next('I').click();}">
                        </div>
                    </div>
                </div>
            </th>
        </tr>
        <tr>
            <th width="20%">{{:: 'spi' | translate}}</th>
            <th>{{:: 'providers' | translate}}</th>
        </tr>
        </thead>
        <tbody>
        <tr data-ng-repeat="spi in (providers | filter:search)">
            <td>{{spi.name}}</td>
            <td>
                <div data-ng-repeat="(providerName, provider) in spi.providers">
                    {{providerName}}
                    <span ng-show="provider.operationalInfo">
                        <button type="button" class="btn btn-default btn-xs" ng-click="collapseRep = !collapseRep">
                            <span class="glyphicon glyphicon-plus" data-ng-show="!collapseRep"></span>
                            <span class="glyphicon glyphicon-minus" data-ng-show="collapseRep"></span>
                        </button>
                        <table ng-show="collapseRep" class="table table-striped table-bordered" style="margin-top: 0px;">
                            <tr ng-repeat="(key, value) in provider.operationalInfo">
                                <td width="20%">{{key}}</td>
                                <td>{{value}}</td>
                            </tr>
                        </table>
                    </span>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>