host-list.html 1.48 KB
Newer Older
1
<div class="navbar">
2 3 4 5 6 7 8 9 10 11 12 13 14
  <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>
15
    </div>
16 17 18
    <form class="navbar-search" style="margin: 20px">
      <input type="text" class="search-query" placeholder="Search" ng-model="query"></form>
  </div>
19 20
</div>
<table class="table table-striped">
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  <tr>
    <th>Név</th>
    <th>Vlan</th>
    <th>IPv4</th>
    <th>Csoportok</th>
    <th>Tulajdonos</th>
    <th colspan="2">Leírás</th>
  </tr>
  <tr ng-repeat="host in getPage()">
    <td>{{host.name}}</td>
    <td>
      <a href="#/hosts/{{host.vlan.id}}">{{host.vlan.name}}</a>
    </td>
    <td>{{host.ipv4}}</td>
    <td>
36 37
      <div class="well well-small">
        <span class="label label-info" ng-repeat="group in host.groups">
38
          <a href="#/hostgroups/{{group.id}}">{{group.name}}</a>
39 40
        </span>
      </div>
41 42 43 44 45 46 47 48
    </td>
    <td>{{host.owner.name}}</td>
    <td style="width: 200px;">{{host.description}}</td>
    <td>
      <a class="btn" href="#/hosts/{{host.id}}/">Szerkesztés</a>
      <a class="btn btn-danger" href="#/hosts/{{host.id}}/delete/">Törlés</a>
    </td>
  </tr>
49
</table>