'+
@@ -1335,17 +1339,49 @@ function show_provision_user_info_callback(request, response) {
function show_provision_group_info_callback(request, response) {
var info = response.GROUP;
-
- // VDC acct
-
var context = $("#provision_manage_vdc");
+ var default_group_quotas = Quotas.default_quotas(info.DEFAULT_GROUP_QUOTAS);
+ var vms_quota = Quotas.vms(info, default_group_quotas);
+ var cpu_quota = Quotas.cpu(info, default_group_quotas);
+ var memory_quota = Quotas.memory(info, default_group_quotas);
+ var volatile_size_quota = Quotas.volatile_size(info, default_group_quotas);
+ var image_quota = Quotas.image(info, default_group_quotas);
+ var network_quota = Quotas.network(info, default_group_quotas);
+ var datastore_quota = Quotas.datastore(info, default_group_quotas);
+
+ var quotas_html;
+ if (vms_quota || cpu_quota || memory_quota || volatile_size_quota || image_quota || network_quota || datastore_quota) {
+ quotas_html = '
' + vms_quota + '
';
+ quotas_html += '' + cpu_quota + '
';
+ quotas_html += '' + memory_quota + '
';
+ quotas_html += '' + volatile_size_quota+ '
';
+ quotas_html += '' + image_quota + '
';
+ quotas_html += '' + network_quota + '
';
+ quotas_html += '' + datastore_quota + '
';
+ } else {
+ quotas_html = ''+
+ '
';
+ }
+
+ $("#provision_vdc_quotas_div").html(quotas_html);
+
accountingGraphs(
$("#provision_info_vdc_group_acct", context),
{ fixed_group: info.ID,
init_group_by: "user" });
-
- $("#acct_placeholder", context).hide();
}
function show_provision_create_vm() {
'+
+ '
'+
+ ''+
+ ''+
+ ''+
+ ''+
+ ''+
+ '
'+ + '
'+
+ ''+ + '
'+ + tr("There are no quotas defined")+ + '
'+ + '