Commit 81094f0d by Oláh István Gergely

dashboard: fix generateGroupHTML in js, add wrapper div to template

parent 2d9bc07b
...@@ -290,8 +290,9 @@ function generateVmHTML(pk, name, host, icon, _status, fav) { ...@@ -290,8 +290,9 @@ function generateVmHTML(pk, name, host, icon, _status, fav) {
} }
function generateGroupHTML(url, name) { function generateGroupHTML(url, name) {
return name+url + return '<a href="' + url + '" class="list-group-item real-link">'+
''; '<i class="icon-group"></i> '+ name +
'</a>';
} }
/* copare vm-s by fav, pk order */ /* copare vm-s by fav, pk order */
......
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
<h3 class="no-margin"><i class="icon-group"></i> {% trans "Groups" %}</h3> <h3 class="no-margin"><i class="icon-group"></i> {% trans "Groups" %}</h3>
</div> </div>
<div class="list-group" id="vm-list-view"> <div class="list-group" id="vm-list-view">
<div id="dashboard-group-list">
{% for i in groups %} {% for i in groups %}
<a href="{% url "dashboard.views.group-detail" pk=i.pk %}" class="list-group-item real-link"> <a href="{% url "dashboard.views.group-detail" pk=i.pk %}" class="list-group-item real-link">
<i class="icon-group"></i> {{ i.name }} <i class="icon-group"></i> {{ i.name }}
</a> </a>
{% endfor %} {% endfor %}
</div>
<div href="#" class="list-group-item list-group-footer text-right"> <div href="#" class="list-group-item list-group-footer text-right">
<div class="row"> <div class="row">
<div class="col-sm-6 col-xs-6 input-group input-group-sm"> <div class="col-sm-6 col-xs-6 input-group input-group-sm">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment