Commit 3706a11a by Oláh István Gergely

dashboard: fix node traits css, cleanup views

parent db8ae8b0
......@@ -191,31 +191,31 @@ body {
/* pass */
}
#vm-details-tags-form {
#vm-details-tags-form, #node-details-traits-form {
margin-top: 15px;
max-width: 250px;
}
.vm-details-remove-tag {
.vm-details-remove-tag, .node-details-remove-trait {
color: white;
padding-left: 5px;
}
.vm-details-remove-tag:hover {
.vm-details-remove-tag:hover, .node-details-remove-trait:hover {
cursor: pointer;
color: black;
text-decoration: none;
}
/* small buttons for tags, copied from Bootstraps input-sm, bnt-sm */
.btn-tags {
.btn-tags, .btn-traits {
padding: 3px 6px;
font-size: 11px;
line-height: 1.5;
border-radius: 3px;
}
.input-tags {
.input-tags, .input-tratis {
height: 22px;
padding: 2px 8px;
font-size: 11px;
......
......@@ -12,7 +12,7 @@
<div id="node-details-traits-list">
{% if node.traits.all %}
{% for t in node.traits.all %}
<div class="label label-primary label-tag" style="display: inline-block">
<div class="label label-success label-tag" style="display: inline-block">
{{ t }}
<a href="#" class="node-details-remove-trait"><i class="icon-remove"></i></a>
</div>
......@@ -23,7 +23,7 @@
</div>
<form action="" method="POST">
{% csrf_token %}
<div class="input-group" id="node-details-trait-form">
<div class="input-group" id="node-details-traits-form">
<input type="text" class="form-control input-sm input-traits" name="new_trait" id="node-details-traits-input"/>
<div class="input-group-btn">
<input type="submit" class="btn btn-default btn-sm input-traits" value="{% trans "Add trait" %}"/>
......
......@@ -34,7 +34,7 @@ from .tables import (VmListTable, NodeListTable, NodeVmListTable,
TemplateListTable, LeaseListTable, GroupListTable,)
from vm.models import (Instance, InstanceTemplate, InterfaceTemplate,
InstanceActivity, Node, instance_activity, Lease,
Interface, NodeActivity, Trait)
Interface, NodeActivity, )
from firewall.models import Vlan, Host, Rule
from storage.models import Disk
from dashboard.models import Favourite
......
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