networks.html.ep 2.73 KB
Newer Older
fv3rdugo's avatar
fv3rdugo committed
1
2
3
4
5
<!DOCTYPE html>
<html ng-app="ravada.app">
%= include 'bootstrap/header'
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top" role="document">
    <div id="wrapper">
fv3rdugo's avatar
fv3rdugo committed
6
    <div ng-controller="networksPage">
fv3rdugo's avatar
fv3rdugo committed
7
    %= include 'bootstrap/navigation'
fv3rdugo's avatar
fv3rdugo committed
8
9
10
11
12
13
14
15
16
17
18
19
    <div id="page-wrapper">
      <div id="admin-content">
<div class="panel-body">
    <div class="col-lg-12">
        <div class="row">
            <div class="col-md-8"><h2><%=l 'Networks' %></h2></div>
            <div class="col-md-4" align="right">
                <h2>
                    <a type="button" class="btn btn-success" href="/admin/new_networks.html">
                        <b><%=l 'New Network' %></b>
                    </a>
                </h2>
fv3rdugo's avatar
fv3rdugo committed
20
21
            </div>
        </div>
fv3rdugo's avatar
fv3rdugo committed
22
23
24
25
26
27
28
29
30
31
32
%=      include 'bootstrap/navigation'

<div class="panel-body col-lg-12">
  <table class="table table-striped">
    <thead>
      <tr>
        <th><%=l 'Name' %></th>
        <th><%=l 'Address' %></th>
        <th><%=l 'Description' %></th>
        <th><%=l 'All Domains' %></th>
        <th><%=l 'No Domains' %></th>
fv3rdugo's avatar
fv3rdugo committed
33
        <th><%=l 'Requires Passwd' %></th>
fv3rdugo's avatar
fv3rdugo committed
34
35
36
      </tr>
    </thead>
    <tbody>
fv3rdugo's avatar
fv3rdugo committed
37
38
39
40
        <tr ng-repeat="network in list_networks">
            <td>{{ network.name }}</td>
            <td>{{ network.address }}</td>
            <td>{{ network.description }}</td>
fv3rdugo's avatar
fv3rdugo committed
41
42
43
44
45
46
47
48
            <td><p ng-show="{{network.all_domains}}" class="fa fa-check" aria-hidden="true"></p>
                <p ng-show="{{network.all_domains!=1}}" class="fa fa-times" aria-hidden="true"></p>
            </td>
            <td><p ng-show="{{network.no_domains}}" class="fa fa-check" aria-hidden="true"></p>
                <p ng-show="{{network.no_domains!=1}}" class="fa fa-times" aria-hidden="true"></p>
            </td>
            <td><p ng-show="{{network.requires_password}}" class="fa fa-lock" aria-hidden="true" title="User needed a password to connect"></p>
            <p ng-show="{{network.requires_password!=1}}" class="fa fa-unlock" aria-hidden="true" title="Password not required"></p></td>
fv3rdugo's avatar
fv3rdugo committed
49
        </tr>
fv3rdugo's avatar
fv3rdugo committed
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
    </tbody>
  </table>
</div>
</div>
</div>
</div>
</div>
%= include 'bootstrap/scripts'
%= include 'bootstrap/footer'
<div id="overNotifications" class="notifications" ng-controller="notifCrtl">
<script type="text/ng-template" id="alert.html">
<div ng-transclude></div>
</script>
<div uib-alert ng-repeat="alert in alerts"
 ng-class="'alert-' + (alert.type || 'warning')"
  ng-click="closeAlert($index)"
  ng-mouseover="alert.showMessage = false"
  ng-mouseleave="alert.showMessage = true"
  ng-bind-html="alert.subject">
  {{alert.subject}}
  <div ng-if="alert.message" ng-init="alert.showMessage = true" ng-hide="alert.showMessage" ng-bind-html="alert.message">
    {{alert.message}}
  </div>
</div>
</div>
fv3rdugo's avatar
fv3rdugo committed
75
</body>
fv3rdugo's avatar
fv3rdugo committed
76
</html>