mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			426 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			426 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 | |
| <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
 | |
| <c:if test="${!empty cookie.lang}">
 | |
| 	<fmt:setLocale value="${cookie.lang.value}" />
 | |
| </c:if>
 | |
| <fmt:setBundle basename="resources/messages"/>
 | |
| 
 | |
| <script language="javascript">
 | |
| dictionary = { 	
 | |
| 	'label.action.delete.cluster' : '<fmt:message key="label.action.delete.cluster"/>',
 | |
| 	'label.action.delete.cluster.processing' : '<fmt:message key="label.action.delete.cluster.processing"/>',
 | |
| 	'message.action.delete.cluster' : '<fmt:message key="message.action.delete.cluster"/>',
 | |
| 	'label.action.enable.cluster' : '<fmt:message key="label.action.enable.cluster"/>',
 | |
| 	'label.action.enable.cluster.processing' : '<fmt:message key="label.action.enable.cluster.processing"/>',
 | |
| 	'message.action.enable.cluster' : '<fmt:message key="message.action.enable.cluster"/>',
 | |
| 	'label.action.disable.cluster' : '<fmt:message key="label.action.disable.cluster"/>',
 | |
| 	'label.action.disable.cluster.processing' : '<fmt:message key="label.action.disable.cluster.processing"/>',
 | |
| 	'message.action.disable.cluster' : '<fmt:message key="message.action.disable.cluster"/>',
 | |
| 	'label.action.manage.cluster' : '<fmt:message key="label.action.manage.cluster"/>',	
 | |
| 	'message.action.manage.cluster' : '<fmt:message key="message.action.manage.cluster"/>',	
 | |
| 	'label.action.manage.cluster.processing' : '<fmt:message key="label.action.manage.cluster.processing"/>',	
 | |
| 	'label.action.unmanage.cluster' : '<fmt:message key="label.action.unmanage.cluster"/>',	
 | |
| 	'message.action.unmanage.cluster' : '<fmt:message key="message.action.unmanage.cluster"/>',	
 | |
| 	'label.action.unmanage.cluster.processing' : '<fmt:message key="label.action.unmanage.cluster.processing"/>'
 | |
| };	
 | |
| </script>
 | |
| 
 | |
| <div class="main_title" id="right_panel_header">
 | |
|    
 | |
|     <div class="main_titleicon">
 | |
|         <img src="images/title_clustericon.gif"/></div>
 | |
|    
 | |
|     <h1><fmt:message key="label.cluster"/></h1>
 | |
| </div>
 | |
| <div class="contentbox" id="right_panel_content">
 | |
|     <div class="info_detailbox errorbox" id="after_action_info_container_on_top" style="display: none">
 | |
|         <p id="after_action_info">
 | |
|         </p>
 | |
|     </div>
 | |
|     <div class="tabbox" style="margin-top:15px;">
 | |
|         <div class="content_tabs on">
 | |
|             <fmt:message key="label.details"/></div>        
 | |
|     </div>    
 | |
|     <div id="tab_content_details">
 | |
|     	<div id="tab_spinning_wheel" class="rightpanel_mainloader_panel" style="display: none;">
 | |
|             <div class="rightpanel_mainloaderbox">
 | |
|                 <div class="rightpanel_mainloader_animatedicon">
 | |
|                 </div>
 | |
|                 <p>
 | |
|                     <fmt:message key="label.loading"/> …</p>
 | |
|             </div>
 | |
|         </div>   
 | |
|         <div id="tab_container">
 | |
| 		    <div class="grid_container">
 | |
| 		        <div class="grid_header">
 | |
| 	                <div id="grid_header_title" class="grid_header_title">
 | |
| 	                    (title)</div>
 | |
| 	                <div class="grid_actionbox" id="action_link"><p><fmt:message key="label.actions"/></p>
 | |
| 	                    <div class="grid_actionsdropdown_box" id="action_menu" style="display: none;">
 | |
| 	                        <ul class="actionsdropdown_boxlist" id="action_list">
 | |
| 	                            <li>
 | |
| 	                                <fmt:message key="label.no.actions"/></li>
 | |
| 	                        </ul>
 | |
| 	                    </div>
 | |
| 	                </div>
 | |
| 	                <div class="gridheader_loaderbox" id="spinning_wheel" style="border: 1px solid #999;
 | |
| 	                    display: none;">
 | |
| 	                    <div class="gridheader_loader" id="icon">
 | |
| 	                    </div>
 | |
| 	                    <p id="description">
 | |
