mirror of https://github.com/apache/cloudstack.git
new UI - localize delete template for single zone dialog, delete template for all zones dialog.
This commit is contained in:
parent
b732327fce
commit
fcbcbb7201
|
|
@ -22,4 +22,6 @@ please.confirm.you.want.to.enable.HA.for.your.virtual.machine.once.HA.is.enabled
|
|||
please.confirm.you.want.to.disable.HA.for.the.virtual.machine.once.HA.is.disabled.the.virtual.machine.will.no.longer.be.automatically.restarted.in.the.event.of.a.failure = Please confirm you want to disable HA for the virtual machine. Once HA is disabled, the virtual machine will no longer be be automatically restarted in the event of a failure.
|
||||
the.ISO.is.used.by.all.zones.please.confirm.you.want.to.delete.it.from.all.zones = 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
|
||||
|
||||
|
|
|
|||
|
|
@ -333,3 +333,15 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Add Template Dialog (end) -->
|
||||
|
||||
<div id="dialog_confirmation_delete_template_all_zones" title="Confirmation" style="display:none">
|
||||
<p>
|
||||
<%=t.t("the.template.is.used.by.all.zones.please.confirm.you.want.to.delete.it.from.all.zones")%>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="dialog_confirmation_delete_template" title="Confirmation" style="display:none">
|
||||
<p>
|
||||
<%=t.t("please.confirm.you.want.to.delete.the.template")%>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -152,6 +152,9 @@ function afterLoadTemplateJSP() {
|
|||
});
|
||||
|
||||
//initialize dialog box ***
|
||||
initDialog("dialog_confirmation_delete_template_all_zones");
|
||||
initDialog("dialog_confirmation_delete_template");
|
||||
|
||||
activateDialog($("#dialog_add_template").dialog({
|
||||
width:450,
|
||||
autoOpen: false,
|
||||
|
|
@ -438,14 +441,13 @@ function doDeleteTemplate($actionLink, listAPIMap, $detailsTab) {
|
|||
if (zoneId != null)
|
||||
moreCriteria.push("&zoneid="+zoneId);
|
||||
|
||||
var htmlMsg;
|
||||
var $dialog1;
|
||||
if(jsonObj.crossZones == "true")
|
||||
htmlMsg = "<p>Template <b>"+name+"</b> is used by all zones. Please confirm you want to delete it from all zones.</p>";
|
||||
$dialog1 = $("#dialog_confirmation_delete_template_all_zones");
|
||||
else
|
||||
htmlMsg = "<p>Please confirm you want to delete template <b>"+name+"</b>.</p>";
|
||||
|
||||
$("#dialog_confirmation")
|
||||
.html(htmlMsg)
|
||||
$dialog1 = $("#dialog_confirmation_delete_template");
|
||||
|
||||
$dialog1
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
$(this).dialog("close");
|
||||
|
|
|
|||
Loading…
Reference in New Issue