Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / admin-interface / templates / admin-interface / networks_list.html @ c204fcff

History | View | Annotate | Download (2.7 kB)

1
{% load admin-interface_tags %}
2
<div class="object-anchor" id="network-{{network.pk}}"></div>
3
<div class="network-details object-details {{ rowcls }}">
4
    <h4><i class="icon-random"></i>{{ network.name }} <span class="badge">&nbsp;</span></h4>
5
    {{ network|network_deleted_badge|safe }}
6
     
7
    <span class="badge badge-info">ID: {{ network.pk }}</span>
8
    {{ network|object_status_badge|safe }}
9
    
10
    <div class="network-details-content object-details-content">
11
        <ul class="nav nav-tabs">
12
                    <li class="active"><a href="#details{{ network.pk }}" data-toggle="tab">Details</a></li>
13
                    <li><a href="#vms{{ network.pk }}" data-toggle="tab">VMs</a></li>
14
            </ul>        
15
         <div class="tab-content">
16
                        <div class="tab-pane active" id="details{{ network.pk }}">
17
                                <dl class="dl-horizontal well">
18
                            <dt>ID</dt><dd>{{ network.pk }}</dd>
19
                            <dt>Name</dt><dd>{{ network.name }}</dd>
20
                            <dt>Public</dt><dd>{{ network.public }}</dd>
21
                            <dt>User ID</dt><dd>{{ network.userid }}</dd>
22
                            <dt>Created</dt><dd>{{ network.created }} ({{ network.created|timesince }} <strong>ago</strong>)</dd>
23
                            <dt>Updated</dt><dd>{{ network.updated }} ({{ network.created|timesince }} <strong>ago</strong>)</dd>
24
                            <dt>State</dt><dd>{{ network.get_state_display }} ({{ network.state }})</dd>
25
                        </dl>
26
                        </div>
27
                        <div class="tab-pane" id="vms{{ network.pk }}">
28
                                 
29
                                 <table class="table well">
30
                            <thead>
31
                                <td>ID</td>
32
                                <td>VM (ID)</td>
33
                                <td>Created</td>
34
                                <td>Updated</td>
35
                                <td>Index</td>
36
                                <td>MAC</td>
37
                                <td>IPv4</td>
38
                                <td>IPv6</td>
39
                                <td>Firewall</td>
40
                            </thead>
41
                            <tbody>
42
                                {% for nic in network|network_nics:account %}
43
                                <tr>
44
                                    <td>{{ nic.pk }}</td>
45
                                    <td>{{ nic.machine }} ({{ nic.machine.pk }})</td>
46
                                    <td>{{ nic.created }}</td>
47
                                    <td>{{ nic.updated }}</td>
48
                                    <td>{{ nic.index }}</td>
49
                                    <td>{{ nic.mac }}</td>
50
                                    <td>{{ nic.ipv4_address }}</td>
51
                                    <td>{{ nic.ipv6 }}</td>
52
                                    <td>{{ nic.get_firewall_profile_display }} ({{nic.firewall_profile}})</td>
53
                                </tr>
54
                                {% empty %}
55
                                <tr>
56
                                    <td colspan=9>No network interface available</td>
57
                                </tr>
58
                                {% endfor %}
59
                            </tbody>
60
                        </table>
61
                                         
62
                                          
63
                                 
64
                        </div>
65
                </div>
66
                 
67
    </div>
68
</div>
69