| 	                        <fmt:message key="label.waiting"/> …</p>
 | |
| 	                </div>
 | |
| 	            </div>
 | |
| 		        <div class="grid_rows odd">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.id"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="id">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>
 | |
| 		        <div class="grid_rows even">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.name"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="name">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>
 | |
| 		        <div class="grid_rows odd">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.zone"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="zonename">
 | |
| 		                    </div>
 | |
| 		            </div>
 | |
| 		        </div>
 | |
| 		        <div class="grid_rows even">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.pod"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="podname">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>			        
 | |
| 		        <div class="grid_rows odd">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.hypervisor.type"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="hypervisortype">
 | |
| 		                    </div>
 | |
| 		            </div>
 | |
| 		        </div>
 | |
| 		        <div class="grid_rows even">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="label.cluster.type"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="clustertype">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>	
 | |
| 		        <div class="grid_rows odd">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="allocation.state"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="allocationstate">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>	
 | |
| 		        <div class="grid_rows even">
 | |
| 		            <div class="grid_row_cell" style="width: 20%;">
 | |
| 		                <div class="row_celltitles">
 | |
| 		                    <fmt:message key="managed.state"/>:</div>
 | |
| 		            </div>
 | |
| 		            <div class="grid_row_cell" style="width: 79%;">
 | |
| 		                <div class="row_celltitles" id="managedstate">
 | |
| 		                </div>
 | |
| 		            </div>
 | |
| 		        </div>			        		        		        	        
 | |
| 		    </div>
 | |
| 		</div>    
 | |
|     </div>     
 | |
| </div>
 | |
| 
 | |
| <!--  top buttons (begin) -->
 | |
| <div id="top_buttons"> 
 | |
|     <div class="actionpanel_button_wrapper" id="add_host_button">
 | |
|         <div class="actionpanel_button">
 | |
|             <div class="actionpanel_button_icons">
 | |
|                 <img src="images/addvm_actionicon.png" alt='<fmt:message key="label.add.host"/>' /></div>
 | |
|             <div class="actionpanel_button_links">
 | |
|                 <fmt:message key="label.add.host"/>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
|     <div class="actionpanel_button_wrapper" id="add_primarystorage_button">
 | |
|         <div class="actionpanel_button">
 | |
|             <div class="actionpanel_button_icons">
 | |
|                 <img src="images/addvm_actionicon.png" alt='<fmt:message key="label.add.primary.storage"/>' /></div>
 | |
|             <div class="actionpanel_button_links">
 | |
|                 <fmt:message key="label.add.primary.storage"/>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </div>
 | |
| <!--  top buttons (end) -->
 | |
| 
 | |
| <!-- Add Host Dialog -->
 | |
| <div id="dialog_add_host" title='<fmt:message key="label.add.host"/>' style="display: none">
 | |
|     <p><fmt:message key="message.add.host"/> 
 | |
|     </p>
 | |
|     <div class="dialog_formcontent">
 | |
|         <form action="#" method="post" id="form_acquire">
 | |
|         <ol>  
 | |
|             <li>
 | |
|                 <label>
 | |
|                     <fmt:message key="label.cluster"/>:</label>
 | |
|                 <select class="select" id="cluster_select">
 | |
|                 </select>
 | |
|                 <div id="cluster_select_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>                
 | |
|             <li input_group="general">
 | |
|                 <label for="host_hostname">
 | |
|                     <fmt:message key="label.host.name"/>:</label>
 | |
|                 <input class="text" type="text" name="host_hostname" id="host_hostname" />
 | |
|                 <div id="host_hostname_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="general">
 | |
|                 <label for="user_name">
 | |
|                    <fmt:message key="label.username"/>:</label>
 | |
|                 <input class="text" type="text" name="host_username" id="host_username" />
 | |
|                 <div id="host_username_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="general">
 | |
|                 <label for="user_name">
 | |
|                     <fmt:message key="label.password"/>:</label>
 | |
|                 <input class="text" type="password" name="host_password" id="host_password" autocomplete="off" />
 | |
|                 <div id="host_password_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| <!--  
 | |
|             <li input_group="vmware" style="display: none;">
 | |
|                 <label for="host_vcenter_address">
 | |
|                     <fmt:message key="label.vcenter.host"/>:</label>
 | |
|                 <input class="text" type="text" name="host_vcenter_address" id="host_vcenter_address" />
 | |
|                 <div id="host_vcenter_address_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="vmware" style="display: none;">
 | |
