Revision 2152dd3f
b/snf-cyclades-app/synnefo/helpdesk/static/css/extra.css | ||
---|---|---|
192 | 192 |
.vm-action form { margin-bottom: 0px; } |
193 | 193 |
.vm-action.inactive form input { background-color: #2956B2; color: #ffffff;} |
194 | 194 |
.vm-action form input { background-color: #F81A23; color: #ffffff;} |
195 |
|
|
196 |
.table-sorted th:hover { color:#2956B2; cursor:pointer; } |
|
197 |
.table-sorted th span { padding-right:20px; } |
|
198 |
.table-sorted th:hover span { background:url(../img/arrow-down.png) no-repeat right center; } |
|
199 |
.table-sorted th.headerSortDown span, |
|
200 |
.table-sorted th.headerSortDown:hover span { background:url(../img/arrow-up.png) no-repeat right center; } |
|
201 |
|
|
202 |
.table-sorted th.headerSortUp span, |
|
203 |
.table-sorted th.headerSortUp:hover span { background:url(../img/arrow-down.png) no-repeat right center; } |
b/snf-cyclades-app/synnefo/helpdesk/static/js/common.js | ||
---|---|---|
2 | 2 |
|
3 | 3 |
$(document).ready(function(){ |
4 | 4 |
|
5 |
|
|
5 |
// table sorting |
|
6 |
|
|
7 |
$('.table-sorted').tablesorter({ |
|
8 |
sortList : [[2,0]], |
|
9 |
}); |
|
10 |
|
|
11 |
|
|
12 |
|
|
6 | 13 |
// fix sub nav on scroll |
7 | 14 |
var $win = $(window) |
8 | 15 |
, $nav = $('.subnav') |
b/snf-cyclades-app/synnefo/helpdesk/templates/helpdesk/base.html | ||
---|---|---|
19 | 19 |
</div> |
20 | 20 |
<div class="span5"> |
21 | 21 |
<form class="form-horizontal account-form" method="get" action="."> |
22 |
<input type="text" class="input-medium search-query" name="account" autocomplete="off">
|
|
22 |
<input type="text" class="input-medium search-query" name="account"> |
|
23 | 23 |
<button type="submit" class="btn">View account</button> |
24 | 24 |
</form> |
25 | 25 |
</div> |
... | ... | |
41 | 41 |
</div> |
42 | 42 |
<script src="{{ MEDIA_URL }}helpdesk/js/jquery.js"></script> |
43 | 43 |
<script src="{{ MEDIA_URL }}helpdesk/js/bootstrap.js"></script> |
44 |
<script src="{{ MEDIA_URL }}helpdesk/js/common.js"></script>
|
|
45 |
|
|
44 |
<script src="{{ MEDIA_URL }}helpdesk/js/jquery.tablesorter.js"></script>
|
|
45 |
<script src="{{ MEDIA_URL }}helpdesk/js/common.js"></script> |
|
46 | 46 |
</body> |
47 | 47 |
</html> |
b/snf-cyclades-app/synnefo/helpdesk/templates/helpdesk/ip.html | ||
---|---|---|
1 | 1 |
{% extends "helpdesk/base.html" %} |
2 | 2 |
|
3 | 3 |
{% block extraheader %} |
4 |
<small>/ {{ account_name }}</small>
|
|
4 |
<small>/ {{ search_query }}</small>
|
|
5 | 5 |
{% endblock %} |
6 | 6 |
|
7 | 7 |
{% block content %} |
8 |
|
|
9 | 8 |
{% if ip_exists %} |
10 |
<table border 1> |
|
11 |
<tr> |
|
12 |
IP Address {{ search_query }} |
|
13 |
</tr> |
|
9 |
<h3>IP Address {{ search_query }}</h3> |
|
10 |
<table class="table table-striped table-sorted table-ip"> |
|
11 |
<thead> |
|
14 | 12 |
<tr> |
15 |
<td> Server </td>
|
|
16 |
<td> Network </td>
|
|
17 |
<td> Allocated </td>
|
|
18 |
<td> Released </td>
|
|
19 |
<td> Account </td>
|
|
13 |
<th><span> Server</span></th>
|
|
14 |
<th><span> Network </span></th>
|
|
15 |
<th><span> Allocated </span></th>
|
|
16 |
<th><span> Released </span></th>
|
|
17 |
<th><span> Account </span></th>
|
|
20 | 18 |
</tr> |
19 |
</thead> |
|
20 |
<tbody> |
|
21 | 21 |
{% for ip in ips %} |
22 | 22 |
<tr> |
23 | 23 |
<td> |
... | ... | |
39 | 39 |
<td><a href="{{ ip.account }}">{{ ip.account }}</a></td> |
40 | 40 |
</tr> |
41 | 41 |
{% endfor %} |
42 |
</tbody> |
|
42 | 43 |
</table> |
43 | 44 |
{% else %} |
44 | 45 |
|
45 |
<p> IP Address {{ search_query }} has never been allocated to any server. </p>
|
|
46 |
<p> IP Address <em>{{ search_query }}</em> has never been allocated to any server. </p>
|
|
46 | 47 |
{% endif %} |
47 | 48 |
{% endblock %} |
Also available in: Unified diff