mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	new UI - localize reset password dialog.
This commit is contained in:
		
							parent
							
								
									7818fe4c3d
								
							
						
					
					
						commit
						815b5719a1
					
				@ -1,3 +1,6 @@
 | 
			
		||||
your.session.has.expired = Your session has expired
 | 
			
		||||
internet.name.can.not.be.resolved = Internet name can not be resolved
 | 
			
		||||
management.server.is.not.accessible = Management server is not accessible
 | 
			
		||||
please.confirm.you.want.to.detach.an.iso.from.the.virtual.machine = Please confirm you want to detach an ISO from the virtual machine
 | 
			
		||||
please.specify.the.iso.you.wish.to.attach.to.virtual.machine = Please specify the ISO you wish to attach to virtual instance
 | 
			
		||||
iso = ISO
 | 
			
		||||
@ -14,3 +17,4 @@ display.text = Display Text
 | 
			
		||||
os.type = OS Type
 | 
			
		||||
public = Public
 | 
			
		||||
password.enabled = Password Enabled
 | 
			
		||||
please.confirm.you.want.to.change.the.root.password.for.the.virtual.machine = Please confirm you want to change the ROOT password for the virtual machine
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,11 @@
 | 
			
		||||
<%@ page import="java.util.Date" %>
 | 
			
		||||
<%@ page import="java.util.*" %>
 | 
			
		||||
 | 
			
		||||
<%@ page import="com.cloud.utils.*" %>
 | 
			
		||||
 | 
			
		||||
<%
 | 
			
		||||
    Locale browserLocale = request.getLocale();
 | 
			
		||||
    CloudResourceBundle t = CloudResourceBundle.getBundle("resources/resource", browserLocale);
 | 
			
		||||
%>
 | 
			
		||||
 | 
			
		||||
<%
 | 
			
		||||
long milliseconds = new Date().getTime();
 | 
			
		||||
@ -713,15 +720,21 @@ long milliseconds = new Date().getTime();
 | 
			
		||||
	<div id="dialog_alert" title="Alert" style="display:none"></div>
 | 
			
		||||
	<div id="dialog_error" title="Error" style="display:none;color:red"></div>
 | 
			
		||||
	<div id="dialog_session_expired" title="Session Expired" style="display:none">
 | 
			
		||||
		<p>Your session has expired.  Please click 'OK' to return to the login screen.</p>
 | 
			
		||||
		<p>
 | 
			
		||||
		    <%=t.t("your.session.has.expired")%>		    
 | 
			
		||||
		</p>
 | 
			
		||||
	</div>
 | 
			
		||||
	
 | 
			
		||||
	<div id="dialog_error_internet_not_resolved" title="Error" style="display:none;color:red">
 | 
			
		||||
	    <p style="color:red">Internet name can not be resolved</p>
 | 
			
		||||
	<div id="dialog_error_internet_not_resolved" title="Error" style="display:none">
 | 
			
		||||
	    <p style="color:red">
 | 
			
		||||
	        <%=t.t("internet.name.can.not.be.resolved")%>	        
 | 
			
		||||
	    </p>
 | 
			
		||||
	</div>
 | 
			
		||||
	
 | 
			
		||||
	<div id="dialog_error_management_server_not_accessible" title="Error" style="display:none">
 | 
			
		||||
	    <p style="color:red">Management server is not accessible</p>
 | 
			
		||||
	    <p style="color:red">
 | 
			
		||||
	        <%=t.t("management.server.is.not.accessible")%>	        
 | 
			
		||||
	     </p>
 | 
			
		||||
	</div>
 | 
			
		||||
	
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
@ -1048,4 +1048,10 @@
 | 
			
		||||
</div>
 | 
			
		||||
<!-- Create template of disk volume dialog (end) -->
 | 
			
		||||
 | 
			
		||||
<div id="dialog_confirmation_change_root_password" title="Confirmation" style="display:none">
 | 
			
		||||
    <p>
 | 
			
		||||
        <%=t.t("please.confirm.you.want.to.change.the.root.password.for.the.virtual.machine")%>        
 | 
			
		||||
    </p>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<!--  ***** Dialogs (end) ***** -->
 | 
			
		||||
 | 
			
		||||
@ -70,6 +70,7 @@ function clickInstanceGroupHeader($arrowIcon) {
 | 
			
		||||
        initDialog("dialog_change_name"); 
 | 
			
		||||
        initDialog("dialog_change_group"); 
 | 
			
		||||
        initDialog("dialog_change_service_offering"); 
 | 
			
		||||
        initDialog("dialog_confirmation_change_root_password"); 
 | 
			
		||||
                      
 | 
			
		||||
        activateDialog($("#dialog_create_template").dialog({
 | 
			
		||||
	        width: 400, //this dialog box has dropdown fields, so need to fix width as 400 instead of 600.
 | 
			
		||||
@ -839,10 +840,9 @@ function doDetachISO($t, selectedItemsInMidMenu, vmListAPIMap) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function doResetPassword($t, selectedItemsInMidMenu, vmListAPIMap) {   		
 | 
			
		||||
	$("#dialog_confirmation")
 | 
			
		||||
	.html("<p>Please confirm you want to change the ROOT password for your virtual machine(s)</p>")
 | 
			
		||||
	$("#dialog_confirmation_change_root_password")	
 | 
			
		||||
	.dialog('option', 'buttons', { 						
 | 
			
		||||
		"Confirm": function() { 
 | 
			
		||||
		"Yes": function() { 
 | 
			
		||||
			$(this).dialog("close"); 
 | 
			
		||||
			for(var id in selectedItemsInMidMenu) {	
 | 
			
		||||
			    var $midMenuItem = selectedItemsInMidMenu[id];
 | 
			
		||||
@ -861,7 +861,7 @@ function doResetPassword($t, selectedItemsInMidMenu, vmListAPIMap) {
 | 
			
		||||
	            doActionForMidMenu(id, $t, apiCommand, vmListAPIMap);	
 | 
			
		||||
	        }		
 | 
			
		||||
		}, 
 | 
			
		||||
		"Cancel": function() { 
 | 
			
		||||
		"No": function() { 
 | 
			
		||||
			$(this).dialog("close"); 
 | 
			
		||||
		} 
 | 
			
		||||
	}).dialog("open");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user