1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00

make some details showing style popover

This commit is contained in:
catborise 2018-10-24 14:09:29 +03:00
parent 03ffa3a295
commit 2b04a89100

View file

@ -639,10 +639,8 @@
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<th>{% trans "Device" %}</th> <th>{% trans "Device" %}</th>
<th>{% trans "Format" %}</th>
<th>{% trans "Used" %}</th> <th>{% trans "Used" %}</th>
<th>{% trans "Capacity" %}</th> <th>{% trans "Capacity" %}</th>
<th>{% trans "Bus" %}</th>
<th>{% trans "Storage" %}</th> <th>{% trans "Storage" %}</th>
<th>{% trans "Source" %}</th> <th>{% trans "Source" %}</th>
<th style="width:100px;">{% trans "Action" %}</th> <th style="width:100px;">{% trans "Action" %}</th>
@ -650,15 +648,26 @@
<tbody> <tbody>
{% for disk in disks %} {% for disk in disks %}
<tr> <tr>
<td>
<td>{{ disk.dev }}<br>{{ disk.target }}</td> <button type="submit" class="btn btn-sm btn-default"
<td>{{ disk.format }}</td> name="details"
title="{% trans "Details" %}"
tabindex="0"
data-trigger="focus"
data-toggle="popover"
data-html="true"
data-content="<strong>Bus:</strong> {{ disk.bus }} <br/> <strong>Format:</strong> {{ disk.format }}">
<i class="fa fa-info"></i>
</button>
{{ disk.dev }}
<br>
{{ disk.target }}
</td>
<td>{{ disk.used | filesizeformat}}</td> <td>{{ disk.used | filesizeformat}}</td>
<td>{{ disk.size | filesizeformat }}</td> <td>{{ disk.size | filesizeformat }}</td>
<td>{{ disk.bus }}</td>
<td>{{ disk.storage }}</td> <td>{{ disk.storage }}</td>
<td>{{ disk.path }}</td> <td>{{ disk.path }}</td>
<td style="width:30px;"> <td>
<form action="" method="post" style="height:10px" role="form">{% csrf_token %} <form action="" method="post" style="height:10px" role="form">{% csrf_token %}
<input type="hidden" name="path" value="{{ disk.path }}"> <input type="hidden" name="path" value="{{ disk.path }}">
<input type="hidden" name="dev" value="{{ disk.dev }}"> <input type="hidden" name="dev" value="{{ disk.dev }}">
@ -1623,5 +1632,12 @@
$("#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 %}