Commit 0ee4a7c5 authored by Robert Ricci's avatar Robert Ricci
Browse files

Convert node-hours display to a (readonly) form

parent 0d335163
......@@ -69,8 +69,8 @@ define(['underscore', 'js/quickvm_sup',
// Current usage.
if (physnode_count) {
$("#extend_usage").removeClass("hidden");
$('#current_usage').text(physnode_hours);
$('#future_usage').text(physnode_count * 24);
$('#current_usage').val(Math.round(physnode_hours));
$('#future_usage').val(Math.round(physnode_count * 24));
}
}
......
......@@ -20,24 +20,29 @@
<div id='extend_slider'></div>
</div> <!-- /col -->
</div> <!-- /row -->
<div class='row'>
<div class='col-lg-10 col-lg-offset-1
col-md-10 col-md-offset-1
col-sm-12 col-sm-offset-0
col-xs-12 col-xs-offset-0'>
<a href='#' class='btn btn-xs' data-toggle='modal'
data-target='#myusage_modal'>
<span class='glyphicon glyphicon-question-sign'></span>
</a>
<div>
<span>Current Usage:</span>
<span id='current_usage' class='text-info'></span>
<span class='text-info'>Node Hours</span>
<br>
<span>Requesting:</span>
<span id='future_usage' class='text-info'></span>
<span class='text-info'>more Node Hours</span>
</div>
<div class='row well form-inline'>
<div class='col-sm-3'>
<h5>Node-Hours&nbsp;<a href='#' class='btn btn-xs' data-toggle='modal'
data-target='#myusage_modal'>
<span class='glyphicon glyphicon-question-sign'></span>
</a>
</h5>
</div>
<div class='col-xs-4'>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">So far</span>
<input type="text" class="form-control" id='current_usage' size="6" readonly></input>
</div> <!-- /input-group -->
</div> <!-- /form-group -->
</div> <!-- /col -->
<div class='col-xs-5'>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">Requesting</span>
<input type="text" class="form-control" id='future_usage' size="6" readonly></input>
</div> <!-- /input-group -->
</div> <!-- /form-group -->
</div> <!-- /col -->
</div> <!-- /row -->
<div class='row'>
......
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 to comment