mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 23:25:24 +00:00
add hide/show all instances funtionality
This commit is contained in:
parent
8ecd453efe
commit
d3b43b2e6a
2 changed files with 13 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
||||||
<table class="table table-hover table-striped sortable-theme-bootstrap">
|
<table class="table table-hover table-striped sortable-theme-bootstrap">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th><a href="#" id="hide_all_instances" onclick="hide_all_host_instances()">#</a> </th>
|
||||||
<th>{% trans "Name" %}<br>{% trans "Description" %}</th></th>
|
<th>{% trans "Name" %}<br>{% trans "Description" %}</th></th>
|
||||||
<th>{% trans "User"%}</th>
|
<th>{% trans "User"%}</th>
|
||||||
<th>{% trans "Status" %}</th>
|
<th>{% trans "Status" %}</th>
|
||||||
|
@ -124,6 +124,11 @@
|
||||||
</table>
|
</table>
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
|
function hide_all_host_instances() {
|
||||||
|
var rows = $('table tr');
|
||||||
|
all_host_rows = rows.filter('[host]');
|
||||||
|
all_host_rows.toggle();
|
||||||
|
}
|
||||||
function hide_host_instances(host) {
|
function hide_host_instances(host) {
|
||||||
var rows = $('table tr');
|
var rows = $('table tr');
|
||||||
|
|
||||||
|
|
|
@ -1420,6 +1420,13 @@
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function(){
|
||||||
|
$('[data-toggle="popover"]').popover({
|
||||||
|
placement : 'top'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
$('.js-custom__checkbox').change(function () {
|
$('.js-custom__checkbox').change(function () {
|
||||||
|
@ -1640,12 +1647,5 @@
|
||||||
$("#logs_table > tbody").html(logs);
|
$("#logs_table > tbody").html(logs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function(){
|
|
||||||
$('[data-toggle="popover"]').popover({
|
|
||||||
placement : 'top'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue