host-list.html 1.57 KB
Newer Older
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
<div class="navbar">
    <div class="navbar-inner">
        <div class="pagination pull-left">
            <ul>
                <li ng-click="prevPage()" ng-class="{disabled: page == 1}"><a href>Előző</a></li>
                <li ng-repeat="_page in pages" ng-click="setPage(_page)" ng-class="{active: _page == page}">
                <a href>{{_page}}</a>
                </li>
                <li ng-click="nextPage()" ng-class="{disabled: page == pages.length}"><a href>Next</a></li>
            </ul>
        </div>
        <form class="navbar-search" style="margin: 20px">
            <input type="text" class="search-query" placeholder="Search" ng-model="query">
        </form>
    </div>
</div>
<table class="table table-striped">
    <tr>
        <th>Név</th>
        <th>Vlan</th>
        <th>Tulajdonos</th>
        <th>Csoportok</th>
        <th>Leírás</th>
        <th colspan="2">IPv4</th>
    </tr>
    <tr ng-repeat="host in getPage()">
        <td>{{host.name}}</td>
Bence Dányi committed
28
        <td><a href="#/hosts/{{host.vlan.id}}">{{host.vlan.name}}</a></td>
29 30 31 32 33 34 35 36 37 38 39
        <td>{{host.owner.name}}</td>
        <td>
            <ul>
                <li ng-repeat="group in host.groups">
                    <a href="#/hostgroups/{{group.id}}">{{group.name}}</a>
                </li>
            </ul>
        </td>
        <td style="width: 200px;">{{host.description}}</td>
        <td>{{host.ipv4}}</td>
        <td>
Bence Dányi committed
40
            <a class="btn" href="#/hosts/{{host.id}}/">Szerkesztés</a>
Bence Dányi committed
41
            <a class="btn btn-danger" href="#/hosts/{{host.id}}/delete/">Törlés</a>
42 43 44
        </td>
    </tr>
</table>