|                 <label for="host_vcenter_username">
 | |
|                     <fmt:message key="label.vcenter.username"/>:</label>
 | |
|                 <input class="text" type="text" name="host_vcenter_username" id="host_vcenter_username" />
 | |
|                 <div id="host_vcenter_username_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="vmware" style="display: none;">
 | |
|                 <label for="host_vcenter_password">
 | |
|                     <fmt:message key="label.vcenter.password"/>:</label>
 | |
|                 <input class="text" type="password" name="host_vcenter_password" id="host_vcenter_password" autocomplete="off" />
 | |
|                 <div id="host_vcenter_password_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="vmware" style="display: none;">
 | |
|                 <label for="host_vcenter_dc">
 | |
|                     <fmt:message key="label.vcenter.datacenter"/>:</label>
 | |
|                 <input class="text" type="text" name="host_vcenter_dc" id="host_vcenter_dc" />
 | |
|                 <div id="host_vcenter_dc_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| -->            
 | |
|             <li input_group="vmware" style="display: none;">
 | |
|                 <label for="host_vcenter_host">
 | |
|                     <fmt:message key="label.esx.host"/>:</label>
 | |
|                 <input class="text" type="text" name="host_vcenter_host" id="host_vcenter_host" />
 | |
|                 <div id="host_vcenter_host_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| 			<li input_group="baremetal" style="display: none;">
 | |
|                 <label for="host_baremetal_cpucores">
 | |
|                     # of CPU Cores:</label>
 | |
|                 <input class="text" type="text" name="host_baremetal_cpucores" id="host_baremetal_cpucores" />
 | |
|                 <div id="host_baremetal_cpucores_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| 			<li input_group="baremetal" style="display: none;">
 | |
|                 <label for="host_baremetal_cpu">
 | |
|                     CPU (in MHz):</label>
 | |
|                 <input class="text" type="text" name="host_baremetal_cpu" id="host_baremetal_cpu" />
 | |
|                 <div id="host_baremetal_cpu_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| 			<li input_group="baremetal" style="display: none;">
 | |
|                 <label for="host_baremetal_memory">
 | |
|                     Memory (in MB):</label>
 | |
|                 <input class="text" type="text" name="host_baremetal_memory" id="host_baremetal_memory" />
 | |
|                 <div id="host_baremetal_memory_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| 			<li input_group="baremetal" style="display: none;">
 | |
|                 <label for="host_baremetal_mac">
 | |
|                     Host MAC:</label>
 | |
|                 <input class="text" type="text" name="host_baremetal_mac" id="host_baremetal_mac" />
 | |
|                 <div id="host_baremetal_mac_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="Ovm" style="display: none;">
 | |
|                 <label>
 | |
|                     Agent Username:</label>
 | |
|                 <input class="text" type="text" id="agent_username" value="oracle" />
 | |
|                 <div id="agent_username_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
| 			<li input_group="Ovm" style="display: none;">
 | |
|                 <label>
 | |
|                     Agent Password:</label>
 | |
|                 <input class="text" type="password" id="agent_password" />
 | |
|                 <div id="agent_password_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>          
 | |
| 			<li>
 | |
|                 <label input_group="general">                    
 | |
| 					<fmt:message key="label.host.tags"/>:</label>
 | |
|                 <input class="text" type="text" name="host_tags" id="host_tags" />
 | |
|                 <div id="host_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|         </ol>
 | |
|         </form>
 | |
|     </div>
 | |
|     <!--Loading box-->
 | |
|     <div id="spinning_wheel" class="ui_dialog_loaderbox" style="display: none;">
 | |
|         <div class="ui_dialog_loader">
 | |
|         </div>
 | |
|         <p>
 | |
|             <fmt:message key="label.adding"/>....</p>
 | |
|     </div>
 | |
|     <!--Confirmation msg box-->
 | |
|     <!--Note: for error msg, just have to add error besides everything for eg. add error(class) next to ui_dialog_messagebox error, ui_dialog_msgicon error, ui_dialog_messagebox_text error.  -->
 | |
|     <div id="info_container" class="ui_dialog_messagebox error" style="display: none;">
 | |
|         <div id="icon" class="ui_dialog_msgicon error">
 | |
|         </div>
 | |
|         <div id="info" class="ui_dialog_messagebox_text error">
 | |
|             (info)</div>
 | |
|     </div>
 | |
| </div>
 | |
| <!-- Add Primary Storage Dialog -->
 | |
| <div id="dialog_add_pool" title='<fmt:message key="label.add.primary.storage"/>' style="display: none">
 | |
