Add support for allocation management on nodes.

Allows deleting entire IP blocks, as well as allocating new IPs and
Ports via CIDR ranges, single IP, and single ports or a port range.
This commit is contained in:
Dane Everitt 2016-01-10 00:38:16 -05:00
parent aaf9768a92
commit 179481c547
8 changed files with 282 additions and 8 deletions

View file

@ -80,3 +80,46 @@ form .text-muted {margin: 0 0 -5.5px}
.label{border-radius: .25em;padding: .2em .6em .3em;}
kbd{border-radius: .25em}
.modal-open .modal {padding-left: 0px !important;padding-right: 0px !important;overflow-y: scroll;}
/**
* Pillboxes
*/
.fuelux .pillbox {
border-radius: 0 !important;
}
li.btn.btn-default.pill {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
color:#fff;
background-color:#008cba;
border-color:#0079a1;
}
li.btn.btn-default.pill:active,li.btn.btn-default.pill:focus,li.btn.btn-default.pill:hover {
background-color:#006687;
border-color:#004b63
}
.fuelux .pillbox>.pill-group .form-control {
height: 26px !important;
}
.fuelux .pillbox .pillbox-input-wrap {
margin: 0 !important;
}
.btn-allocate-delete {
height:34px;
width:34px;
padding:0;
}
@media (max-width:992px){
.btn-allocate-delete {
margin-top:22px;
}
}

View file

@ -1,3 +1,13 @@
function randomKey(length) {
var text = '';
var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
for( var i=0; i < length; i++ ) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}
$(document).ready(function () {
$.urlParam=function(name){var results=new RegExp("[\\?&]"+name+"=([^&#]*)").exec(decodeURIComponent(window.location.href));if(results==null){return null}else{return results[1]||0}};function getPageName(url){var index=url.lastIndexOf("/")+1;var filenameWithExtension=url.substr(index);var filename=filenameWithExtension.split(".")[0];return filename}
function centerModal(element) {