Feature #4363: Fix vnet leases icons

This commit is contained in:
Carlos Martín committed 2016-05-18 19:03:39 +02:00
1 parent bd9f9f6d42
commit fe33410b3c
3 files changed
+24 -8

No files matched your search

@@ -80,22 +80,22 @@ define(function(require) {
var col1HTML = "";
if (lease.VM == "-1") { //hold
col0HTML = '<span type="text" class="alert radius label"></span>';
col0HTML = '<i class="alert-color fa fa-square"/>';
if (Config.isTabActionEnabled("vnets-tab", "Network.release_lease")) {
col1HTML = '<a class="release_lease" href="#"><i class="fa fa-play"/></a>';
col1HTML = '<a class="release_lease button small" href="#"><i class="fa fa-play"/></a>';
}
} else if (lease.VM != undefined) { //used by a VM
col0HTML = '<span type="text" class="radius label "></span>';
col0HTML = '<i class="primary-color fa fa-square"/>';
col1HTML = Locale.tr("VM:") + lease.VM;
} else if (lease.VNET != undefined) { //used by a VNET
col0HTML = '<span type="text" class="radius label "></span>';
col0HTML = '<i class="warning-color fa fa-square"/>';
col1HTML = Locale.tr("NET:") + lease.VNET;
} else if (lease.VROUTER != undefined) { //used by a VR
col0HTML = '<span type="text" class="radius label "></span>';
col0HTML = '<i class="success-color fa fa-square"/>';
col1HTML = Locale.tr("VR:") + lease.VROUTER;
} else {
col0HTML = '<span type="text" class="radius label "></span>';
col0HTML = '<i class="primary-color fa fa-square"/>';
col1HTML = '--';
}
@@ -17,10 +17,10 @@
<form id="leases_form">
{{#isTabActionEnabled "vnets-tab" "Network.hold_lease"}}
<div class="row">
<div class="large-4 columns">
<div class="medium-4 columns">
<input type="text" id="panel_hold_lease"/>
</div>
<div class="large-2 columns end">
<div class="medium-8 columns end">
<button class="button small secondary radius" id="panel_hold_lease_button">
{{tr "Hold IP"}}
</button>
+16
View File
@@ -133,4 +133,20 @@ meter {
background: #6f6f6f;
color: #f2f2f2;
padding: 20px;
}
.primary-color {
color: $primary-color;
}
.secondary-color {
color: $secondary-color;
}
.success-color {
color: $success-color;
}
.warning-color {
color: $warning-color;
}
.alert-color {
color: $alert-color;
}