|     <p>
 | |
| 		<fmt:message key="message.add.primary"/>
 | |
|     </p>
 | |
|     <div class="dialog_formcontent">
 | |
|         <form action="#" method="post" id="form_acquire">
 | |
|         <ol>
 | |
|             <li id="pool_cluster_container">
 | |
|                 <label for="pool_cluster">
 | |
|                     <fmt:message key="label.cluster"/>:</label>
 | |
|                 <select class="select" id="pool_cluster">
 | |
|                 </select>
 | |
|                 <div id="pool_cluster_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li>
 | |
|                 <label for="user_name">
 | |
|                     <fmt:message key="label.name"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_name" id="add_pool_name" />
 | |
|                 <div id="add_pool_name_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li>
 | |
|                 <label for="add_pool_protocol">
 | |
|                     <fmt:message key="label.protocol"/>:</label>
 | |
|                 <select class="select" id="add_pool_protocol">                   
 | |
|                 </select>
 | |
|             </li>
 | |
|             <li id="add_pool_server_container">
 | |
|                 <label for="add_pool_nfs_server">
 | |
|                     <fmt:message key="label.server"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_nfs_server" id="add_pool_nfs_server" />
 | |
|                 <div id="add_pool_nfs_server_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li id="add_pool_path_container" input_group="nfs">
 | |
|                 <label for="add_pool_path">
 | |
|                     <fmt:message key="label.path"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_path" id="add_pool_path" />
 | |
|                 <div id="add_pool_path_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li id="add_pool_iqn_container" style="display: none" input_group="iscsi">
 | |
|                 <label for="add_pool_iqn">
 | |
|                     <fmt:message key="label.target.iqn"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_iqn" id="add_pool_iqn" />
 | |
|                 <div id="add_pool_iqn_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li id="add_pool_lun_container" style="display: none" input_group="iscsi">
 | |
|                 <label for="add_pool_lun">
 | |
|                     <fmt:message key="label.lun"/> #:</label>
 | |
|                 <input class="text" type="text" name="add_pool_lun" id="add_pool_lun" />
 | |
|                 <div id="add_pool_lun_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li id="add_pool_clvm_vg_container" style="display: none" input_group="clvm">
 | |
|                 <label for="add_pool_clvm_vg">
 | |
|                     <fmt:message key="label.volgroup"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_clvm_vg" id="add_pool_clvm_vg" />
 | |
|                 <div id="add_pool_clvm_vg_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="vmfs">
 | |
|                 <label for="add_pool_vmfs_dc">
 | |
|                     <fmt:message key="label.vcenter.datacenter"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_vmfs_dc" id="add_pool_vmfs_dc" />
 | |
|                 <div id="add_pool_vmfs_dc_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li input_group="vmfs">
 | |
|                 <label for="add_pool_vmfs_ds">
 | |
|                     <fmt:message key="label.vcenter.datastore"/>:</label>
 | |
|                 <input class="text" type="text" name="add_pool_vmfs_ds" id="add_pool_vmfs_ds" />
 | |
|                 <div id="add_pool_vmfs_ds_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|             <li id="add_pool_tags_container">
 | |
|                 <label for="add_pool_tags">
 | |
|                     <fmt:message key="label.storage.tags"/>:</label>
 | |
|                 <input class="text" type="text" id="add_pool_tags" />
 | |
|                 <div id="add_pool_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
 | |
|                 </div>
 | |
|             </li>
 | |
|         </ol>
 | |
|         </form>
 | |
|     </div>
 | |
|     <!--Loading box-->
 | |
|     <div id="spinning_wheel" class="ui_dialog_loaderbox" style="display: none;">
 | |
|         <div class="ui_dialog_loader">
 | |
|         </div>
 | |
|         <p>
 | |
|             <fmt:message key="label.adding"/>....</p>
 | |
|     </div>
 | |
|     <!--Confirmation msg box-->
 | |
|     <!--Note: for error msg, just have to add error besides everything for eg. add error(class) next to ui_dialog_messagebox error, ui_dialog_msgicon error, ui_dialog_messagebox_text error.  -->
 | |
|     <div id="info_container" class="ui_dialog_messagebox error" style="display: none;">
 | |
|         <div id="icon" class="ui_dialog_msgicon error">
 | |
|         </div>
 | |
|         <div id="info" class="ui_dialog_messagebox_text error">
 | |
|             (info)</div>
 | |
|     </div>
 | |
| </div> |