rule-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
    <form class="navbar-search" style="margin: 20px">
17 18 19
      <input type="text" class="search-query" placeholder="Search" ng-model="query">
    </form>
    <a style="margin-top: 20px" href="#/rules/new" class="btn">New rule</a>
20
  </div>
21
</div>
22
<table class="table table-striped">
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
  <tr>
    <th>Irány</th>
    <th>Protokoll</th>
    <th>Cél</th>
    <th>Idegen hálózat</th>
    <th>Tulajdonos</th>
    <th colspan="2">Megjegyzés</th>
  </tr>
  <tr ng-repeat="rule in getPage()">
    <td>{{rule.direction}}</td>
    <td>{{rule.proto}}</td>
    <td>
      <a href="#/{{rule.target.type}}s/{{rule.target.id}}">{{rule.target.name}}</a>
    </td>
    <td>
      <a href="#/vlangroups/{{rule.foreignNetwork.id}}">{{rule.foreignNetwork.name}}</a>
    </td>
    <td>{{rule.owner.name}}</td>
    <td>{{rule.description}}</td>
    <td>
      <a class="btn" href="#/rules/{{rule.id}}/">Szerkesztés</a>
44
      <button class="btn btn-danger" ng-click="deleteEntity(rule.id)">Törlés</button>
45 46
    </td>
  </tr>
47
</table>