mirror of https://github.com/apache/cloudstack.git
new UI - accounts page - localize resource limits dialog, disable account dialog, lock account dialog, enable account dialog.
This commit is contained in:
parent
fcbcbb7201
commit
12db8ca613
|
|
@ -24,4 +24,14 @@ the.ISO.is.used.by.all.zones.please.confirm.you.want.to.delete.it.from.all.zones
|
|||
please.confirm.you.want.to.delete.the.ISO = Please confirm you want to delete the ISO
|
||||
the.template.is.used.by.all.zones.please.confirm.you.want.to.delete.it.from.all.zones = The template is used by all zones. Please confirm you want to delete it from all zones.
|
||||
please.confirm.you.want.to.delete.the.template = Please confirm you want to delete the template
|
||||
please.specify.limits.to.the.various.resources.-1.means.the.resource.has.no.limits = Please specify limits to the various resources. -1 means the resource has no limits.
|
||||
instance.limit = Instance Limit
|
||||
public.ip.limit = Public IP Limit
|
||||
disk.volume.limit = Disk Volume Limit
|
||||
snapshot.limit = Snapshot Limit
|
||||
template.limit = Template Limit
|
||||
please.confirm.you.want.to.disable.account.that.will.prevent.account.access.to.the.cloud.and.shut.down.all.existing.virtual.machines = Please confirm you want to disable account that will prevent account access to the cloud and shut down all existing virtual machines.
|
||||
please.confirm.you.want.to.lock.account.that.will.prevent.account.access.to.the.cloud = Please confirm you want to lock account that will prevent account access to the cloud.
|
||||
please.confirm.you.want.to.enable.account = Please confirm you want to enable account.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -142,32 +142,34 @@
|
|||
|
||||
|
||||
<div id="dialog_resource_limits" title="Resource Limits" style="display:none">
|
||||
<p>Please specify limits to the various resources. A "-1" means the resource has no limits.</p>
|
||||
<p>
|
||||
<%=t.t("please.specify.limits.to.the.various.resources.-1.means.the.resource.has.no.limits")%>
|
||||
</p>
|
||||
<div class="dialog_formcontent">
|
||||
<form action="#" method="post" id="form_acquire">
|
||||
<ol>
|
||||
<li>
|
||||
<label for="user_name">Instance Limit:</label>
|
||||
<label><%=t.t("instance.limit")%>:</label>
|
||||
<input class="text" type="text" name="limits_vm" id="limits_vm" value="-1" />
|
||||
<div id="limits_vm_errormsg" class="dialog_formcontent_errormsg" style="display:none;"></div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="user_name">Public IP Limit:</label>
|
||||
<label><%=t.t("public.ip.limit")%>:</label>
|
||||
<input class="text" type="text" name="limits_ip" id="limits_ip" value="-1" />
|
||||
<div id="limits_ip_errormsg" class="dialog_formcontent_errormsg" style="display:none;"></div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="user_name">Disk Volume Limit:</label>
|
||||
<label><%=t.t("disk.volume.limit")%>:</label>
|
||||
<input class="text" type="text" name="limits_volume" id="limits_volume" value="-1" />
|
||||
<div id="limits_volume_errormsg" class="dialog_formcontent_errormsg" style="display:none;"></div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="user_name">Snapshot Limit:</label>
|
||||
<label><%=t.t("snapshot.limit")%>:</label>
|
||||
<input class="text" type="text" name="limits_snapshot" id="limits_snapshot" value="-1" />
|
||||
<div id="limits_snapshot_errormsg" class="dialog_formcontent_errormsg" style="display:none;"></div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="user_name">Template Limit:</label>
|
||||
<label><%=t.t("template.limit")%>:</label>
|
||||
<input class="text" type="text" name="limits_template" id="limits_template" value="-1" />
|
||||
<div id="limits_template_errormsg" class="dialog_formcontent_errormsg" style="display:none;"></div>
|
||||
</li>
|
||||
|
|
@ -177,13 +179,19 @@
|
|||
</div>
|
||||
|
||||
<div id="dialog_disable_account" title="Disable account" style="display:none">
|
||||
<p>Please confirm you want to disable account that will prevent account access to the cloud and shut down all existing virtual instances.</p>
|
||||
<p>
|
||||
<%=t.t("please.confirm.you.want.to.disable.account.that.will.prevent.account.access.to.the.cloud.and.shut.down.all.existing.virtual.machines")%>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="dialog_lock_account" title="Lock account" style="display:none">
|
||||
<p>Please confirm you want to lock account that will prevent account access to the cloud.</p>
|
||||
<p>
|
||||
<%=t.t("please.confirm.you.want.to.lock.account.that.will.prevent.account.access.to.the.cloud")%>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="dialog_enable_account" title="Enable account" style="display:none">
|
||||
<p>Please confirm you want to enable account.</p>
|
||||
<p>
|
||||
<%=t.t("please.confirm.you.want.to.enable.account")%>
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -2,26 +2,10 @@ var systemAccountId = 1;
|
|||
var adminAccountId = 2;
|
||||
|
||||
function afterLoadAccountJSP() {
|
||||
activateDialog($("#dialog_resource_limits").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
}));
|
||||
activateDialog($("#dialog_disable_account").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
}));
|
||||
activateDialog($("#dialog_lock_account").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
}));
|
||||
activateDialog($("#dialog_enable_account").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
}));
|
||||
initDialog("dialog_resource_limits");
|
||||
initDialog("dialog_disable_account");
|
||||
initDialog("dialog_lock_account");
|
||||
initDialog("dialog_enable_account");
|
||||
}
|
||||
|
||||
function accountToMidmenu(jsonObj, $midmenuItem1) {
|
||||
|
|
|
|||
|
|
@ -72,14 +72,8 @@ function clickInstanceGroupHeader($arrowIcon) {
|
|||
initDialog("dialog_change_service_offering");
|
||||
initDialog("dialog_confirmation_change_root_password");
|
||||
initDialog("dialog_confirmation_enable_ha");
|
||||
initDialog("dialog_confirmation_disable_ha");
|
||||
|
||||
activateDialog($("#dialog_create_template").dialog({
|
||||
width: 400, //this dialog box has dropdown fields, so need to fix width as 400 instead of 600.
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
}));
|
||||
initDialog("dialog_confirmation_disable_ha");
|
||||
initDialog("dialog_create_template", 400);
|
||||
|
||||
//***** switch between different tabs (begin) ********************************************************************
|
||||
var tabArray = ["tab_details", "tab_volume", "tab_statistics", "tab_router"];
|
||||
|
|
|
|||
|
|
@ -743,13 +743,22 @@ function setVmStateInRightPanel(stateValue, $stateField) {
|
|||
$stateField.text(stateValue).removeClass("green red").addClass("gray");
|
||||
}
|
||||
|
||||
function initDialog(elementId) {
|
||||
$("#"+elementId).dialog({
|
||||
width: 600,
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
});
|
||||
function initDialog(elementId, width1) {
|
||||
if(width1 == null) {
|
||||
$("#"+elementId).dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
});
|
||||
}
|
||||
else {
|
||||
$("#"+elementId).dialog({
|
||||
width: width1,
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
zIndex: 2000
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue