account.html 2.85 KB
Newer Older
1
2
3
4
5
{% extends "helpdesk/base.html" %}

{% block extraheader %}
<small>/ {{ account }}</small>
{% endblock %}
Olga Brani's avatar
Olga Brani committed
6

7
8
9
10
11
12
13
14
15
16
17
18
{% block content %}
<div class="subnav">
  <ul class="nav nav-pills">
      <li><h2>{{ account }}</h2></li>
      <li><a href="#account">Account</a></li>
      <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Virtual machines <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#vms">All</a></li>
            <li class="divider"></li>
              <li>
                {% for vm in vms %}
19
                <a href="#vm-{{ vm.pk }}" class="{% if vm.deleted %}deleted{% endif %}">{{ vm.name }}</a>
20
21
22
23
24
25
26
27
28
29
30
                {% endfor %}
            </li>
          </ul>
      </li>
      <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">Networks <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="#networks">All</a></li>
            <li class="divider"></li>
              <li>
                {% for net in networks %}
31
                <a href="#network-{{ net.pk }}" class="{% if net.state == "DELETED" %}deleted{% endif %}">{{ net.name }}</a>
32
33
34
35
36
37
38
39
40
41
42
43
                {% endfor %}
            </li>
          </ul>
      </li>
  </ul>
</div>
<div class="row-fluid">
    <div class="object-anchor" id="account"></div>
    <div class="account info-block well">
        <h3>Account</h3>
        <div class="object-details">
            <div class="vm-details-content object-details-content">
Olga Brani's avatar
Olga Brani committed
44
45
46
47
48
49
50
51
52
53
54
55
            	 <ul class="nav nav-tabs">
				    <li class="active"><a href="#details{{ account }}" data-toggle="tab">Details</a></li>
			    </ul>	
                 <div class="tab-content">
					<div class="tab-pane active" id="details{{ account }}">
		                <dl class="dl-horizontal well">
		                    <dt>Username</dt><dd>{{ account }}</dd>
		                    <dt>Virtual machines</dt><dd>{{ vms|length }}</dd>
		                    <dt>Networks</dt><dd>{{ networks|length }}</dd>
		                </dl>
		           </div>
		        </div>
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
            </div>
        </div>
    </div>
    <div class="object-anchor" id="vms"></div>
    <div class="vms info-block well">
        <h3>Virtual machines <span class="badge badge-info">Total: {{ vms|length }}</span></h3>
        {% for vm in vms %}
        {% include "helpdesk/vms_list.html" %}
        {% empty %}
        <p>No virtual machines available for this account</p>
        {% endfor %}
    </div>
    <div class="object-anchor" id="networks"></div>
    <div class="networks info-block well">
        <h3>Networks <span class="badge badge-info">Total: {{ vms|length }}</span></h3>
        {% for network in networks %}
        {% include "helpdesk/networks_list.html" %}
        {% empty %}
        <p>No networks available for this account</p>
        {% endfor %}
    </div>
</div>
{% endblock %}