mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Feature #1004: Improve translation support
This commit sets all 'tr' calls in the same form, so they can be easily matched and grep-ed. This way, a small script (generate_translation_template.rb) allows the automatic generation of the template translation, containing all the strings that can be translatable from the application. This script is not installed. An empty default en_US generated translation has been added, which can be also used as templates for new translations. Documentation, community, support, sign out, welcome, strings from the main view are now translated as well.
This commit is contained in:
1 parent
b402ab4f8b
commit
7cfd3d53f6
17 files changed
+1024
-502
No files matched your search
+3
-1
@@ -1087,7 +1087,9 @@ SUNSTONE_PUBLIC_IMAGES_FILES="src/sunstone/public/images/ajax-loader.gif \
|
||||
src/sunstone/public/images/vnc_off.png \
|
||||
src/sunstone/public/images/vnc_on.png"
|
||||
|
||||
SUNSTONE_PUBLIC_LOCALE_EN_US=""
|
||||
SUNSTONE_PUBLIC_LOCALE_EN_US="\
|
||||
src/sunstone/public/locale/en_US/en_US.js \
|
||||
"
|
||||
|
||||
SUNSTONE_PUBLIC_LOCALE_RU="
|
||||
src/sunstone/public/locale/ru/ru.js \
|
||||
|
||||
@@ -40,9 +40,14 @@ function refreshLang(){
|
||||
|
||||
$(document).ready(function(){
|
||||
if (lang)
|
||||
$('#lang_sel option[value="'+lang+'"]').attr("selected","selected");
|
||||
$('#lang_sel option[value="'+lang+'"]').attr('selected','selected');
|
||||
$('#lang_sel').change(function(){
|
||||
setLang($(this).val());
|
||||
});
|
||||
|
||||
$('#doc_link').text(tr("Documentation"));
|
||||
$('#support_link').text(tr("Support"));
|
||||
$('#community_link').text(tr("Community"));
|
||||
$('#welcome').text(tr("Welcome"));
|
||||
$('#logout').text(tr("Sign out"));
|
||||
});
|
||||
@@ -42,7 +42,7 @@ var create_acl_tmpl =
|
||||
'<form id="create_acl_form" action="">\
|
||||
<fieldset>\
|
||||
<div>\
|
||||
<label for="applies">'+tr("This rule applies to:")+'</label>\
|
||||
<label for="applies">'+tr("This rule applies to")+':</label>\
|
||||
<select name="applies" id="applies"></select>\
|
||||
<div class="clear"></div>\
|
||||
<label style="height:9em">'+tr("Affected resources")+':</label>\
|
||||
@@ -54,12 +54,12 @@ var create_acl_tmpl =
|
||||
<input type="checkbox" name="res_user" class="resource_cb" value="USER">'+tr("Users")+'</input><br />\
|
||||
<input type="checkbox" name="res_group" class="resource_cb" value="GROUP">'+tr("Groups")+'</input><br />\
|
||||
<div class="clear"></div>\
|
||||
<label for="mode_select" style="height:3em;">'+tr("Resource subset:")+'</label>\
|
||||
<label for="mode_select" style="height:3em;">'+tr("Resource subset")+':</label>\
|
||||
<input type="radio" class="res_subgroup" name="mode_select" value="*" id="res_subgroup_all">'+tr("All")+'</input><br />\
|
||||
<input type="radio" class="res_subgroup" name="mode_select" value="res_id" id="res_subgroup_id">'+tr("Specific ID")+'</input><br />\
|
||||
<input type="radio" class="res_subgroup" name="mode_select" value="belonging_to" id="res_subgroup_group">'+tr("Owned by group")+'</input><br />\
|
||||
<div class="clear"></div>\
|
||||
<label for="res_id">'+tr("Resource ID:")+'</label>\
|
||||
<label for="res_id">'+tr("Resource ID")+':</label>\
|
||||
<input type="text" name="res_id" id="res_id"></input>\
|
||||
<div class="clear"></div>\
|
||||
<label for="belonging_to">'+tr("Group")+':</label>\
|
||||
@@ -76,7 +76,7 @@ var create_acl_tmpl =
|
||||
<input type="checkbox" name="right_chown" class="right_cb" value="CHOWN">'+tr("Change owner")+'</input><br />\
|
||||
<input type="checkbox" name="right_deploy" class="right_cb" value="DEPLOY">'+tr("Deploy")+'</input><br />\
|
||||
<div class="clear"></div>\
|
||||
<label for="acl_preview">'+tr("ACL String preview:")+'</label>\
|
||||
<label for="acl_preview">'+tr("ACL String preview")+':</label>\
|
||||
<input type="text" name="acl_preview" id="acl_preview" style="width:400px;"></input>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -316,9 +316,9 @@ function setupCreateAclDialog(){
|
||||
height: height
|
||||
});
|
||||
|
||||
$('#res_subgroup_all',dialog).attr("checked","checked");
|
||||
$('#res_id',dialog).attr("disabled","disabled");
|
||||
$('#belonging_to',dialog).attr("disabled","disabled");
|
||||
$('#res_subgroup_all',dialog).attr('checked','checked');
|
||||
$('#res_id',dialog).attr('disabled','disabled');
|
||||
$('#belonging_to',dialog).attr('disabled','disabled');
|
||||
|
||||
$('button',dialog).button();
|
||||
|
||||
@@ -327,16 +327,16 @@ function setupCreateAclDialog(){
|
||||
var context = $(this).parent();
|
||||
switch (value) {
|
||||
case "*":
|
||||
$('#res_id',context).attr("disabled","disabled");
|
||||
$('#belonging_to',context).attr("disabled","disabled");
|
||||
$('#res_id',context).attr('disabled','disabled');
|
||||
$('#belonging_to',context).attr('disabled','disabled');
|
||||
break;
|
||||
case "res_id":
|
||||
$('#res_id',context).removeAttr("disabled");
|
||||
$('#belonging_to').attr("disabled","disabled");
|
||||
$('#res_id',context).removeAttr('disabled');
|
||||
$('#belonging_to').attr('disabled','disabled');
|
||||
break;
|
||||
case "belonging_to":
|
||||
$('#res_id',context).attr("disabled","disabled");
|
||||
$('#belonging_to',context).removeAttr("disabled");
|
||||
$('#res_id',context).attr('disabled','disabled');
|
||||
$('#belonging_to',context).removeAttr('disabled');
|
||||
break;
|
||||
};
|
||||
});
|
||||
@@ -461,7 +461,7 @@ function popUpCreateAclDialog(){
|
||||
function setAclAutorefresh(){
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_acls);
|
||||
var filter = $("#datatable_acls_filter input",dataTable_acls.parents("#datatable_acls_wrapper")).attr("value");
|
||||
var filter = $("#datatable_acls_filter input",dataTable_acls.parents("#datatable_acls_wrapper")).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Acl.autorefresh");
|
||||
}
|
||||
|
||||
@@ -50,40 +50,44 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>' + tr('Summary of resources') + '</h3>\
|
||||
<h3>' + tr("Summary of resources") + '</h3>\
|
||||
<div class="panel_info">\
|
||||
\
|
||||
<table class="info_table">\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Hosts (total/active)') + '</td>\
|
||||
<td class="key_td">' + tr("Hosts (total/active)") + '</td>\
|
||||
<td class="value_td"><span id="total_hosts"></span><span id="active_hosts" class="green"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Groups') + '</td>\
|
||||
<td class="key_td">' + tr("Groups") + '</td>\
|
||||
<td class="value_td"><span id="total_groups"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('VM Templates (total/public)') + '</td>\
|
||||
<td class="key_td">' + tr("VM Templates (total/public)") + '</td>\
|
||||
<td class="value_td"><span id="total_templates"></span><span id="public_templates"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('VM Instances')+' (' + tr('total') + '/<span class="green">' + tr('running') + '</span>/<span class="red">' + tr('failed') + '</span>)</td>\
|
||||
<td class="key_td">' +
|
||||
tr("VM Instances")+ ' (' +
|
||||
tr("total") + '/<span class="green">' +
|
||||
tr("running") + '</span>/<span class="red">' +
|
||||
tr("failed") + '</span>)</td>\
|
||||
<td class="value_td"><span id="total_vms"></span><span id="running_vms" class="green"></span><span id="failed_vms" class="red"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Virtual Networks (total/public)') + '</td>\
|
||||
<td class="key_td">' + tr("Virtual Networks (total/public)") + '</td>\
|
||||
<td class="value_td"><span id="total_vnets"></span><span id="public_vnets"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Images (total/public)') + '</td>\
|
||||
<td class="key_td">' + tr("Images (total/public)") + '</td>\
|
||||
<td class="value_td"><span id="total_images"></span><span id="public_images"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Users')+'</td>\
|
||||
<td class="key_td">' + tr("Users")+'</td>\
|
||||
<td class="value_td"><span id="total_users"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('ACL Rules') + '</td>\
|
||||
<td class="key_td">' + tr("ACL Rules") + '</td>\
|
||||
<td class="value_td"><span id="total_acls"></span></td>\
|
||||
</tr>\
|
||||
</table>\
|
||||
@@ -95,18 +99,18 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>' + tr('Quickstart') + '</h3>\
|
||||
<h3>' + tr("Quickstart") + '</h3>\
|
||||
<form id="quickstart_form"><fieldset>\
|
||||
<table style="width:100%;"><tr style="vertical-align:middle;"><td style="width:70%">\
|
||||
<label style="font-weight:bold;width:40px;height:10em;">' + tr('New: ') + '</label>\
|
||||
<input type="radio" name="quickstart" value="Host.create_dialog">' + tr('Host') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="VM.create_dialog">' + tr('VM Instance') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Template.create_dialog">' + tr('VM Template') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Network.create_dialog">' + tr('Virtual Network') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Image.create_dialog">' + tr('Image') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="User.create_dialog">' + tr('User') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Group.create_dialog">' + tr('Group') + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Acl.create_dialog">' + tr('Acl') + '</input><br />\
|
||||
<label style="font-weight:bold;width:40px;height:10em;">' + tr("New")+': </label>\
|
||||
<input type="radio" name="quickstart" value="Host.create_dialog">' + tr("Host") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="VM.create_dialog">' + tr("VM Instance") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Template.create_dialog">' + tr("VM Template") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Network.create_dialog">' + tr("Virtual Network") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Image.create_dialog">' + tr("Image") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="User.create_dialog">' + tr("User") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Group.create_dialog">' + tr("Group") + '</input><br />\
|
||||
<input type="radio" name="quickstart" value="Acl.create_dialog">' + tr("Acl") + '</input><br />\
|
||||
</td></tr></table>\
|
||||
</div>\
|
||||
</td>\
|
||||
@@ -118,19 +122,19 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>' + tr('Historical monitoring information') + '</h3>\
|
||||
<h3>' + tr("Historical monitoring information") + '</h3>\
|
||||
<div class="panel_info">\
|
||||
<table class="info_table">\
|
||||
<tr><td class="key_td graph_td">' + tr('Hosts CPU') + '</td>\
|
||||
<tr><td class="key_td graph_td">' + tr("Hosts CPU") + '</td>\
|
||||
<td class="graph_td" id="graph1_legend"></td></tr>\
|
||||
<tr><td id="graph1" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">' + tr('Hosts memory') + '</td>\
|
||||
<tr><td class="key_td graph_td">' + tr("Hosts memory") + '</td>\
|
||||
<td class="graph_td" id="graph2_legend"></td></tr>\
|
||||
<tr><td id="graph2" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">' + tr('Total VM count') + '</td>\
|
||||
<tr><td class="key_td graph_td">' + tr("Total VM count") + '</td>\
|
||||
<td class="graph_td" id="graph3_legend"></td></tr>\
|
||||
<tr><td id="graph3" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">' + tr('VM Network stats') + '</td>\
|
||||
<tr><td class="key_td graph_td">' + tr("VM Network stats") + '</td>\
|
||||
<td class="graph_td" id="graph4_legend"></td></tr>\
|
||||
<tr><td id="graph4" colspan="2">'+spinner+'</td></tr>\
|
||||
</table>\
|
||||
@@ -143,7 +147,7 @@ var dashboard_tab_content =
|
||||
</tr></table>';
|
||||
|
||||
var dashboard_tab = {
|
||||
title: tr('Dashboard'),
|
||||
title: tr("Dashboard"),
|
||||
content: dashboard_tab_content
|
||||
}
|
||||
|
||||
|
||||
@@ -50,24 +50,27 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>'+tr('Summary of resources')+'</h3>\
|
||||
<h3>'+tr("Summary of resources")+'</h3>\
|
||||
<div class="panel_info">\
|
||||
\
|
||||
<table class="info_table">\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('VM Templates (total/public)')+'</td>\
|
||||
<td class="key_td">'+tr("VM Templates (total/public)")+'</td>\
|
||||
<td class="value_td"><span id="total_templates"></span><span id="public_templates"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('VM Instances')+' ('+tr('total')+'/<span class="green">'+tr('running')+'</span>/<span class="red">'+tr('failed')+'</span>)</td>\
|
||||
<td class="key_td">'+tr("VM Instances")+' ('+
|
||||
tr("total")+'/<span class="green">'+
|
||||
tr("running")+'</span>/<span class="red">'+
|
||||
tr("failed")+'</span>)</td>\
|
||||
<td class="value_td"><span id="total_vms"></span><span id="running_vms" class="green"></span><span id="failed_vms" class="red"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Virtual Networks (total/public)')+'</td>\
|
||||
<td class="key_td">'+tr("Virtual Networks (total/public)")+'</td>\
|
||||
<td class="value_td"><span id="total_vnets"></span><span id="public_vnets"></span></td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Images (total/public)')+'</td>\
|
||||
<td class="key_td">'+tr("Images (total/public)")+'</td>\
|
||||
<td class="value_td"><span id="total_images"></span><span id="public_images"></span></td>\
|
||||
</tr>\
|
||||
</table>\
|
||||
@@ -79,14 +82,14 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>'+tr('Quickstart')+'</h3>\
|
||||
<h3>'+tr("Quickstart")+'</h3>\
|
||||
<form id="quickstart_form"><fieldset>\
|
||||
<table style="width:100%;"><tr style="vertical-align:middle;"><td style="width:70%">\
|
||||
<label style="font-weight:bold;width:40px;height:4em;">New:</label>\
|
||||
<input type="radio" name="quickstart" value="Template.create_dialog">'+tr('VM Template')+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="VM.create_dialog">'+tr('VM Instance')+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="Network.create_dialog">'+tr('Virtual Network')+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="Image.create_dialog">'+tr('Image')+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="Template.create_dialog">'+tr("VM Template")+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="VM.create_dialog">'+tr("VM Instance")+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="Network.create_dialog">'+tr("Virtual Network")+'</input><br />\
|
||||
<input type="radio" name="quickstart" value="Image.create_dialog">'+tr("Image")+'</input><br />\
|
||||
</td></tr></table>\
|
||||
</div>\
|
||||
</td>\
|
||||
@@ -98,19 +101,19 @@ var dashboard_tab_content =
|
||||
<tr>\
|
||||
<td>\
|
||||
<div class="panel">\
|
||||
<h3>'+tr('Historical monitoring information')+'</h3>\
|
||||
<h3>'+tr("Historical monitoring information")+'</h3>\
|
||||
<div class="panel_info">\
|
||||
<table class="info_table">\
|
||||
<tr><td class="key_td graph_td">'+tr('Total VM count')+'</td>\
|
||||
<tr><td class="key_td graph_td">'+tr("Total VM count")+'</td>\
|
||||
<td class="graph_td" id="graph1_legend"></td></tr>\
|
||||
<tr><td id="graph1" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">'+tr('Total VM CPU')+'</td>\
|
||||
<tr><td class="key_td graph_td">'+tr("Total VM CPU")+'</td>\
|
||||
<td class="graph_td" id="graph2_legend"></td></tr>\
|
||||
<tr><td id="graph2" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">'+tr('Total VM Memory')+'</td>\
|
||||
<tr><td class="key_td graph_td">'+tr("Total VM Memory")+'</td>\
|
||||
<td class="graph_td" id="graph3_legend"></td></tr>\
|
||||
<tr><td id="graph3" colspan="2">'+spinner+'</td></tr>\
|
||||
<tr><td class="key_td graph_td">'+tr('VM Network stats')+'</td>\
|
||||
<tr><td class="key_td graph_td">'+tr("VM Network stats")+'</td>\
|
||||
<td class="graph_td" id="graph4_legend"></td></tr>\
|
||||
<tr><td id="graph4" colspan="2">'+spinner+'</td></tr>\
|
||||
</table>\
|
||||
@@ -123,7 +126,7 @@ var dashboard_tab_content =
|
||||
</tr></table>';
|
||||
|
||||
var dashboard_tab = {
|
||||
title: tr('Dashboard'),
|
||||
title: tr("Dashboard"),
|
||||
content: dashboard_tab_content
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ var create_group_tmpl =
|
||||
'<form id="create_group_form" action="">\
|
||||
<fieldset style="border:none;">\
|
||||
<div>\
|
||||
<label for="name">'+tr("Group name:")+'</label>\
|
||||
<label for="name">'+tr("Group name")+':</label>\
|
||||
<input type="text" name="name" id="name" /><br />\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -259,7 +259,7 @@ function popUpCreateGroupDialog(){
|
||||
function setGroupAutorefresh(){
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_groups);
|
||||
var filter = $("#datatable_groups_filter input",dataTable_groups.parents("#datatable_groups_wrapper")).attr("value");
|
||||
var filter = $("#datatable_groups_filter input",dataTable_groups.parents("#datatable_groups_wrapper")).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Group.autorefresh");
|
||||
}
|
||||
|
||||
@@ -40,13 +40,13 @@ var hosts_tab_content =
|
||||
<table id="datatable_hosts" class="display">\
|
||||
<thead>\
|
||||
<tr>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">' + tr('All') + '</input></th>\
|
||||
<th>' + tr('id') + '</th>\
|
||||
<th>' + tr('Name') + '</th>\
|
||||
<th>' + tr('Running VMs') + '</th>\
|
||||
<th>' + tr('CPU Use') + '</th>\
|
||||
<th>' + tr('Memory use') + '</th>\
|
||||
<th>' + tr('Status') + '</th>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">' + tr("All") + '</input></th>\
|
||||
<th>' + tr("id") + '</th>\
|
||||
<th>' + tr("Name") + '</th>\
|
||||
<th>' + tr("Running VMs") + '</th>\
|
||||
<th>' + tr("CPU Use") + '</th>\
|
||||
<th>' + tr("Memory use") + '</th>\
|
||||
<th>' + tr("Status") + '</th>\
|
||||
</tr>\
|
||||
</thead>\
|
||||
<tbody id="tbodyhosts">\
|
||||
@@ -57,42 +57,42 @@ var hosts_tab_content =
|
||||
var create_host_tmpl =
|
||||
'<div class="create_form"><form id="create_host_form" action="">\
|
||||
<fieldset>\
|
||||
<legend style="display:none;">' + tr('Host parameters') + '</legend>\
|
||||
<label for="name">' + tr('Name') + ':</label><input type="text" name="name" id="name" />\
|
||||
<legend style="display:none;">' + tr("Host parameters") + '</legend>\
|
||||
<label for="name">' + tr("Name") + ':</label><input type="text" name="name" id="name" />\
|
||||
</fieldset>\
|
||||
<h3>' + tr('Drivers') + '</h3>\
|
||||
<h3>' + tr("Drivers") + '</h3>\
|
||||
<fieldset>\
|
||||
<div class="manager clear" id="vmm_mads">\
|
||||
<label>' + tr('Virtualization Manager:') + '</label>\
|
||||
<label>' + tr("Virtualization Manager") + ':</label>\
|
||||
<select id="vmm_mad" name="vmm">\
|
||||
<option value="vmm_kvm">' + tr('KVM') + '</option>\
|
||||
<option value="vmm_xen">' + tr('XEN') + '</option>\
|
||||
<option value="vmm_ec2">' + tr('EC2') + '</option>\
|
||||
<option value="vmm_dummy">' + tr('Dummy') + '</option>\
|
||||
<option value="vmm_kvm">' + tr("KVM") + '</option>\
|
||||
<option value="vmm_xen">' + tr("XEN") + '</option>\
|
||||
<option value="vmm_ec2">' + tr("EC2") + '</option>\
|
||||
<option value="vmm_dummy">' + tr("Dummy") + '</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
<div class="manager clear" id="im_mads">\
|
||||
<label>' + tr('Information Manager:') + '</label>\
|
||||
<label>' + tr("Information Manager") + ':</label>\
|
||||
<select id="im_mad" name="im">\
|
||||
<option value="im_kvm">' + tr('KVM') + '</option>\
|
||||
<option value="im_xen">' + tr('XEN') + '</option>\
|
||||
<option value="im_ec2">' + tr('EC2') + '</option>\
|
||||
<option value="im_dummy">' + tr('Dummy') + '</option>\
|
||||
<option value="im_kvm">' + tr("KVM") + '</option>\
|
||||
<option value="im_xen">' + tr("XEN") + '</option>\
|
||||
<option value="im_ec2">' + tr("EC2") + '</option>\
|
||||
<option value="im_dummy">' + tr("Dummy") + '</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
<div class="manager clear" id="tm_mads">\
|
||||
<label>' + tr('Transfer Manager:') + '</label>\
|
||||
<label>' + tr("Transfer Manager") + ':</label>\
|
||||
<select id="tm_mad" name="tm">\
|
||||
<option value="tm_shared">' + tr('SHARED') + '</option>\
|
||||
<option value="tm_ssh">' + tr('SSH') + '</option>\
|
||||
<option value="tm_dummy">' + tr('Dummy') + '</option>\
|
||||
<option value="tm_shared">' + tr("Shared") + '</option>\
|
||||
<option value="tm_ssh">' + tr("SSH") + '</option>\
|
||||
<option value="tm_dummy">' + tr("Dummy") + '</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<div><button class="button" id="create_host_submit" value="OpenNebula.Host.create">' + tr('Create') + '</button>\
|
||||
<button class="button" type="reset" value="reset">' + tr('Reset') + '</button></div>\
|
||||
<div><button class="button" id="create_host_submit" value="OpenNebula.Host.create">' + tr("Create") + '</button>\
|
||||
<button class="button" type="reset" value="reset">' + tr("Reset") + '</button></div>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
</form></div>';
|
||||
@@ -286,7 +286,7 @@ var host_info_panel = {
|
||||
|
||||
|
||||
var hosts_tab = {
|
||||
title: tr('Hosts'),
|
||||
title: tr("Hosts"),
|
||||
content: hosts_tab_content,
|
||||
buttons: host_buttons
|
||||
}
|
||||
@@ -424,58 +424,58 @@ function updateHostInfo(request,host){
|
||||
content :
|
||||
'<table id="info_host_table" class="info_table">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">' + tr('Host information') + ' - '+host_info.NAME+'</th></tr>\
|
||||
<tr><th colspan="2">' + tr("Host information") + ' - '+host_info.NAME+'</th></tr>\
|
||||
</thead>\
|
||||
<tbody>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('id') + '</td>\
|
||||
<td class="key_td">' + tr("id") + '</td>\
|
||||
<td class="value_td">'+host_info.ID+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('State') + '</td>\
|
||||
<td class="key_td">' + tr("State") + '</td>\
|
||||
<td class="value_td">'+tr(OpenNebula.Helper.resource_state("host",host_info.STATE))+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('IM MAD') + '</td>\
|
||||
<td class="key_td">' + tr("IM MAD") + '</td>\
|
||||
<td class="value_td">'+host_info.IM_MAD+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('VM MAD') + '</td>\
|
||||
<td class="key_td">' + tr("VM MAD") + '</td>\
|
||||
<td class="value_td">'+host_info.VM_MAD+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('TM MAD') + '</td>\
|
||||
<td class="key_td">' + tr("TM MAD") + '</td>\
|
||||
<td class="value_td">'+host_info.TM_MAD+'</td>\
|
||||
</tr>\
|
||||
</tbody>\
|
||||
</table>\
|
||||
<table id="host_shares_table" class="info_table">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">' + tr('Host shares') + '</th></tr>\
|
||||
<tr><th colspan="2">' + tr("Host shares") + '</th></tr>\
|
||||
</thead>\
|
||||
<tbody>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Max Mem') + '</td>\
|
||||
<td class="key_td">' + tr("Max Mem") + '</td>\
|
||||
<td class="value_td">'+humanize_size(host_info.HOST_SHARE.MAX_MEM)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Used Mem (real)') + '</td>\
|
||||
<td class="key_td">' + tr("Used Mem (real)") + '</td>\
|
||||
<td class="value_td">'+humanize_size(host_info.HOST_SHARE.USED_MEM)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Used Mem (allocated)') + '</td>\
|
||||
<td class="key_td">' + tr("Used Mem (allocated)") + '</td>\
|
||||
<td class="value_td">'+humanize_size(host_info.HOST_SHARE.MAX_USAGE)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Used CPU (real)') + '</td>\
|
||||
<td class="key_td">' + tr("Used CPU (real)") + '</td>\
|
||||
<td class="value_td">'+host_info.HOST_SHARE.USED_CPU+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Used CPU (allocated)') + '</td>\
|
||||
<td class="key_td">' + tr("Used CPU (allocated)") + '</td>\
|
||||
<td class="value_td">'+host_info.HOST_SHARE.CPU_USAGE+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">' + tr('Running VMs') + '</td>\
|
||||
<td class="key_td">' + tr("Running VMs") + '</td>\
|
||||
<td class="value_td">'+host_info.HOST_SHARE.RUNNING_VMS+'</td>\
|
||||
</tr>\
|
||||
</tbody>\
|
||||
@@ -487,7 +487,7 @@ function updateHostInfo(request,host){
|
||||
title : tr("Host template"),
|
||||
content :
|
||||
'<table id="host_template_table" class="info_table" style="width:80%">\
|
||||
<thead><tr><th colspan="2">' + tr('Host template') + '</th></tr></thead>'+
|
||||
<thead><tr><th colspan="2">' + tr("Host template") + '</th></tr></thead>'+
|
||||
prettyPrintJSON(host_info.TEMPLATE)+
|
||||
'</table>'
|
||||
}
|
||||
@@ -559,7 +559,7 @@ function popUpCreateHostDialog(){
|
||||
function setHostAutorefresh() {
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_hosts);
|
||||
var filter = $("#datatable_hosts_filter input",dataTable_hosts.parents('#datatable_hosts_wrapper')).attr("value");
|
||||
var filter = $("#datatable_hosts_filter input",dataTable_hosts.parents('#datatable_hosts_wrapper')).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Host.autorefresh");
|
||||
}
|
||||
|
||||
@@ -23,18 +23,18 @@ var images_tab_content =
|
||||
<table id="datatable_images" class="display">\
|
||||
<thead>\
|
||||
<tr>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">'+tr('All')+'</input></th>\
|
||||
<th>'+tr('ID')+'</th>\
|
||||
<th>'+tr('Owner')+'</th>\
|
||||
<th>'+tr('Group')+'</th>\
|
||||
<th>'+tr('Name')+'</th>\
|
||||
<th>'+tr('Size')+'</th>\
|
||||
<th>'+tr('Type')+'</th>\
|
||||
<th>'+tr('Registration time')+'</th>\
|
||||
<th>'+tr('Public')+'</th>\
|
||||
<th>'+tr('Persistent')+'</th>\
|
||||
<th>'+tr('Status')+'</th>\
|
||||
<th>'+tr('#VMS')+'</th>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">'+tr("All")+'</input></th>\
|
||||
<th>'+tr("ID")+'</th>\
|
||||
<th>'+tr("Owner")+'</th>\
|
||||
<th>'+tr("Group")+'</th>\
|
||||
<th>'+tr("Name")+'</th>\
|
||||
<th>'+tr("Size")+'</th>\
|
||||
<th>'+tr("Type")+'</th>\
|
||||
<th>'+tr("Registration time")+'</th>\
|
||||
<th>'+tr("Public")+'</th>\
|
||||
<th>'+tr("Persistent")+'</th>\
|
||||
<th>'+tr("Status")+'</th>\
|
||||
<th>'+tr("#VMS")+'</th>\
|
||||
</tr>\
|
||||
</thead>\
|
||||
<tbody id="tbodyimages">\
|
||||
@@ -44,114 +44,116 @@ var images_tab_content =
|
||||
|
||||
var create_image_tmpl =
|
||||
'<div id="img_tabs">\
|
||||
<ul><li><a href="#img_easy">'+tr('Wizard')+'</a></li>\
|
||||
<li><a href="#img_manual">'+tr('Advanced mode')+'</a></li>\
|
||||
<ul><li><a href="#img_easy">'+tr("Wizard")+'</a></li>\
|
||||
<li><a href="#img_manual">'+tr("Advanced mode")+'</a></li>\
|
||||
</ul>\
|
||||
<div id="img_easy">\
|
||||
<form id="create_image_form_easy" action="">\
|
||||
<p style="font-size:0.8em;text-align:right;"><i>'+tr('Fields marked with')+' <span style="display:inline-block;" class="ui-icon ui-icon-alert" /> '+tr('are mandatory')+'</i><br />\
|
||||
<p style="font-size:0.8em;text-align:right;"><i>'+
|
||||
tr("Fields marked with")+' <span style="display:inline-block;" class="ui-icon ui-icon-alert" /> '+
|
||||
tr("are mandatory")+'</i><br />\
|
||||
<fieldset>\
|
||||
<div class="img_param img_man">\
|
||||
<label for="img_name">'+tr('Name')+':</label>\
|
||||
<label for="img_name">'+tr("Name")+':</label>\
|
||||
<input type="text" name="img_name" id="img_name" />\
|
||||
<div class="tip">'+tr('Name that the Image will get. Every image must have a unique name.')+'</div>\
|
||||
<div class="tip">'+tr("Name that the Image will get. Every image must have a unique name.")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_desc">'+tr('Description')+':</label>\
|
||||
<label for="img_desc">'+tr("Description")+':</label>\
|
||||
<textarea name="img_desc" id="img_desc" style="height:4em"></textarea>\
|
||||
<div class="tip">'+tr('Human readable description of the image for other users.')+'</div>\
|
||||
<div class="tip">'+tr("Human readable description of the image for other users.")+'</div>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="img_param">\
|
||||
<label for="img_type">'+tr('Type')+':</label>\
|
||||
<label for="img_type">'+tr("Type")+':</label>\
|
||||
<select name="img_type" id="img_type">\
|
||||
<option value="OS">'+tr('OS')+'</option>\
|
||||
<option value="CDROM">'+tr('CD-ROM')+'</option>\
|
||||
<option value="DATABLOCK">'+tr('Datablock')+'</option>\
|
||||
<option value="OS">'+tr("OS")+'</option>\
|
||||
<option value="CDROM">'+tr("CD-ROM")+'</option>\
|
||||
<option value="DATABLOCK">'+tr("Datablock")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Type of the image, explained in detail in the following section. If omitted, the default value is the one defined in oned.conf (install default is OS).')+'</div>\
|
||||
<div class="tip">'+tr("Type of the image, explained in detail in the following section. If omitted, the default value is the one defined in oned.conf (install default is OS).")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_public">'+tr('Public')+':</label>\
|
||||
<label for="img_public">'+tr("Public")+':</label>\
|
||||
<input type="checkbox" id="img_public" name="img_public" value="YES" />\
|
||||
<div class="tip">'+tr('Public scope of the image')+'</div>\
|
||||
<div class="tip">'+tr("Public scope of the image")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_persistent">'+tr('Persistent')+':</label>\
|
||||
<label for="img_persistent">'+tr("Persistent")+':</label>\
|
||||
<input type="checkbox" id="img_persistent" name="img_persistent" value="YES" />\
|
||||
<div class="tip">'+tr('Persistence of the image')+'</div>\
|
||||
<div class="tip">'+tr("Persistence of the image")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_dev_prefix">'+tr('Device prefix:')+'</label>\
|
||||
<label for="img_dev_prefix">'+tr("Device prefix")+':</label>\
|
||||
<input type="text" name="img_dev_prefix" id="img_dev_prefix" />\
|
||||
<div class="tip">'+tr('Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”. If omitted, the default value is the one defined in oned.conf (installation default is “hd”).')+'</div>\
|
||||
<div class="tip">'+tr("Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”. If omitted, the default value is the one defined in oned.conf (installation default is “hd”).")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_bus">'+tr('Bus')+':</label>\
|
||||
<label for="img_bus">'+tr("Bus")+':</label>\
|
||||
<select name="img_bus" id="img_bus">\
|
||||
<option value="IDE">'+tr('IDE')+'</option>\
|
||||
<option value="SCSI">'+tr('SCSI')+'</option>\
|
||||
<option value="virtio">'+tr('Virtio (KVM)')+'</option>\
|
||||
<option value="IDE">'+tr("IDE")+'</option>\
|
||||
<option value="SCSI">'+tr("SCSI")+'</option>\
|
||||
<option value="virtio">'+tr("Virtio (KVM)")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Type of disk device to emulate.')+'</div>\
|
||||
<div class="tip">'+tr("Type of disk device to emulate.")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_driver">'+tr('Driver')+':</label>\
|
||||
<label for="img_driver">'+tr("Driver")+':</label>\
|
||||
<input type="text" name="img_driver" id="img_driver" />\
|
||||
<div class="tip">'+tr('Specific image mapping driver. KVM: raw, qcow2. XEN: tap:aio, file:')+'</div>\
|
||||
<div class="tip">'+tr("Specific image mapping driver. KVM: raw, qcow2. XEN: tap:aio, file:")+'</div>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="" id="src_path_select">\
|
||||
<label style="height:3em;">'+tr('Path vs. source:')+'</label>\
|
||||
<label style="height:3em;">'+tr("Path vs. source")+':</label>\
|
||||
<input type="radio" name="src_path" id="path_img" value="path" />\
|
||||
<label style="float:none">'+tr('Provide a path')+'</label><br />\
|
||||
<label style="float:none">'+tr("Provide a path")+'</label><br />\
|
||||
<input type="radio" name="src_path" id="source_img" value="source" />\
|
||||
<label style="float:none">'+tr('Provide a source')+'</label><br />\
|
||||
<label style="float:none">'+tr("Provide a source")+'</label><br />\
|
||||
<input type="radio" name="src_path" id="datablock_img" value="datablock" />\
|
||||
<label style="float:none;vertical-align:top">'+tr('Create an empty datablock')+'</label>\
|
||||
<div class="tip">'+tr('Please choose path if you have a file-based image. Choose source otherwise or create an empty datablock disk.')+'</div><br />\
|
||||
<label style="float:none;vertical-align:top">'+tr("Create an empty datablock")+'</label>\
|
||||
<div class="tip">'+tr("Please choose path if you have a file-based image. Choose source otherwise or create an empty datablock disk.")+'</div><br />\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_path">'+tr('Path')+':</label>\
|
||||
<label for="img_path">'+tr("Path")+':</label>\
|
||||
<input type="text" name="img_path" id="img_path" />\
|
||||
<div class="tip">'+tr('Path to the original file that will be copied to the image repository. If not specified for a DATABLOCK type image, an empty image will be created.')+'</div>\
|
||||
<div class="tip">'+tr("Path to the original file that will be copied to the image repository. If not specified for a DATABLOCK type image, an empty image will be created.")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_source">'+tr('Source')+':</label>\
|
||||
<label for="img_source">'+tr("Source")+':</label>\
|
||||
<input type="text" name="img_source" id="img_source" />\
|
||||
<div class="tip">'+tr('Source to be used in the DISK attribute. Useful for not file-based images.')+'</div>\
|
||||
<div class="tip">'+tr("Source to be used in the DISK attribute. Useful for not file-based images.")+'</div>\
|
||||
</div>\
|
||||
<div class="img_size">\
|
||||
<label for="img_size">'+tr('Size')+':</label>\
|
||||
<label for="img_size">'+tr("Size")+':</label>\
|
||||
<input type="text" name="img_size" id="img_size" />\
|
||||
<div class="tip">'+tr('Size of the datablock in MB.')+'</div>\
|
||||
<div class="tip">'+tr("Size of the datablock in MB.")+'</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_fstype">'+tr('FS type')+':</label>\
|
||||
<label for="img_fstype">'+tr("FS type")+':</label>\
|
||||
<input type="text" name="img_fstype" id="img_fstype" />\
|
||||
<div class="tip">'+tr('Type of file system to be built. This can be any value understood by mkfs unix command.')+'</div>\
|
||||
<div class="tip">'+tr("Type of file system to be built. This can be any value understood by mkfs unix command.")+'</div>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="">\
|
||||
<label for="custom_var_image_name">'+tr('Name')+':</label>\
|
||||
<label for="custom_var_image_name">'+tr("Name")+':</label>\
|
||||
<input type="text" id="custom_var_image_name" name="custom_var_image_name" />\
|
||||
<label for="custom_var_image_value">'+tr('Value')+':</label>\
|
||||
<label for="custom_var_image_value">'+tr("Value")+':</label>\
|
||||
<input type="text" id="custom_var_image_value" name="custom_var_image_value" />\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_image_button" value="add_custom_image_var">'+tr('Add')+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_image_button" value="remove_custom_image_var">'+tr('Remove selected')+'</button>\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_image_button" value="add_custom_image_var">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_image_button" value="remove_custom_image_var">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="custom_var_image_box">'+tr('Custom attributes')+':</label>\
|
||||
<label for="custom_var_image_box">'+tr("Custom attributes")+':</label>\
|
||||
<select id="custom_var_image_box" name="custom_var_image_box" style="height:100px;" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="button" id="create_image_submit" value="user/create">'+tr('Create')+'</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr('Reset')+'</button>\
|
||||
<button class="button" id="create_image_submit" value="user/create">'+tr("Create")+'</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr("Reset")+'</button>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
</form>\
|
||||
@@ -159,16 +161,16 @@ var create_image_tmpl =
|
||||
<div id="img_manual">\
|
||||
<form id="create_image_form_manual" action="">\
|
||||
<fieldset style="border-top:none;">\
|
||||
<h3 style="margin-bottom:10px;">'+tr('Write the image template here')+'</h3>\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Write the image template here")+'</h3>\
|
||||
<textarea id="template" rows="15" style="width:100%;">\
|
||||
</textarea>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="button" id="create_vn_submit_manual" value="vn/create">\
|
||||
'+tr('Create')+'\
|
||||
'+tr("Create")+'\
|
||||
</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr('Reset')+'</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr("Reset")+'</button>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
</form>\
|
||||
@@ -177,26 +179,26 @@ var create_image_tmpl =
|
||||
|
||||
var update_image_tmpl =
|
||||
'<form action="javascript:alert(\'js error!\');">\
|
||||
<h3 style="margin-bottom:10px;">'+tr('Please, choose and modify the image you want to update')+':</h3>\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Please, choose and modify the image you want to update")+':</h3>\
|
||||
<fieldset style="border-top:none;">\
|
||||
<label for="image_template_update_select">'+tr('Select an image')+':</label>\
|
||||
<label for="image_template_update_select">'+tr("Select an image")+':</label>\
|
||||
<select id="image_template_update_select" name="image_template_update_select"></select>\
|
||||
<div class="clear"></div>\
|
||||
<div>\
|
||||
<label for="image_template_update_public">'+tr('Public')+':</label>\
|
||||
<label for="image_template_update_public">'+tr("Public")+':</label>\
|
||||
<input type="checkbox" name="image_template_update_public" id="image_template_update_public" />\
|
||||
</div>\
|
||||
<div>\
|
||||
<label for="image_template_update_public">'+tr('Persistent')+':</label>\
|
||||
<label for="image_template_update_public">'+tr("Persistent")+':</label>\
|
||||
<input type="checkbox" name="image_template_update_persistent" id="image_template_update_persistent" />\
|
||||
</div>\
|
||||
<label for="image_template_update_textarea">'+tr('Template')+':</label>\
|
||||
<label for="image_template_update_textarea">'+tr("Template")+':</label>\
|
||||
<div class="clear"></div>\
|
||||
<textarea id="image_template_update_textarea" style="width:100%; height:14em;"></textarea>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="button" id="image_template_update_button" value="Image.update_template">'+tr('Update')+'\
|
||||
<button class="button" id="image_template_update_button" value="Image.update_template">'+tr("Update")+'\
|
||||
</button>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -411,14 +413,14 @@ var image_buttons = {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change owner"),
|
||||
select: users_sel,
|
||||
tip: tr("Select the new owner:"),
|
||||
tip: tr("Select the new owner")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
"Image.chgrp" : {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change group"),
|
||||
select: groups_sel,
|
||||
tip: tr("Select the new group:"),
|
||||
tip: tr("Select the new group")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
"action_list" : {
|
||||
@@ -491,9 +493,9 @@ function imageElementArray(image_json){
|
||||
var image = image_json.IMAGE;
|
||||
|
||||
var type = $('<select>\
|
||||
<option value="OS">'+tr('OS')+'</option>\
|
||||
<option value="CDROM">'+tr('CD-ROM')+'</option>\
|
||||
<option value="DATABLOCK">'+tr('Datablock')+'</option>\
|
||||
<option value="OS">'+tr("OS")+'</option>\
|
||||
<option value="CDROM">'+tr("CD-ROM")+'</option>\
|
||||
<option value="DATABLOCK">'+tr("Datablock")+'</option>\
|
||||
</select>');
|
||||
|
||||
var value = OpenNebula.Helper.image_type(image.TYPE);
|
||||
@@ -573,62 +575,63 @@ function updateImageInfo(request,img){
|
||||
content:
|
||||
'<table id="info_img_table" class="info_table" style="width:80%;">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">'+tr('Image')+' "'+img_info.NAME+'" '+tr('information')+'</th></tr>\
|
||||
<tr><th colspan="2">'+tr("Image")+' "'+img_info.NAME+'" '+
|
||||
tr("information")+'</th></tr>\
|
||||
</thead>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('ID')+'</td>\
|
||||
<td class="key_td">'+tr("ID")+'</td>\
|
||||
<td class="value_td">'+img_info.ID+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Name')+'</td>\
|
||||
<td class="key_td">'+tr("Name")+'</td>\
|
||||
<td class="value_td">'+img_info.NAME+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Owner')+'</td>\
|
||||
<td class="key_td">'+tr("Owner")+'</td>\
|
||||
<td class="value_td">'+img_info.UNAME+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Group')+'</td>\
|
||||
<td class="key_td">'+tr("Group")+'</td>\
|
||||
<td class="value_td">'+img_info.GNAME+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Type')+'</td>\
|
||||
<td class="key_td">'+tr("Type")+'</td>\
|
||||
<td class="value_td">'+OpenNebula.Helper.image_type(img_info.TYPE)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Register time')+'</td>\
|
||||
<td class="key_td">'+tr("Register time")+'</td>\
|
||||
<td class="value_td">'+pretty_time(img_info.REGTIME)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Public')+'</td>\
|
||||
<td class="key_td">'+tr("Public")+'</td>\
|
||||
<td class="value_td">'+(parseInt(img_info.PUBLIC) ? tr("yes") : tr("no"))+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Persistent')+'</td>\
|
||||
<td class="key_td">'+tr("Persistent")+'</td>\
|
||||
<td class="value_td">'+(parseInt(img_info.PERSISTENT) ? tr("yes") : tr("no"))+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Source')+'</td>\
|
||||
<td class="key_td">'+tr("Source")+'</td>\
|
||||
<td class="value_td">'+(typeof img_info.SOURCE === "string" ? img_info.SOURCE : "--")+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Path')+'</td>\
|
||||
<td class="key_td">'+tr("Path")+'</td>\
|
||||
<td class="value_td">'+(typeof img_info.PATH === "string" ? img_info.PATH : "--")+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Filesystem type')+'</td>\
|
||||
<td class="key_td">'+tr("Filesystem type")+'</td>\
|
||||
<td class="value_td">'+(typeof img_info.FSTYPE === "string" ? img_info.FSTYPE : "--")+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Size (Mb)')+'</td>\
|
||||
<td class="key_td">'+tr("Size (Mb)")+'</td>\
|
||||
<td class="value_td">'+img_info.SIZE+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('State')+'</td>\
|
||||
<td class="key_td">'+tr("State")+'</td>\
|
||||
<td class="value_td">'+OpenNebula.Helper.resource_state("image",img_info.STATE)+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Running #VMS')+'</td>\
|
||||
<td class="key_td">'+tr("Running #VMS")+'</td>\
|
||||
<td class="value_td">'+img_info.RUNNING_VMS+'</td>\
|
||||
</tr>\
|
||||
</table>'
|
||||
@@ -637,7 +640,7 @@ function updateImageInfo(request,img){
|
||||
var template_tab = {
|
||||
title: tr("Image template"),
|
||||
content: '<table id="img_template_table" class="info_table" style="width:80%;">\
|
||||
<thead><tr><th colspan="2">'+tr('Image template')+'</th></tr></thead>'+
|
||||
<thead><tr><th colspan="2">'+tr("Image template")+'</th></tr></thead>'+
|
||||
prettyPrintJSON(img_info.TEMPLATE)+
|
||||
'</table>'
|
||||
}
|
||||
@@ -651,7 +654,7 @@ function updateImageInfo(request,img){
|
||||
|
||||
// Prepare the image creation dialog
|
||||
function setupCreateImageDialog(){
|
||||
dialogs_context.append('<div title="'+tr('Create Image')+'" id="create_image_dialog"></div>');
|
||||
dialogs_context.append('<div title="'+tr("Create Image")+'" id="create_image_dialog"></div>');
|
||||
$create_image_dialog = $('#create_image_dialog',dialogs_context);
|
||||
var dialog = $create_image_dialog;
|
||||
dialog.html(create_image_tmpl);
|
||||
@@ -668,8 +671,8 @@ function setupCreateImageDialog(){
|
||||
|
||||
$('#img_tabs',dialog).tabs();
|
||||
$('button',dialog).button();
|
||||
$('#img_type option',dialog).first().attr("selected","selected");
|
||||
$('#datablock_img',dialog).attr("disabled","disabled");
|
||||
$('#img_type option',dialog).first().attr('selected','selected');
|
||||
$('#datablock_img',dialog).attr('disabled','disabled');
|
||||
|
||||
$('select#img_type',dialog).change(function(){
|
||||
var value = $(this).val();
|
||||
@@ -679,23 +682,23 @@ function setupCreateImageDialog(){
|
||||
$('#datablock_img',context).removeAttr("disabled");
|
||||
break;
|
||||
default:
|
||||
$('#datablock_img',context).attr("disabled","disabled");
|
||||
$('#path_img',context).attr("checked","checked");
|
||||
$('#datablock_img',context).attr('disabled','disabled');
|
||||
$('#path_img',context).attr('checked','checked');
|
||||
$('#img_source,#img_fstype,#img_size',context).parent().hide();
|
||||
$('#img_path',context).parent().show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#img_source,#img_fstype,#img_size',dialog).parent().hide();
|
||||
$('#path_img',dialog).attr("checked","checked");
|
||||
$('#path_img',dialog).attr('checked','checked');
|
||||
$('#img_path',dialog).parent().addClass("img_man");
|
||||
|
||||
$('#img_public',dialog).click(function(){
|
||||
$('#img_persistent',$create_image_dialog).removeAttr("checked");
|
||||
$('#img_persistent',$create_image_dialog).removeAttr('checked');
|
||||
});
|
||||
|
||||
$('#img_persistent',dialog).click(function(){
|
||||
$('#img_public',$create_image_dialog).removeAttr("checked");
|
||||
$('#img_public',$create_image_dialog).removeAttr('checked');
|
||||
});
|
||||
|
||||
|
||||
@@ -808,7 +811,7 @@ function setupCreateImageDialog(){
|
||||
|
||||
//Time to add custom attributes
|
||||
$('#custom_var_image_box option',$create_image_dialog).each(function(){
|
||||
var attr_name = $(this).attr("name");
|
||||
var attr_name = $(this).attr('name');
|
||||
var attr_value = $(this).val();
|
||||
img_json[attr_name] = attr_value;
|
||||
});
|
||||
@@ -838,7 +841,7 @@ function popUpCreateImageDialog(){
|
||||
function setupImageTemplateUpdateDialog(){
|
||||
|
||||
//Append to DOM
|
||||
dialogs_context.append('<div id="image_template_update_dialog" title="'+tr('Update image template')+'"></div>');
|
||||
dialogs_context.append('<div id="image_template_update_dialog" title="'+tr("Update image template")+'"></div>');
|
||||
var dialog = $('#image_template_update_dialog',dialogs_context);
|
||||
|
||||
//Put HTML in place
|
||||
@@ -859,21 +862,22 @@ function setupImageTemplateUpdateDialog(){
|
||||
var id = $(this).val();
|
||||
if (id && id.length){
|
||||
var dialog = $('#image_template_update_dialog');
|
||||
$('#image_template_update_textarea',dialog).val(tr("Loading")+"...");
|
||||
$('#image_template_update_textarea',dialog).val(tr("Loading")+
|
||||
"...");
|
||||
|
||||
var img_public = is_public_image(id);
|
||||
var img_persistent = is_persistent_image(id)
|
||||
|
||||
if (img_public){
|
||||
$('#image_template_update_public',dialog).attr("checked","checked")
|
||||
$('#image_template_update_public',dialog).attr('checked','checked')
|
||||
} else {
|
||||
$('#image_template_update_public',dialog).removeAttr("checked")
|
||||
$('#image_template_update_public',dialog).removeAttr('checked')
|
||||
}
|
||||
|
||||
if (img_persistent){
|
||||
$('#image_template_update_persistent',dialog).attr("checked","checked")
|
||||
$('#image_template_update_persistent',dialog).attr('checked','checked')
|
||||
} else {
|
||||
$('#image_template_update_persistent',dialog).removeAttr("checked")
|
||||
$('#image_template_update_persistent',dialog).removeAttr('checked')
|
||||
}
|
||||
|
||||
Sunstone.runAction("Image.fetch_template",id);
|
||||
@@ -927,12 +931,12 @@ function popUpImageTemplateUpdateDialog(){
|
||||
var dialog = $('#image_template_update_dialog');
|
||||
$('#image_template_update_select',dialog).html(select);
|
||||
$('#image_template_update_textarea',dialog).val("");
|
||||
$('#image_template_update_public',dialog).removeAttr("checked")
|
||||
$('#image_template_update_persistent',dialog).removeAttr("checked")
|
||||
$('#image_template_update_public',dialog).removeAttr('checked')
|
||||
$('#image_template_update_persistent',dialog).removeAttr('checked')
|
||||
|
||||
if (sel_elems.length >= 1){ //several items in the list are selected
|
||||
//grep them
|
||||
var new_select= sel_elems.length > 1? '<option value="">'+tr('Please select')+'</option>' : "";
|
||||
var new_select= sel_elems.length > 1? '<option value="">'+tr("Please select")+'</option>' : "";
|
||||
$('option','<select>'+select+'</select>').each(function(){
|
||||
var val = $(this).val();
|
||||
if ($.inArray(val,sel_elems) >= 0){
|
||||
@@ -941,7 +945,7 @@ function popUpImageTemplateUpdateDialog(){
|
||||
});
|
||||
$('#image_template_update_select',dialog).html(new_select);
|
||||
if (sel_elems.length == 1) {
|
||||
$('#image_template_update_select option',dialog).attr("selected","selected");
|
||||
$('#image_template_update_select option',dialog).attr('selected','selected');
|
||||
$('#image_template_update_select',dialog).trigger("change");
|
||||
}
|
||||
|
||||
@@ -957,7 +961,7 @@ function setImageAutorefresh() {
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_images);
|
||||
var filter = $("#datatable_images_filter input",
|
||||
dataTable_images.parents("#datatable_images_wrapper")).attr("value");
|
||||
dataTable_images.parents("#datatable_images_wrapper")).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Image.autorefresh");
|
||||
}
|
||||
@@ -966,19 +970,19 @@ function setImageAutorefresh() {
|
||||
|
||||
function is_public_image(id){
|
||||
var data = getElementData(id,"#image",dataTable_images)[7];
|
||||
return $(data).attr("checked");
|
||||
return $(data).attr('checked');
|
||||
};
|
||||
|
||||
function is_persistent_image(id){
|
||||
var data = getElementData(id,"#image",dataTable_images)[8];
|
||||
return $(data).attr("checked");
|
||||
return $(data).attr('checked');
|
||||
};
|
||||
|
||||
function setupImageActionCheckboxes(){
|
||||
$('input.action_cb#cb_public_image',dataTable_images).live("click",function(){
|
||||
var $this = $(this)
|
||||
var id=$this.attr("elem_id");
|
||||
if ($this.attr("checked")){
|
||||
var id=$this.attr('elem_id');
|
||||
if ($this.attr('checked')){
|
||||
if (!is_persistent_image(id))
|
||||
Sunstone.runAction("Image.publish",id);
|
||||
else {
|
||||
@@ -992,8 +996,8 @@ function setupImageActionCheckboxes(){
|
||||
|
||||
$('input.action_cb#cb_persistent_image',dataTable_images).live("click",function(){
|
||||
var $this = $(this)
|
||||
var id=$this.attr("elem_id");
|
||||
if ($this.attr("checked")){
|
||||
var id=$this.attr('elem_id');
|
||||
if ($this.attr('checked')){
|
||||
if (!is_public_image(id))
|
||||
Sunstone.runAction("Image.persistent",id);
|
||||
else {
|
||||
@@ -1008,7 +1012,7 @@ function setupImageActionCheckboxes(){
|
||||
$('select.action_cb#select_chtype_image', dataTable_images).live("change",function(){
|
||||
var $this = $(this);
|
||||
var value = $this.val();
|
||||
var id = $this.attr("elem_id");
|
||||
var id = $this.attr('elem_id');
|
||||
|
||||
Sunstone.runAction("Image.chtype", id, value);
|
||||
});
|
||||
|
||||
@@ -54,7 +54,9 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<input type="radio" id="xen" name="template_type" value="xen">XEN</input>\
|
||||
<div class="clear"></div>\
|
||||
-->\
|
||||
<p style="font-size:0.8em;text-align:right;"><i>'+tr("Fields marked with")+'<span style="display:inline-block;" class="ui-icon ui-icon-alert" />'+tr("are mandatory")+'</i><br />\
|
||||
<p style="font-size:0.8em;text-align:right;"><i>'+
|
||||
tr("Fields marked with")+'<span style="display:inline-block;" class="ui-icon ui-icon-alert" />'+
|
||||
tr("are mandatory")+'</i><br />\
|
||||
<a href="#" id="fold_unfold_vm_params"><u>'+tr("Fold / Unfold all sections")+'</u></a></p>\
|
||||
</div>\
|
||||
\
|
||||
@@ -80,7 +82,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<div class="tip">'+tr("Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="VCPU">'+tr("VCPU:")+'</label>\
|
||||
<label for="VCPU">'+tr("VCPU")+':</label>\
|
||||
<input type="text" id="VCPU" name="vcpu" size="3" />\
|
||||
<div class="tip">'+tr("Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.")+'</div>\
|
||||
</div>\
|
||||
@@ -95,7 +97,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr("OS and Boot options")+'</legend>\
|
||||
<div class="vm_param kvm vmware">\
|
||||
<label for="ARCH">'+tr("Architecture:")+'</label>\
|
||||
<label for="ARCH">'+tr("Architecture")+':</label>\
|
||||
<select id="ARCH" name="arch">\
|
||||
<option value="i686">i686</option>\
|
||||
<option value="x86_64">x86_64</option>\
|
||||
@@ -105,41 +107,41 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<!--xen necesita kernel o bootloader.\
|
||||
Opciones de kernel son obligatorias si se activa kernel-->\
|
||||
<div class="" id="kernel_bootloader">\
|
||||
<label>'+tr("Boot method:")+'</label>\
|
||||
<label>'+tr("Boot method")+':</label>\
|
||||
<select id="boot_method" name="boot_method">\
|
||||
<option id="no_boot" name="no_boot" value=""></option>\
|
||||
<option value="kernel">Kernel</option>\
|
||||
<option value="bootloader">Bootloader</option>\
|
||||
<option value="kernel">'+tr("Kernel")+'</option>\
|
||||
<option value="bootloader">'+tr("Bootloader")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr("Select boot method")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen kernel">\
|
||||
<label for="KERNEL">'+tr("Kernel:")+'</label>\
|
||||
<label for="KERNEL">'+tr("Kernel")+':</label>\
|
||||
<input type="text" id="KERNEL" name="kernel" />\
|
||||
<div class="tip">'+tr("Path to the OS kernel to boot the image")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm xen kernel">\
|
||||
<label for="INITRD">'+tr("Initrd:")+'</label>\
|
||||
<label for="INITRD">'+tr("Initrd")+':</label>\
|
||||
<input type="text" id="INITRD" name="initrd"/>\
|
||||
<div class="tip">'+tr("Path to the initrd image")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm xen kernel">\
|
||||
<label for="ROOT">'+tr("Root:")+'</label>\
|
||||
<label for="ROOT">'+tr("Root")+':</label>\
|
||||
<input type="text" id="ROOT" name="root"/>\
|
||||
<div class="tip">'+tr("Device to be mounted as root")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm xen kernel">\
|
||||
<label for="KERNEL_CMD">'+tr("Kernel commands:")+'</label>\
|
||||
<label for="KERNEL_CMD">'+tr("Kernel commands")+':</label>\
|
||||
<input type="text" id="KERNEL_CMD" name="kernel_cmd" />\
|
||||
<div class="tip">'+tr("Arguments for the booting kernel")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen bootloader">\
|
||||
<label for="BOOTLOADER">'+tr("Bootloader:")+'</label>\
|
||||
<label for="BOOTLOADER">'+tr("Bootloader")+':</label>\
|
||||
<input type="text" id="BOOTLOADER" name="bootloader" />\
|
||||
<div class="tip">'+tr("Path to the bootloader executable")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm">\
|
||||
<label for="BOOT">'+tr("Boot:")+'</label>\
|
||||
<label for="BOOT">'+tr("Boot")+':</label>\
|
||||
<select id="BOOT" name="boot">\
|
||||
</select>\
|
||||
<div class="tip">'+tr("Boot device type")+'</div>\
|
||||
@@ -155,7 +157,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr("Features")+'</legend>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="PAE">'+tr("PAE:")+'</label>\
|
||||
<label for="PAE">'+tr("PAE")+':</label>\
|
||||
<select id="PAE" name="PAE">\
|
||||
<option value="">'+tr("Default")+'</option>\
|
||||
<option value="yes">'+tr("Enable")+'</option>\
|
||||
@@ -182,92 +184,92 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
readonly SEVERAL DISKS-->\
|
||||
<div class="vm_section" id="disks">\
|
||||
<div class="show_hide" id="add_disks_cb">\
|
||||
<h3>'+tr('Add disks/images')+' <a id="add_disks" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
<h3>'+tr("Add disks/images")+' <a id="add_disks" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr('Disks')+'</legend>\
|
||||
<fieldset><legend>'+tr("Disks")+'</legend>\
|
||||
<div class="" id="image_vs_disk">\
|
||||
<label>'+tr('Add disk/image')+'</label>\
|
||||
<input type="radio" id="add_disk" name="image_vs_disk" value="disk">'+tr('Disk')+'</input>\
|
||||
<label>'+tr("Add disk/image")+'</label>\
|
||||
<input type="radio" id="add_disk" name="image_vs_disk" value="disk">'+tr("Disk")+'</input>\
|
||||
<!--<label for="add_disk">Add a disk</label>-->\
|
||||
<input type="radio" id="add_image" name="image_vs_disk" value="image">'+tr('Image')+'</input>\
|
||||
<input type="radio" id="add_image" name="image_vs_disk" value="image">'+tr("Image")+'</input>\
|
||||
<!--<label for="add_image">Add an image</label>-->\
|
||||
</div>\
|
||||
<div class="clear"></div>\
|
||||
<div class="vm_param kvm xen vmware add_image">\
|
||||
<label for="IMAGE">'+tr('Image')+':</label>\
|
||||
<label for="IMAGE">'+tr("Image")+':</label>\
|
||||
<select type="text" id="IMAGE" name="image">\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Name of the image to use')+'</div>\
|
||||
<div class="tip">'+tr("Name of the image to use")+'</div>\
|
||||
<input type="hidden" id="IMAGE_UNAME" name="image_uname" value=""/>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="BUS">'+tr('Bus')+':</label>\
|
||||
<label for="BUS">'+tr("Bus")+':</label>\
|
||||
<select id="BUS" name="bus">\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Type of disk device to emulate: ide, scsi')+'</div>\
|
||||
<div class="tip">'+tr("Type of disk device to emulate: ide, scsi")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware">\
|
||||
<label for="TARGET">'+tr('Target')+':</label>\
|
||||
<label for="TARGET">'+tr("Target")+':</label>\
|
||||
<input type="text" id="TARGET" name="target" />\
|
||||
<div class="tip">'+tr('Device to map image disk. If set, it will overwrite the default device mapping')+'</div>\
|
||||
<div class="tip">'+tr("Device to map image disk. If set, it will overwrite the default device mapping")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="DRIVER">'+tr('Driver')+':</label>\
|
||||
<label for="DRIVER">'+tr("Driver")+':</label>\
|
||||
<input type="text" id="DRIVER" name="driver" />\
|
||||
<div class="tip">'+tr('Specific image mapping driver. KVM: raw, qcow2. Xen:tap:aio:, file:. VMware unsupported')+'</div>\
|
||||
<div class="tip">'+tr("Specific image mapping driver. KVM: raw, qcow2. Xen:tap:aio:, file:. VMware unsupported")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt add_disk">\
|
||||
<label for="TYPE">'+tr('Type')+':</label>\
|
||||
<label for="TYPE">'+tr("Type")+':</label>\
|
||||
<select id="TYPE" name="type">\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Disk type')+'</div>\
|
||||
<div class="tip">'+tr("Disk type")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm xen vmware add_disk">\
|
||||
<label for="SOURCE">'+tr('Source')+':</label>\
|
||||
<label for="SOURCE">'+tr("Source")+':</label>\
|
||||
<input type="text" id="SOURCE" name="source" />\
|
||||
<div class="tip">'+tr('Disk file location path or URL')+'</div>\
|
||||
<div class="tip">'+tr("Disk file location path or URL")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt add_disk ">\
|
||||
<!--Mandatory for swap, fs and block images-->\
|
||||
<label for="SIZE">'+tr('Size')+':</label>\
|
||||
<label for="SIZE">'+tr("Size")+':</label>\
|
||||
<input type="text" id="SIZE" name="size" />\
|
||||
<div class="tip">'+tr('Size in MB')+'</div>\
|
||||
<div class="tip">'+tr("Size in MB")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt add_disk ">\
|
||||
<!--mandatory for fs images-->\
|
||||
<label for="FORMAT">'+tr('Format')+':</label>\
|
||||
<label for="FORMAT">'+tr("Format")+':</label>\
|
||||
<input type="text" id="FORMAT" name="format" />\
|
||||
<div class="tip">'+tr('Filesystem type for the fs images')+'</div>\
|
||||
<div class="tip">'+tr("Filesystem type for the fs images")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt add_disk">\
|
||||
<label for="CLONE">'+tr('Clone')+':</label>\
|
||||
<label for="CLONE">'+tr("Clone")+':</label>\
|
||||
<select id="CLONE" name="clone">\
|
||||
<option value="yes">'+tr('Yes')+'</option>\
|
||||
<option value="no">'+tr('No')+'</option>\
|
||||
<option value="yes">'+tr("Yes")+'</option>\
|
||||
<option value="no">'+tr("No")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Clone this image')+'</div>\
|
||||
<div class="tip">'+tr("Clone this image")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt add_disk">\
|
||||
<label for="SAVE">'+tr('Save')+':</label>\
|
||||
<label for="SAVE">'+tr("Save")+':</label>\
|
||||
<select id="SAVE" name="save">\
|
||||
<option value="no">'+tr('No')+'</option>\
|
||||
<option value="yes">'+tr('Yes')+'</option>\
|
||||
<option value="no">'+tr("No")+'</option>\
|
||||
<option value="yes">'+tr("Yes")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Save this image after shutting down the VM')+'</div>\
|
||||
<div class="tip">'+tr("Save this image after shutting down the VM")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt add_disk">\
|
||||
<label for="READONLY">'+tr('Read only')+':</label>\
|
||||
<label for="READONLY">'+tr("Read only")+':</label>\
|
||||
<select id="READONLY" name="readonly">\
|
||||
<option value="no">'+tr('No')+'</option>\
|
||||
<option value="yes">'+tr('Yes')+'</option>\
|
||||
<option value="no">'+tr("No")+'</option>\
|
||||
<option value="yes">'+tr("Yes")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Mount image as read-only')+'</div>\
|
||||
<div class="tip">'+tr("Mount image as read-only")+'</div>\
|
||||
</div>\
|
||||
<div class="">\
|
||||
<button class="add_remove_button add_button" id="add_disk_button" value="add_disk">'+tr('Add')+'</button>\
|
||||
<button class="add_remove_button" id="remove_disk_button" value="remove_disk">'+tr('Remove selected')+'</button>\
|
||||
<button class="add_remove_button add_button" id="add_disk_button" value="add_disk">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_disk_button" value="remove_disk">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label style="" for="disks_box">'+tr('Current disks')+':</label>\
|
||||
<label style="" for="disks_box">'+tr("Current disks")+':</label>\
|
||||
<select id="disks_box" name="disks_box" style="height:100px;width:350px" multiple>\
|
||||
</select>\
|
||||
<div class="clear"></div>\
|
||||
@@ -279,107 +281,107 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
bridge, target, script, model -->\
|
||||
<div class="vm_section" id="networks">\
|
||||
<div class="show_hide" id="add_networks_cb">\
|
||||
<h3>'+tr('Setup Networks')+' <a id="add_networks" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
<h3>'+tr("Setup Networks")+' <a id="add_networks" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr('Network')+'</legend>\
|
||||
<fieldset><legend>'+tr("Network")+'</legend>\
|
||||
<div class="" id="network_vs_niccfg">\
|
||||
<label>'+tr('Add network')+'</label>\
|
||||
<input type="radio" id="add_network" name="network_vs_niccfg" value="network">'+tr('Predefined')+'</input>\
|
||||
<label>'+tr("Add network")+'</label>\
|
||||
<input type="radio" id="add_network" name="network_vs_niccfg" value="network">'+tr("Predefined")+'</input>\
|
||||
<!--<label style="width:200px;" for="add_network">Pre-defined network</label>-->\
|
||||
<input type="radio" id="add_niccfg" name="network_vs_niccfg" value="niccfg">'+tr('Manual')+'</input>\
|
||||
<input type="radio" id="add_niccfg" name="network_vs_niccfg" value="niccfg">'+tr("Manual")+'</input>\
|
||||
<!--<label for="add_niccfg">Manual network</label>-->\
|
||||
<!--<div class="tip"></div>-->\
|
||||
</div>\
|
||||
<div class="clear"></div>\
|
||||
<div class="vm_param kvm xen vmware network">\
|
||||
<label for="NETWORK">'+tr('Network')+':</label>\
|
||||
<label for="NETWORK">'+tr("Network")+':</label>\
|
||||
<select type="text" id="NETWORK" name="network">\
|
||||
</select>\
|
||||
<div class="tip">'+tr('Name of the network to attach this device')+'</div>\
|
||||
<div class="tip">'+tr("Name of the network to attach this device")+'</div>\
|
||||
<input type="hidden" id="NETWORK_UNAME" name="network_uname" value=""/>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt niccfg network">\
|
||||
<label for="IP">'+tr('IP')+':</label>\
|
||||
<label for="IP">'+tr("IP")+':</label>\
|
||||
<input type="text" id="IP" name="ip" />\
|
||||
<div class="tip">'+tr('Request an specific IP from the Network')+'</div>\
|
||||
<div class="tip">'+tr("Request an specific IP from the Network")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt niccfg">\
|
||||
<label for="MAC">'+tr('MAC')+':</label>\
|
||||
<label for="MAC">'+tr("MAC")+':</label>\
|
||||
<input type="text" id="MAC" name="mac" />\
|
||||
<div class="tip">'+tr('HW address associated with the network interface')+'</div>\
|
||||
<div class="tip">'+tr("HW address associated with the network interface")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt niccfg">\
|
||||
<label for="BRIDGE">'+tr('Bridge')+'</label>\
|
||||
<label for="BRIDGE">'+tr("Bridge")+'</label>\
|
||||
<input type="text" id="BRIDGE" name="bridge" />\
|
||||
<div class="tip">'+tr('Name of the bridge the network device is going to be attached to')+'</div>\
|
||||
<div class="tip">'+tr("Name of the bridge the network device is going to be attached to")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt vmware_opt niccfg">\
|
||||
<label for="TARGET">'+tr('Target')+':</label>\
|
||||
<label for="TARGET">'+tr("Target")+':</label>\
|
||||
<input type="text" id="TARGET" name="nic_target" />\
|
||||
<div class="tip">'+tr('Name for the tun device created for the VM')+'</div>\
|
||||
<div class="tip">'+tr("Name for the tun device created for the VM")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt vmware_opt niccfg">\
|
||||
<label for="SCRIPT">'+tr('Script')+':</label>\
|
||||
<label for="SCRIPT">'+tr("Script")+':</label>\
|
||||
<input type="text" id="SCRIPT" name="script" />\
|
||||
<div class="tip">'+tr('Name of a shell script to be executed after creating the tun device for the VM')+'</div>\
|
||||
<div class="tip">'+tr("Name of a shell script to be executed after creating the tun device for the VM")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt niccfg">\
|
||||
<label for="MODEL">'+tr('Model')+':</label>\
|
||||
<label for="MODEL">'+tr("Model")+':</label>\
|
||||
<input type="text" id="MODEL" name="model" />\
|
||||
<div class="tip">'+tr('Hardware that will emulate this network interface. With Xen this is the type attribute of the vif.')+'</div>\
|
||||
<div class="tip">'+tr("Hardware that will emulate this network interface. With Xen this is the type attribute of the vif.")+'</div>\
|
||||
</div>\
|
||||
<div class="firewall_select">\
|
||||
<label for="black_white_tcp">'+tr('Tcp firewall mode')+':</label>\
|
||||
<label for="black_white_tcp">'+tr("Tcp firewall mode")+':</label>\
|
||||
<select name="black_white_tcp" id="black_white_tcp">\
|
||||
<option value="">'+tr('Optional, please select')+'</option>\
|
||||
<option value="whitelist">'+tr('Port whitelist')+'</option>\
|
||||
<option value="blacklist">'+tr('Port blacklist')+'</option>\
|
||||
<option value="">'+tr("Optional, please select")+'</option>\
|
||||
<option value="whitelist">'+tr("Port whitelist")+'</option>\
|
||||
<option value="blacklist">'+tr("Port blacklist")+'</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
<div class="clear"></div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt firewall">\
|
||||
<label for="white_ports_tcp">'+tr('Tcp white ports')+':</label>\
|
||||
<label for="white_ports_tcp">'+tr("Tcp white ports")+':</label>\
|
||||
<input type="text" id="WHITE_PORTS_TCP" name="white_ports_tcp" />\
|
||||
<div class="tip">'+tr('Permits access to the VM only through the specified ports in the TCP protocol')+'</div>\
|
||||
<div class="tip">'+tr("Permits access to the VM only through the specified ports in the TCP protocol")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt firewall">\
|
||||
<label for="black_ports_tcp">'+tr('Tcp black ports')+'</label>\
|
||||
<label for="black_ports_tcp">'+tr("Tcp black ports")+'</label>\
|
||||
<input type="text" id="BLACK_PORTS_TCP" name="black_ports_tcp" />\
|
||||
<div class="tip">'+tr('Disallow access to the VM through the specified ports in the TCP protocol')+'</div>\
|
||||
<div class="tip">'+tr("Disallow access to the VM through the specified ports in the TCP protocol")+'</div>\
|
||||
</div>\
|
||||
<div class="firewall_select">\
|
||||
<label for="black_white_udp">'+tr('Udp firewall mode')+':</label>\
|
||||
<label for="black_white_udp">'+tr("Udp firewall mode")+':</label>\
|
||||
<select name="black_white_udp" id="black_white_udp">\
|
||||
<option value="">'+tr('Optional, please select')+'</option>\
|
||||
<option value="whitelist">'+tr('Port whitelist')+'</option>\
|
||||
<option value="blacklist">'+tr('Port blacklist')+'</option>\
|
||||
<option value="">'+tr("Optional, please select")+'</option>\
|
||||
<option value="whitelist">'+tr("Port whitelist")+'</option>\
|
||||
<option value="blacklist">'+tr("Port blacklist")+'</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
<div class="clear"></div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt firewall">\
|
||||
<label for="white_ports_udp">'+tr('Udp white ports')+':</label>\
|
||||
<label for="white_ports_udp">'+tr("Udp white ports")+':</label>\
|
||||
<input type="text" id="WHITE_PORTS_UDP" name="white_ports_udp" />\
|
||||
<div class="tip">'+tr('Permits access to the VM only through the specified ports in the UDP protocol')+'</div>\
|
||||
<div class="tip">'+tr("Permits access to the VM only through the specified ports in the UDP protocol")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt firewall">\
|
||||
<label for="black_ports_udp">'+tr('Udp black ports')+':</label>\
|
||||
<label for="black_ports_udp">'+tr("Udp black ports")+':</label>\
|
||||
<input type="text" id="BLACK_PORTS_UDP" name="black_ports_udp" />\
|
||||
<div class="tip">'+tr('Disallow access to the VM through the specified ports in the UDP protocol')+'</div>\
|
||||
<div class="tip">'+tr("Disallow access to the VM through the specified ports in the UDP protocol")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt niccfg network">\
|
||||
<label for="icmp">'+tr('Icmp')+':</label>\
|
||||
<label for="icmp">'+tr("Icmp")+':</label>\
|
||||
<select name="icmp" id="ICMP">\
|
||||
<option value="" selected="selected">'+tr('Accept (default)')+'</option>\
|
||||
<option value="drop">'+tr('Drop')+'</option>\
|
||||
<option value="" selected="selected">'+tr("Accept (default)")+'</option>\
|
||||
<option value="drop">'+tr("Drop")+'</option>\
|
||||
</select>\
|
||||
<div class="tip">'+tr('ICMP policy')+'</div>\
|
||||
<div class="tip">'+tr("ICMP policy")+'</div>\
|
||||
</div>\
|
||||
<div class="clear"></div>\
|
||||
<div class="">\
|
||||
<button class="add_remove_button add_button" id="add_nic_button" value="add_nic">'+tr('Add')+'</button>\
|
||||
<button class="add_remove_button" id="remove_nic_button" value="remove_nic">'+tr('Remove selected')+'</button>\
|
||||
<button class="add_remove_button add_button" id="add_nic_button" value="add_nic">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_nic_button" value="remove_nic">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="nics_box">'+tr('Current NICs')+':</label>\
|
||||
<label for="nics_box">'+tr("Current NICs")+':</label>\
|
||||
<select id="nics_box" name="nics_box" style="height:100px;width:350px" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
@@ -402,7 +404,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<div class="tip"></div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt">\
|
||||
<label for="BUS">'+tr("Bus:")+'</label>\
|
||||
<label for="BUS">'+tr("Bus")+':</label>\
|
||||
<select id="BUS" name="input_bus">\
|
||||
<option value="usb">'+tr("USB")+'</option>\
|
||||
<option value="ps2">'+tr("PS2")+'</option>\
|
||||
@@ -414,7 +416,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<button class="add_remove_button add_button" id="add_input_button" value="add_input" class="kvm_opt">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_input_button" value="remove_input" class="kvm_opt">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="inputs_box">'+tr("Current inputs:")+'</label>\
|
||||
<label for="inputs_box">'+tr("Current inputs")+':</label>\
|
||||
<select id="inputs_box" name="inputs_box" style="height:100px;" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
@@ -429,7 +431,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr("Graphics")+'</legend>\
|
||||
<div class="vm_param kvm_opt xen_opt">\
|
||||
<label for="TYPE">'+tr("Graphics type:")+'</label>\
|
||||
<label for="TYPE">'+tr("Graphics type")+':</label>\
|
||||
<select id="TYPE" name="">\
|
||||
<option value="">'+tr("Please select")+'</option>\
|
||||
<option id="vnc" value="vnc">'+tr("VNC")+'</option>\
|
||||
@@ -438,17 +440,17 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<div class="tip"></div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt">\
|
||||
<label for="LISTEN">'+tr("Listen IP:")+'</label>\
|
||||
<label for="LISTEN">'+tr("Listen IP")+':</label>\
|
||||
<input type="text" id="LISTEN" name="graphics_ip" />\
|
||||
<div class="tip">'+tr("IP to listen on")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt">\
|
||||
<label for="PORT">'+tr("Port:")+'</label>\
|
||||
<label for="PORT">'+tr("Port")+':</label>\
|
||||
<input type="text" id="PORT" name="port" />\
|
||||
<div class="tip">'+tr("Port for the VNC server")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt">\
|
||||
<label for="PASSWD">'+tr("Password:")+'</label>\
|
||||
<label for="PASSWD">'+tr("Password")+':</label>\
|
||||
<input type="text" id="PASSWD" name="graphics_pw" />\
|
||||
<div class="tip">'+tr("Password for the VNC server")+'</div>\
|
||||
</div>\
|
||||
@@ -473,7 +475,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<div class="tip">'+tr("Name for the context variable")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt">\
|
||||
<label for="var_value">'+tr("Value:")+'</label>\
|
||||
<label for="var_value">'+tr("Value")+':</label>\
|
||||
<input type="text" id="var_value" name="var_value" />\
|
||||
<div class="tip">'+tr("Value of the context variable")+'</div>\
|
||||
</div>\
|
||||
@@ -481,7 +483,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<button class="add_remove_button add_button" id="add_context_button" value="add_context">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_context_button" value="remove_input">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="context_box">'+tr("Current variables:")+'</label>\
|
||||
<label for="context_box">'+tr("Current variables")+':</label>\
|
||||
<select id="context_box" name="context_box" style="height:100px;" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
@@ -496,12 +498,12 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr("Placement")+'</legend>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="REQUIREMENTS">'+tr("Requirements:")+'</label>\
|
||||
<label for="REQUIREMENTS">'+tr("Requirements")+':</label>\
|
||||
<input type="text" id="REQUIREMENTS" name="requirements" />\
|
||||
<div class="tip">'+tr("Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="RANK">'+tr("Rank:")+'</label>\
|
||||
<label for="RANK">'+tr("Rank")+':</label>\
|
||||
<input type="text" id="RANK" name="rank" />\
|
||||
<div class="tip">'+tr("This field sets which attribute will be used to sort the suitable hosts for this VM. Basically, it defines which hosts are more suitable than others")+'</div>\
|
||||
</div>\
|
||||
@@ -517,7 +519,7 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<fieldset><legend>'+tr("Raw")+'</legend>\
|
||||
<!--set TYPE to current xen/kvm -->\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="DATA">'+tr("Data:")+'</label>\
|
||||
<label for="DATA">'+tr("Data")+':</label>\
|
||||
<input type="hidden" id="TYPE" name="type" />\
|
||||
<input type="text" id="DATA" name="data" />\
|
||||
<div class="tip">'+tr("Raw data to be passed directly to the hypervisor")+'</div>\
|
||||
@@ -529,24 +531,24 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
<!--custom variables -->\
|
||||
<div class="vm_section" id="custom_var">\
|
||||
<div class="show_hide" id="add_context_cb">\
|
||||
<h3>'+tr('Add custom variables')+' <a id="add_custom_var" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
<h3>'+tr("Add custom variables")+' <a id="add_custom_var" class="icon_left" href="#"><span class="ui-icon ui-icon-plus" /></a></h3>\
|
||||
</div>\
|
||||
<fieldset><legend>'+tr('Custom variables')+'</legend>\
|
||||
<fieldset><legend>'+tr("Custom variables")+'</legend>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="custom_var_name">'+tr('Name')+':</label>\
|
||||
<label for="custom_var_name">'+tr("Name")+':</label>\
|
||||
<input type="text" id="custom_var_name" name="custom_var_name" />\
|
||||
<div class="tip">'+tr('Name for the custom variable')+'</div>\
|
||||
<div class="tip">'+tr("Name for the custom variable")+'</div>\
|
||||
</div>\
|
||||
<div class="vm_param kvm_opt xen_opt vmware_opt">\
|
||||
<label for="custom_var_value">'+tr('Value')+':</label>\
|
||||
<label for="custom_var_value">'+tr("Value")+':</label>\
|
||||
<input type="text" id="custom_var_value" name="custom_var_value" />\
|
||||
<div class="tip">'+tr('Value of the custom variable')+'</div>\
|
||||
<div class="tip">'+tr("Value of the custom variable")+'</div>\
|
||||
</div>\
|
||||
<div class="">\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_button" value="add_custom_var">'+tr('Add')+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_button" value="remove_custom_var">'+tr('Remove selected')+'</button>\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_button" value="add_custom_var">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_button" value="remove_custom_var">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="custom_var_box">'+tr('Current variables')+':</label>\
|
||||
<label for="custom_var_box">'+tr("Current variables")+':</label>\
|
||||
<select id="custom_var_box" name="custom_var_box" style="height:100px;" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
@@ -584,16 +586,16 @@ var create_template_tmpl = '<div id="template_create_tabs">\
|
||||
|
||||
var update_template_tmpl =
|
||||
'<form action="javascript:alert(\'js error!\');">\
|
||||
<h3 style="margin-bottom:10px;">'+tr('Please, choose and modify the template you want to update')+':</h3>\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Please, choose and modify the template you want to update")+':</h3>\
|
||||
<fieldset style="border-top:none;">\
|
||||
<label for="template_template_update_select">'+tr('Select a network')+':</label>\
|
||||
<label for="template_template_update_select">'+tr("Select a network")+':</label>\
|
||||
<select id="template_template_update_select" name="template_template_update_select"></select>\
|
||||
<div class="clear"></div>\
|
||||
<div>\
|
||||
<label for="template_template_update_public">'+tr('Public')+':</label>\
|
||||
<label for="template_template_update_public">'+tr("Public")+':</label>\
|
||||
<input type="checkbox" name="template_template_update_public" id="template_template_update_public" />\
|
||||
</div>\
|
||||
<label for="template_template_update_textarea">'+tr('Template')+':</label>\
|
||||
<label for="template_template_update_textarea">'+tr("Template")+':</label>\
|
||||
<div class="clear"></div>\
|
||||
<textarea id="template_template_update_textarea" style="width:100%; height:14em;"></textarea>\
|
||||
</fieldset>\
|
||||
@@ -770,14 +772,14 @@ var template_buttons = {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change owner"),
|
||||
select: users_sel,
|
||||
tip: tr("Select the new owner:"),
|
||||
tip: tr("Select the new owner")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
"Template.chgrp" : {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change group"),
|
||||
select: groups_sel,
|
||||
tip: tr("Select the new group:"),
|
||||
tip: tr("Select the new group")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
"action_list" : {
|
||||
@@ -911,7 +913,8 @@ function updateTemplateInfo(request,template){
|
||||
content:
|
||||
'<table id="info_template_table" class="info_table" style="width:80%">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">'+tr("Template")+' \"'+template_info.NAME+'\" '+tr("information")+'</th></tr>\
|
||||
<tr><th colspan="2">'+tr("Template")+' \"'+template_info.NAME+'\" '+
|
||||
tr("information")+'</th></tr>\
|
||||
</thead>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr("ID")+'</td>\
|
||||
@@ -966,7 +969,7 @@ function setupCreateTemplateDialog(){
|
||||
// ui.index // zero-based index of the selected (clicked) tab
|
||||
|
||||
//disable all items
|
||||
$(items,dialog).attr("disabled","disabled");
|
||||
$(items,dialog).attr('disabled','disabled');
|
||||
//hide all mandatory icons
|
||||
$('.vm_param .man_icon',dialog).css("display","none");
|
||||
|
||||
@@ -980,7 +983,7 @@ function setupCreateTemplateDialog(){
|
||||
$('.kernel, .bootloader', section_os_boot).hide();
|
||||
$('select#BOOT',section_os_boot).parent().hide();
|
||||
//unselect boot method
|
||||
$('select#boot_method option',section_os_boot).removeAttr("selected");
|
||||
$('select#boot_method option',section_os_boot).removeAttr('selected');
|
||||
|
||||
//hide non common sections
|
||||
$(section_inputs).hide();
|
||||
@@ -1030,7 +1033,7 @@ function setupCreateTemplateDialog(){
|
||||
var enable_kvm = function(){
|
||||
man_class="kvm";
|
||||
opt_class="kvm_opt";
|
||||
$(kvm_items,dialog).removeAttr("disabled");
|
||||
$(kvm_items,dialog).removeAttr('disabled');
|
||||
$('.kvm .man_icon',dialog).css("display","inline-block");
|
||||
|
||||
//KVM particularities:
|
||||
@@ -1079,7 +1082,7 @@ function setupCreateTemplateDialog(){
|
||||
var enable_xen = function(){
|
||||
man_class="xen";
|
||||
opt_class="xen_opt";
|
||||
$(xen_items,dialog).removeAttr("disabled");
|
||||
$(xen_items,dialog).removeAttr('disabled');
|
||||
$('.xen .man_icon',dialog).css("display","inline-block");
|
||||
|
||||
// XEN particularities:
|
||||
@@ -1115,7 +1118,7 @@ function setupCreateTemplateDialog(){
|
||||
var enable_vmware = function() {
|
||||
man_class="vmware";
|
||||
opt_class="vmware_opt";
|
||||
$(vmware_items,dialog).removeAttr("disabled");
|
||||
$(vmware_items,dialog).removeAttr('disabled');
|
||||
$('.vmware .man_icon',dialog).css("display","inline-block");
|
||||
|
||||
//VMWARE particularities
|
||||
@@ -1153,7 +1156,7 @@ function setupCreateTemplateDialog(){
|
||||
//we fail it the item is enabled and has no value
|
||||
$.each(man_items,function(){
|
||||
var item = $(this);
|
||||
if (item.parents(".vm_param").attr("disabled") ||
|
||||
if (item.parents(".vm_param").attr('disabled') ||
|
||||
!(item.val().length)) {
|
||||
r = false;
|
||||
return false;
|
||||
@@ -1184,7 +1187,7 @@ function setupCreateTemplateDialog(){
|
||||
var id = null;
|
||||
$.each(fields,function(){
|
||||
var field = $(this);
|
||||
if (!(field.parents(".vm_param").attr("disabled")) &&
|
||||
if (!(field.parents(".vm_param").attr('disabled')) &&
|
||||
field.val().length){
|
||||
//Pick up parent's ID if we do not have one
|
||||
id = field.attr('id').length ? field.attr('id') : field.parent().attr('id');
|
||||
@@ -1218,7 +1221,7 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
fields.each(function(){
|
||||
var field=$(this);
|
||||
if (!(field.parents(".vm_param").attr("disabled"))){ //if ! disabled
|
||||
if (!(field.parents(".vm_param").attr('disabled'))){ //if ! disabled
|
||||
if (field.val().length){ //if has a length
|
||||
template_json[field.attr('id')]=field.val();
|
||||
};
|
||||
@@ -1333,19 +1336,19 @@ function setupCreateTemplateDialog(){
|
||||
{
|
||||
case "kernel":
|
||||
$('.bootloader',section_os_boot).hide();
|
||||
$('.bootloader',section_os_boot).attr("disabled","disabled");
|
||||
$('.bootloader',section_os_boot).attr('disabled','disabled');
|
||||
$('.kernel',section_os_boot).show();
|
||||
$('.kernel',section_os_boot).removeAttr("disabled");
|
||||
$('.kernel',section_os_boot).removeAttr('disabled');
|
||||
break;
|
||||
case "bootloader":
|
||||
$('.kernel',section_os_boot).hide();
|
||||
$('.kernel',section_os_boot).attr("disabled","disabled");
|
||||
$('.kernel',section_os_boot).attr('disabled','disabled');
|
||||
$('.bootloader',section_os_boot).show();
|
||||
$('.bootloader',section_os_boot).removeAttr("disabled");
|
||||
$('.bootloader',section_os_boot).removeAttr('disabled');
|
||||
break;
|
||||
default:
|
||||
$('.kernel, .bootloader',section_os_boot).hide();
|
||||
$('.kernel, .bootloader',section_os_boot).attr("disabled","disabled");
|
||||
$('.kernel, .bootloader',section_os_boot).attr('disabled','disabled');
|
||||
$('.kernel input, .bootloader input',section_os_boot).val("");
|
||||
};
|
||||
});
|
||||
@@ -1389,26 +1392,26 @@ function setupCreateTemplateDialog(){
|
||||
{
|
||||
case "disk":
|
||||
$('.add_image',section_disks).hide();
|
||||
$('.add_image',section_disks).attr("disabled","disabled");
|
||||
$('.add_image',section_disks).attr('disabled','disabled');
|
||||
$('.add_disk',section_disks).show();
|
||||
$('.add_disk',section_disks).removeAttr("disabled");
|
||||
$('.add_disk',section_disks).removeAttr('disabled');
|
||||
$('#TARGET',section_disks).parent().removeClass(opt_class);
|
||||
$('#TARGET',section_disks).parent().addClass(man_class);
|
||||
break;
|
||||
case "image":
|
||||
$('.add_disk',section_disks).hide();
|
||||
$('.add_disk',section_disks).attr("disabled","disabled");
|
||||
$('.add_disk',section_disks).attr('disabled','disabled');
|
||||
$('.add_image',section_disks).show();
|
||||
$('.add_image',section_disks).removeAttr("disabled");
|
||||
$('.add_image',section_disks).removeAttr('disabled');
|
||||
$('#TARGET',section_disks).parent().removeClass(man_class);
|
||||
$('#TARGET',section_disks).parent().addClass(opt_class);
|
||||
break;
|
||||
}
|
||||
$('#SIZE',section_disks).parent().hide();
|
||||
$('#SIZE',section_disks).parent().attr("disabled","disabled");
|
||||
$('#SIZE',section_disks).parent().attr('disabled','disabled');
|
||||
$('#FORMAT',section_disks).parent().hide();
|
||||
$('#SIZE',section_disks).parent().attr("disabled","disabled");
|
||||
$('#TYPE :selected',section_disks).removeAttr("selected");
|
||||
$('#SIZE',section_disks).parent().attr('disabled','disabled');
|
||||
$('#TYPE :selected',section_disks).removeAttr('selected');
|
||||
//hide_disabled(section_disks);
|
||||
});
|
||||
|
||||
@@ -1421,7 +1424,7 @@ function setupCreateTemplateDialog(){
|
||||
case "swap":
|
||||
//size mandatory
|
||||
$('#SIZE',section_disks).parent().show();
|
||||
$('#SIZE',section_disks).parent().removeAttr("disabled");
|
||||
$('#SIZE',section_disks).parent().removeAttr('disabled');
|
||||
$('#SIZE',section_disks).parent().removeClass(opt_class);
|
||||
$('#SIZE',section_disks).parent().addClass(man_class);
|
||||
|
||||
@@ -1431,17 +1434,17 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
//format hidden
|
||||
$('#FORMAT',section_disks).parent().hide();
|
||||
$('#FORMAT',section_disks).parent().attr("disabled","disabled");
|
||||
$('#FORMAT',section_disks).parent().attr('disabled','disabled');
|
||||
|
||||
//source hidden
|
||||
$('#SOURCE',section_disks).parent().hide();
|
||||
$('#SOURCE',section_disks).parent().
|
||||
attr("disabled","disabled");
|
||||
attr('disabled','disabled');
|
||||
break;
|
||||
case "fs":
|
||||
//size mandatory
|
||||
$('#SIZE',section_disks).parent().show();
|
||||
$('#SIZE',section_disks).parent().removeAttr("disabled");
|
||||
$('#SIZE',section_disks).parent().removeAttr('disabled');
|
||||
$('#SIZE',section_disks).parent().removeClass(opt_class);
|
||||
$('#SIZE',section_disks).parent().addClass(man_class);
|
||||
|
||||
@@ -1451,19 +1454,19 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
//format mandatory
|
||||
$('#FORMAT',section_disks).parent().show();
|
||||
$('#FORMAT',section_disks).parent().removeAttr("disabled");
|
||||
$('#FORMAT',section_disks).parent().removeAttr('disabled');
|
||||
$('#FORMAT',section_disks).parent().removeClass(opt_class);
|
||||
$('#FORMAT',section_disks).parent().addClass(man_class);
|
||||
|
||||
//source hidden
|
||||
$('#SOURCE',section_disks).parent().hide();
|
||||
$('#SOURCE',section_disks).parent().
|
||||
attr("disabled","disabled");
|
||||
attr('disabled','disabled');
|
||||
break;
|
||||
case "block":
|
||||
//size shown and optional
|
||||
$('#SIZE',section_disks).parent().show();
|
||||
$('#SIZE',section_disks).parent().removeAttr("disabled");
|
||||
$('#SIZE',section_disks).parent().removeAttr('disabled');
|
||||
$('#SIZE',section_disks).parent().removeClass(man_class);
|
||||
$('#SIZE',section_disks).parent().addClass(opt_class);
|
||||
|
||||
@@ -1473,12 +1476,12 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
//format hidden
|
||||
$('#FORMAT',section_disks).parent().hide();
|
||||
$('#FORMAT',section_disks).parent().attr("disabled","disabled");
|
||||
$('#FORMAT',section_disks).parent().attr('disabled','disabled');
|
||||
|
||||
//source hidden
|
||||
$('#SOURCE',section_disks).parent().hide();
|
||||
$('#SOURCE',section_disks).parent().
|
||||
attr("disabled","disabled");
|
||||
attr('disabled','disabled');
|
||||
break;
|
||||
case "floppy":
|
||||
case "disk":
|
||||
@@ -1486,7 +1489,7 @@ function setupCreateTemplateDialog(){
|
||||
default:
|
||||
//size hidden
|
||||
$('#SIZE',section_disks).parent().hide();
|
||||
$('#SIZE',section_disks).parent().attr("disabled","disabled");
|
||||
$('#SIZE',section_disks).parent().attr('disabled','disabled');
|
||||
|
||||
//target mandatory
|
||||
$('#TARGET',section_disks).parent().removeClass(opt_class);
|
||||
@@ -1494,12 +1497,12 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
//format optional
|
||||
$('#FORMAT',section_disks).parent().hide();
|
||||
$('#FORMAT',section_disks).parent().attr("disabled","disabled");
|
||||
$('#FORMAT',section_disks).parent().attr('disabled','disabled');
|
||||
|
||||
//source shown
|
||||
$('#SOURCE',section_disks).parent().show();
|
||||
$('#SOURCE',section_disks).parent().
|
||||
removeAttr("disabled");
|
||||
removeAttr('disabled');
|
||||
}
|
||||
//hide_disabled(section_disks);
|
||||
});
|
||||
@@ -1544,23 +1547,23 @@ function setupCreateTemplateDialog(){
|
||||
|
||||
//firewall
|
||||
$('.firewall',section_networks).hide();
|
||||
$('.firewall',section_networks).attr("disabled","disabled");
|
||||
$('.firewall',section_networks).attr('disabled','disabled');
|
||||
$('.firewall_select',section_networks).show();
|
||||
$('.firewall_select select option',section_networks).removeAttr("selected");
|
||||
$('.firewall_select select option',section_networks).removeAttr('selected');
|
||||
|
||||
select = $('#network_vs_niccfg :checked',section_networks).val();
|
||||
switch (select) {
|
||||
case "network":
|
||||
$('.niccfg',section_networks).hide();
|
||||
$('.niccfg',section_networks).attr("disabled","disabled");
|
||||
$('.niccfg',section_networks).attr('disabled','disabled');
|
||||
$('.network',section_networks).show();
|
||||
$('.network',section_networks).removeAttr("disabled");
|
||||
$('.network',section_networks).removeAttr('disabled');
|
||||
break;
|
||||
case "niccfg":
|
||||
$('.network',section_networks).hide();
|
||||
$('.network',section_networks).attr("disabled","disabled");
|
||||
$('.network',section_networks).attr('disabled','disabled');
|
||||
$('.niccfg',section_networks).show();
|
||||
$('.niccfg',section_networks).removeAttr("disabled");
|
||||
$('.niccfg',section_networks).removeAttr('disabled');
|
||||
break;
|
||||
}
|
||||
//hide_disabled(section_networks);
|
||||
@@ -1569,21 +1572,21 @@ function setupCreateTemplateDialog(){
|
||||
$('#black_white_tcp',section_networks).change(function(){
|
||||
switch ($(this).val()) {
|
||||
case "whitelist":
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().hide();
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().removeAttr("disabled");
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().removeAttr('disabled');
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().show();
|
||||
break;
|
||||
case "blacklist":
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().hide();
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().removeAttr("disabled");
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().removeAttr('disabled');
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().show();
|
||||
break;
|
||||
default:
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#WHITE_PORTS_TCP',section_networks).parent().hide();
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#BLACK_PORTS_TCP',section_networks).parent().hide();
|
||||
};
|
||||
});
|
||||
@@ -1591,21 +1594,21 @@ function setupCreateTemplateDialog(){
|
||||
$('#black_white_udp',section_networks).change(function(){
|
||||
switch ($(this).val()) {
|
||||
case "whitelist":
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().hide();
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().removeAttr("disabled");
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().removeAttr('disabled');
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().show();
|
||||
break;
|
||||
case "blacklist":
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().hide();
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().removeAttr("disabled");
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().removeAttr('disabled');
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().show();
|
||||
break;
|
||||
default:
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#WHITE_PORTS_UDP',section_networks).parent().hide();
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().attr("disabled","disabled");
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().attr('disabled','disabled');
|
||||
$('#BLACK_PORTS_UDP',section_networks).parent().hide();
|
||||
};
|
||||
});
|
||||
@@ -1671,18 +1674,18 @@ function setupCreateTemplateDialog(){
|
||||
$('#PORT',section_graphics).parent().show();
|
||||
$('#PASSWD',section_graphics).parent().show();
|
||||
$('#KEYMAP',section_graphics).parent().show();
|
||||
$('#PORT',section_graphics).parent().removeAttr("disabled");
|
||||
$('#PASSWD',section_graphics).parent().removeAttr("disabled");
|
||||
$('#KEYMAP',section_graphics).parent().removeAttr("disabled");
|
||||
$('#PORT',section_graphics).parent().removeAttr('disabled');
|
||||
$('#PASSWD',section_graphics).parent().removeAttr('disabled');
|
||||
$('#KEYMAP',section_graphics).parent().removeAttr('disabled');
|
||||
break;
|
||||
case "sdl":
|
||||
$('#LISTEN',section_graphics).parent().show();
|
||||
$('#PORT',section_graphics).parent().hide();
|
||||
$('#PASSWD',section_graphics).parent().hide();
|
||||
$('#KEYMAP',section_graphics).parent().hide();
|
||||
$('#PORT',section_graphics).parent().attr("disabled","disabled");
|
||||
$('#PASSWD',section_graphics).parent().attr("disabled","disabled");
|
||||
$('#KEYMAP',section_graphics).parent().attr("disabled","disabled");
|
||||
$('#PORT',section_graphics).parent().attr('disabled','disabled');
|
||||
$('#PASSWD',section_graphics).parent().attr('disabled','disabled');
|
||||
$('#KEYMAP',section_graphics).parent().attr('disabled','disabled');
|
||||
break;
|
||||
default:
|
||||
$('#LISTEN',section_graphics).parent().hide();
|
||||
@@ -1913,7 +1916,7 @@ function setupCreateTemplateDialog(){
|
||||
scope = section_context;
|
||||
vm_json["CONTEXT"] = {};
|
||||
$('#context_box option',scope).each(function(){
|
||||
name = $(this).attr("name");
|
||||
name = $(this).attr('name');
|
||||
value = $(this).val();
|
||||
vm_json["CONTEXT"][name]=value;
|
||||
});
|
||||
@@ -1936,7 +1939,7 @@ function setupCreateTemplateDialog(){
|
||||
//custom vars
|
||||
scope = section_custom_var;
|
||||
$('#custom_var_box option',scope).each(function(){
|
||||
name = $(this).attr("name");
|
||||
name = $(this).attr('name');
|
||||
value = $(this).val();
|
||||
vm_json[name]=value;
|
||||
});
|
||||
@@ -1999,7 +2002,7 @@ function popUpCreateTemplateDialog(){
|
||||
|
||||
function setupTemplateTemplateUpdateDialog(){
|
||||
//Append to DOM
|
||||
dialogs_context.append('<div id="template_template_update_dialog" title="'+tr('Update a template')+'"></div>');
|
||||
dialogs_context.append('<div id="template_template_update_dialog" title="'+tr("Update a template")+'"></div>');
|
||||
var dialog = $('#template_template_update_dialog',dialogs_context);
|
||||
|
||||
//Put HTML in place
|
||||
@@ -2025,9 +2028,9 @@ function setupTemplateTemplateUpdateDialog(){
|
||||
var templ_public = is_public_template(id);
|
||||
|
||||
if (templ_public){
|
||||
$('#template_template_update_public',dialog).attr("checked","checked")
|
||||
$('#template_template_update_public',dialog).attr('checked','checked')
|
||||
} else {
|
||||
$('#template_template_update_public',dialog).removeAttr("checked")
|
||||
$('#template_template_update_public',dialog).removeAttr('checked')
|
||||
}
|
||||
|
||||
Sunstone.runAction("Template.fetch_template",id);
|
||||
@@ -2073,7 +2076,7 @@ function popUpTemplateTemplateUpdateDialog(){
|
||||
var dialog = $('#template_template_update_dialog');
|
||||
$('#template_template_update_select',dialog).html(select);
|
||||
$('#template_template_update_textarea',dialog).val("");
|
||||
$('#template_template_update_public',dialog).removeAttr("checked")
|
||||
$('#template_template_update_public',dialog).removeAttr('checked')
|
||||
|
||||
if (sel_elems.length >= 1){ //several items in the list are selected
|
||||
//grep them
|
||||
@@ -2086,7 +2089,7 @@ function popUpTemplateTemplateUpdateDialog(){
|
||||
});
|
||||
$('#template_template_update_select',dialog).html(new_select);
|
||||
if (sel_elems.length == 1) {
|
||||
$('#template_template_update_select option',dialog).attr("selected","selected");
|
||||
$('#template_template_update_select option',dialog).attr('selected','selected');
|
||||
$('#template_template_update_select',dialog).trigger("change");
|
||||
};
|
||||
|
||||
@@ -2102,7 +2105,7 @@ function setTemplateAutorefresh() {
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_templates);
|
||||
var filter = $("#datatable_templates_filter input",
|
||||
dataTable_templates.parents('#datatable_templates_wrapper')).attr("value");
|
||||
dataTable_templates.parents('#datatable_templates_wrapper')).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Template.autorefresh");
|
||||
}
|
||||
@@ -2111,14 +2114,14 @@ function setTemplateAutorefresh() {
|
||||
|
||||
function is_public_template(id){
|
||||
var data = getElementData(id,"#template",dataTable_templates)[6];
|
||||
return $(data).attr("checked");
|
||||
return $(data).attr('checked');
|
||||
};
|
||||
|
||||
function setupTemplateActionCheckboxes(){
|
||||
$('input.action_cb#cb_public_template',dataTable_templates).live("click",function(){
|
||||
var $this = $(this)
|
||||
var id=$this.attr("elem_id");
|
||||
if ($this.attr("checked"))
|
||||
var id=$this.attr('elem_id');
|
||||
if ($this.attr('checked'))
|
||||
Sunstone.runAction("Template.publish",id);
|
||||
else Sunstone.runAction("Template.unpublish",id);
|
||||
|
||||
|
||||
@@ -27,11 +27,11 @@ var users_tab_content =
|
||||
<table id="datatable_users" class="display">\
|
||||
<thead>\
|
||||
<tr>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">'+tr('All')+'</input></th>\
|
||||
<th>'+tr('ID')+'</th>\
|
||||
<th>'+tr('Name')+'</th>\
|
||||
<th>'+tr('Group')+'</th>\
|
||||
<th>'+tr('Authentication driver')+'</th>\
|
||||
<th class="check"><input type="checkbox" class="check_all" value="">'+tr("All")+'</input></th>\
|
||||
<th>'+tr("ID")+'</th>\
|
||||
<th>'+tr("Name")+'</th>\
|
||||
<th>'+tr("Group")+'</th>\
|
||||
<th>'+tr("Authentication driver")+'</th>\
|
||||
</tr>\
|
||||
</thead>\
|
||||
<tbody id="tbodyusers">\
|
||||
@@ -43,18 +43,18 @@ var create_user_tmpl =
|
||||
'<form id="create_user_form" action="">\
|
||||
<fieldset>\
|
||||
<div>\
|
||||
<label for="username">'+tr('Username')+':</label>\
|
||||
<label for="username">'+tr("Username")+':</label>\
|
||||
<input type="text" name="username" id="username" /><br />\
|
||||
<label for="pass">'+tr('Password')+':</label>\
|
||||
<label for="pass">'+tr("Password")+':</label>\
|
||||
<input type="password" name="pass" id="pass" />\
|
||||
<label for="driver">'+tr('Authentication')+':</label>\
|
||||
<label for="driver">'+tr("Authentication")+':</label>\
|
||||
<select name="driver" id="driver">\
|
||||
<option value="core" selected="selected">'+tr('Core')+'</option>\
|
||||
<option value="ssh">'+tr('SSH')+'</option>\
|
||||
<option value="x509">'+tr('x509')+'</option>\
|
||||
<option value="server_cipher">'+tr('Server (Cipher)')+'</option>\
|
||||
<option value="server_x509">'+tr('Server (x509)')+'</option>\
|
||||
<option value="public">'+tr('Public')+'</option>\
|
||||
<option value="core" selected="selected">'+tr("Core")+'</option>\
|
||||
<option value="ssh">'+tr("SSH")+'</option>\
|
||||
<option value="x509">'+tr("x509")+'</option>\
|
||||
<option value="server_cipher">'+tr("Server (Cipher)")+'</option>\
|
||||
<option value="server_x509">'+tr("Server (x509)")+'</option>\
|
||||
<option value="public">'+tr("Public")+'</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -69,15 +69,15 @@ var create_user_tmpl =
|
||||
var update_pw_tmpl = '<form id="update_user_pw_form" action="">\
|
||||
<fieldset>\
|
||||
<div>\
|
||||
<div>'+tr('This will change the password for the selected users')+':</div>\
|
||||
<label for="new_password">'+tr('New password')+':</label>\
|
||||
<div>'+tr("This will change the password for the selected users")+':</div>\
|
||||
<label for="new_password">'+tr("New password")+':</label>\
|
||||
<input type="password" name="new_password" id="new_password" />\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="button" id="update_pw_submit" value="User.update">'+tr('Change')+'</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr('Reset')+'</button>\
|
||||
<button class="button" id="update_pw_submit" value="User.update">'+tr("Change")+'</button>\
|
||||
<button class="button" type="reset" value="reset">'+tr("Reset")+'</button>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
</form>';
|
||||
@@ -252,20 +252,20 @@ var user_buttons = {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change group"),
|
||||
select: groups_sel,
|
||||
tip: tr("This will change the main group of the selected users. Select the new group:")
|
||||
tip: tr("This will change the main group of the selected users. Select the new group")+":"
|
||||
},
|
||||
"User.chauth" : {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change authentication"),
|
||||
select: function() {
|
||||
return '<option value="core" selected="selected">'+tr('Core')+'</option>\
|
||||
<option value="ssh">'+tr('SSH')+'</option>\
|
||||
<option value="x509">'+tr('x509')+'</option>\
|
||||
<option value="server_cipher">'+tr('Server (Cipher)')+'</option>\
|
||||
<option value="server_x509">'+tr('Server (x509)')+'</option>\
|
||||
<option value="public">'+tr('Public')+'</option>'
|
||||
return '<option value="core" selected="selected">'+tr("Core")+'</option>\
|
||||
<option value="ssh">'+tr("SSH")+'</option>\
|
||||
<option value="x509">'+tr("x509")+'</option>\
|
||||
<option value="server_cipher">'+tr("Server (Cipher)")+'</option>\
|
||||
<option value="server_x509">'+tr("Server (x509)")+'</option>\
|
||||
<option value="public">'+tr("Public")+'</option>'
|
||||
},
|
||||
tip: tr("Please choose the new type of authentication for the selected users:")
|
||||
tip: tr("Please choose the new type of authentication for the selected users")+":"
|
||||
},
|
||||
// "User.addgroup" : {
|
||||
// type: "confirm_with_select",
|
||||
@@ -395,7 +395,7 @@ function setupCreateUserDialog(){
|
||||
}
|
||||
|
||||
function setupUpdatePasswordDialog(){
|
||||
dialogs_context.append('<div title="'+tr('Change password')+'" id="update_user_pw_dialog"></div>');
|
||||
dialogs_context.append('<div title="'+tr("Change password")+'" id="update_user_pw_dialog"></div>');
|
||||
$update_pw_dialog = $('#update_user_pw_dialog',dialogs_context);
|
||||
var dialog = $update_pw_dialog;
|
||||
dialog.html(update_pw_tmpl);
|
||||
@@ -439,7 +439,7 @@ function setUserAutorefresh(){
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_users);
|
||||
var filter = $("#datatable_users_filter input",
|
||||
dataTable_users.parents("#datatable_users_wrapper")).attr("value");
|
||||
dataTable_users.parents("#datatable_users_wrapper")).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("User.autorefresh");
|
||||
}
|
||||
|
||||
@@ -75,12 +75,12 @@ var vms_tab_content =
|
||||
var create_vm_tmpl ='<form id="create_vm_form" action="">\
|
||||
<fieldset>\
|
||||
<div>\
|
||||
<label for="vm_name">'+tr("VM Name:")+'</label>\
|
||||
<label for="vm_name">'+tr("VM Name")+':</label>\
|
||||
<input type="text" name="vm_name" id="vm_name" /><br />\
|
||||
<label for="template_id">'+tr("Select template:")+'</label>\
|
||||
<label for="template_id">'+tr("Select template")+':</label>\
|
||||
<select id="template_id">\
|
||||
</select><br />\
|
||||
<label for="vm_n_times">'+tr("Deploy # VMs:")+'</label>\
|
||||
<label for="vm_n_times">'+tr("Deploy # VMs")+':</label>\
|
||||
<input type="text" name="vm_n_times" id="vm_n_times" value="1">\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -386,7 +386,7 @@ var vm_buttons = {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change owner"),
|
||||
select: users_sel,
|
||||
tip: tr("Select the new owner:"),
|
||||
tip: tr("Select the new owner")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
|
||||
@@ -394,7 +394,7 @@ var vm_buttons = {
|
||||
type: "confirm_with_select",
|
||||
text: tr("Change group"),
|
||||
select: groups_sel,
|
||||
tip: tr("Select the new group:"),
|
||||
tip: tr("Select the new group")+":",
|
||||
condition: mustBeAdmin
|
||||
},
|
||||
|
||||
@@ -815,8 +815,8 @@ function setupSaveasDialog(){
|
||||
var type = $('#image_type',this).val();
|
||||
|
||||
if (!id.length || !disk_id.length || !image_name.length) {
|
||||
notifyError(tr("Skipping VM ")+id+
|
||||
tr(". No disk id or image name specified"));
|
||||
notifyError(tr("Skipping VM ")+id+". "+
|
||||
tr("No disk id or image name specified"));
|
||||
}
|
||||
else {
|
||||
var obj = {
|
||||
@@ -853,25 +853,25 @@ function popUpSaveasDialog(elems){
|
||||
var li = '<li><a href="#saveas_tab_'+this+'">VM '+this+'</a></li>'
|
||||
$('#saveas_tabs ul',dialog).append(li);
|
||||
var tab = '<div class="saveas_tab" id="saveas_tab_'+this+'">\
|
||||
<div id="vm_id_text">'+tr('Saveas for VM with ID')+' <span id="vm_id">'+this+'</span></div>\
|
||||
<div id="vm_id_text">'+tr("Saveas for VM with ID")+' <span id="vm_id">'+this+'</span></div>\
|
||||
<fieldset>\
|
||||
<div>\
|
||||
<label for="vm_disk_id">'+tr('Select disk')+':</label>\
|
||||
<label for="vm_disk_id">'+tr("Select disk")+':</label>\
|
||||
<select id="vm_disk_id" name="vm_disk_id">\
|
||||
<option value="">'+tr('Retrieving')+'...</option>\
|
||||
<option value="">'+tr("Retrieving")+'...</option>\
|
||||
</select>\
|
||||
</div>\
|
||||
<div>\
|
||||
<label for="image_name">'+tr('Image name')+':</label>\
|
||||
<label for="image_name">'+tr("Image name")+':</label>\
|
||||
<input type="text" id="image_name" name="image_name" value="" />\
|
||||
</div>\
|
||||
<div>\
|
||||
<label for="img_attr_value">'+tr('Type')+':</label>\
|
||||
<label for="img_attr_value">'+tr("Type")+':</label>\
|
||||
<select id="image_type" name="image_type">\
|
||||
<option value="">'+tr('Default (current image type)')+'</option>\
|
||||
<option value="os">'+tr('OS')+'</option>\
|
||||
<option value="datablock">'+tr('Datablock')+'</option>\
|
||||
<option value="cdrom">'+tr('CD-ROM')+'</option>\
|
||||
<option value="">'+tr("Default (current image type)")+'</option>\
|
||||
<option value="os">'+tr("OS")+'</option>\
|
||||
<option value="datablock">'+tr("Datablock")+'</option>\
|
||||
<option value="cdrom">'+tr("CD-ROM")+'</oqption>\
|
||||
</select>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -891,7 +891,7 @@ function saveasDisksCallback(req,response){
|
||||
|
||||
var gen_option = function(id, name, source){
|
||||
if (name){
|
||||
return '<option value="'+id+'">'+name+" ("+tr("(disk id")+"): "+id+')</option>';
|
||||
return '<option value="'+id+'">'+name+" ("+tr("disk id")+"): "+id+')</option>';
|
||||
}
|
||||
else {
|
||||
return '<option value="'+id+'">'+source+" ("+tr("disk id")+"): "+id+')</option>';
|
||||
@@ -918,7 +918,7 @@ function setVMAutorefresh(){
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_vMachines);
|
||||
var filter = $("#datatable_vmachines_filter input",
|
||||
dataTable_vMachines.parents('#datatable_vmachines_wrapper')).attr("value");
|
||||
dataTable_vMachines.parents('#datatable_vmachines_wrapper')).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("VM.autorefresh");
|
||||
};
|
||||
@@ -996,16 +996,16 @@ function setupVNC(){
|
||||
});
|
||||
|
||||
dialog.bind( "dialogclose", function(event, ui) {
|
||||
var id = $vnc_dialog.attr("vm_id");
|
||||
var id = $vnc_dialog.attr('vm_id');
|
||||
rfb.disconnect();
|
||||
Sunstone.runAction("VM.stopvnc",id);
|
||||
});
|
||||
|
||||
$('.vnc',main_tabs_context).live("click",function(){
|
||||
//Which VM is it?
|
||||
var id = $(this).attr("vm_id");
|
||||
var id = $(this).attr('vm_id');
|
||||
//Set attribute to dialog
|
||||
$vnc_dialog.attr("vm_id",id);
|
||||
$vnc_dialog.attr('vm_id',id);
|
||||
//Request proxy server start
|
||||
Sunstone.runAction("VM.startvnc",id);
|
||||
return false;
|
||||
|
||||
@@ -56,7 +56,7 @@ var create_vn_tmpl =
|
||||
<input type="text" name="bridge" id="bridge" /><br />\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<label style="height:2em;">'+tr("Network type:")+'</label>\
|
||||
<label style="height:2em;">'+tr("Network type")+':</label>\
|
||||
<input type="radio" name="fixed_ranged" id="fixed_check" value="fixed" checked="checked">'+tr("Fixed network")+'</input><br />\
|
||||
<input type="radio" name="fixed_ranged" id="ranged_check" value="ranged">'+tr("Ranged network")+'</input><br />\
|
||||
</fieldset>\
|
||||
@@ -64,7 +64,7 @@ var create_vn_tmpl =
|
||||
<div id="easy_tabs">\
|
||||
<div id="fixed">\
|
||||
<fieldset>\
|
||||
<label for="leaseip">'+tr("Lease IP:")+'</label>\
|
||||
<label for="leaseip">'+tr("Lease IP")+':</label>\
|
||||
<input type="text" name="leaseip" id="leaseip" /><br />\
|
||||
<label for="leasemac">'+tr("Lease MAC (opt):")+'</label>\
|
||||
<input type="text" name="leasemac" id="leasemac" />\
|
||||
@@ -75,7 +75,7 @@ var create_vn_tmpl =
|
||||
<button class="add_remove_button" id="remove_lease" value="remove/lease">\
|
||||
'+tr("Remove selected")+'\
|
||||
</button>\
|
||||
<label for="leases">'+tr("Current leases:")+'</label>\
|
||||
<label for="leases">'+tr("Current leases")+':</label>\
|
||||
<select id="leases" name="leases" style="height:10em;" multiple>\
|
||||
<!-- insert leases -->\
|
||||
</select><br />\
|
||||
@@ -83,9 +83,9 @@ var create_vn_tmpl =
|
||||
</div>\
|
||||
<div id="ranged">\
|
||||
<fieldset>\
|
||||
<label for="net_address">'+tr("Network Address:")+'</label>\
|
||||
<label for="net_address">'+tr("Network Address")+':</label>\
|
||||
<input type="text" name="net_address" id="net_address" /><br />\
|
||||
<label for="net_size">'+tr("Network size:")+'</label>\
|
||||
<label for="net_size">'+tr("Network size")+':</label>\
|
||||
<input type="text" name="net_size" id="net_size" />\
|
||||
</fieldset>\
|
||||
</div>\
|
||||
@@ -94,14 +94,14 @@ var create_vn_tmpl =
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="">\
|
||||
<label for="custom_var_vnet_name">'+tr('Name')+':</label>\
|
||||
<label for="custom_var_vnet_name">'+tr("Name")+':</label>\
|
||||
<input type="text" id="custom_var_vnet_name" name="custom_var_vnet_name" />\
|
||||
<label for="custom_var_vnet_value">'+tr('Value')+':</label>\
|
||||
<label for="custom_var_vnet_value">'+tr("Value")+':</label>\
|
||||
<input type="text" id="custom_var_vnet_value" name="custom_var_vnet_value" />\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_vnet_button" value="add_custom_vnet_var">'+tr('Add')+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_vnet_button" value="remove_custom_vnet_var">'+tr('Remove selected')+'</button>\
|
||||
<button class="add_remove_button add_button" id="add_custom_var_vnet_button" value="add_custom_vnet_var">'+tr("Add")+'</button>\
|
||||
<button class="add_remove_button" id="remove_custom_var_vnet_button" value="remove_custom_vnet_var">'+tr("Remove selected")+'</button>\
|
||||
<div class="clear"></div>\
|
||||
<label for="custom_var_vnet_box">'+tr('Custom attributes')+':</label>\
|
||||
<label for="custom_var_vnet_box">'+tr("Custom attributes")+':</label>\
|
||||
<select id="custom_var_vnet_box" name="custom_var_vnet_box" style="height:100px;" multiple>\
|
||||
</select>\
|
||||
</div>\
|
||||
@@ -137,23 +137,23 @@ var create_vn_tmpl =
|
||||
|
||||
var update_vnet_tmpl =
|
||||
'<form action="javascript:alert(\'js error!\');">\
|
||||
<h3 style="margin-bottom:10px;">'+tr('Please, choose and modify the virtual network you want to update')+':</h3>\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Please, choose and modify the virtual network you want to update")+':</h3>\
|
||||
<fieldset style="border-top:none;">\
|
||||
<label for="vnet_template_update_select">'+tr('Select a network')+':</label>\
|
||||
<label for="vnet_template_update_select">'+tr("Select a network")+':</label>\
|
||||
<select id="vnet_template_update_select" name="vnet_template_update_select"></select>\
|
||||
<div class="clear"></div>\
|
||||
<div>\
|
||||
<label for="vnet_template_update_public">'+tr('Public')+':</label>\
|
||||
<label for="vnet_template_update_public">'+tr("Public")+':</label>\
|
||||
<input type="checkbox" name="vnet_template_update_public" id="vnet_template_update_public" />\
|
||||
</div>\
|
||||
<label for="vnet_template_update_textarea">'+tr('Template')+':</label>\
|
||||
<label for="vnet_template_update_textarea">'+tr("Template")+':</label>\
|
||||
<div class="clear"></div>\
|
||||
<textarea id="vnet_template_update_textarea" style="width:100%; height:14em;"></textarea>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="form_buttons">\
|
||||
<button class="button" id="vnet_template_update_button" value="Network.update_template">\
|
||||
'+tr('Update')+'\
|
||||
'+tr("Update")+'\
|
||||
</button>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
@@ -488,32 +488,33 @@ function updateVNetworkInfo(request,vn){
|
||||
var info_tab_content =
|
||||
'<table id="info_vn_table" class="info_table">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">'+tr('Virtual Network')+' '+vn_info.ID+' '+tr('information')+'</th></tr>\
|
||||
<tr><th colspan="2">'+tr("Virtual Network")+' '+vn_info.ID+' '+
|
||||
tr("information")+'</th></tr>\
|
||||
</thead>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('ID')+'</td>\
|
||||
<td class="key_td">'+tr("ID")+'</td>\
|
||||
<td class="value_td">'+vn_info.ID+'</td>\
|
||||
<tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Owner')+'</td>\
|
||||
<td class="key_td">'+tr("Owner")+'</td>\
|
||||
<td class="value_td">'+vn_info.UNAME+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Group')+'</td>\
|
||||
<td class="key_td">'+tr("Group")+'</td>\
|
||||
<td class="value_td">'+vn_info.GNAME+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Public')+'</td>\
|
||||
<td class="key_td">'+tr("Public")+'</td>\
|
||||
<td class="value_td">'+(parseInt(vn_info.PUBLIC) ? "yes" : "no" )+'</td>\
|
||||
</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr('Physical device')+'</td>\
|
||||
<td class="key_td">'+tr("Physical device")+'</td>\
|
||||
<td class="value_td">'+(vn_info.PHYDEV ? vn_info.PHYDEV : "--" )+'</td>\
|
||||
</tr>\
|
||||
</table>\
|
||||
<table id="vn_leases_info_table" class="info_table">\
|
||||
<thead>\
|
||||
<tr><th colspan="2">'+tr('Leases information')+'</th></tr>\
|
||||
<tr><th colspan="2">'+tr("Leases information")+'</th></tr>\
|
||||
</thead>'+
|
||||
printLeases(vn_info.LEASES)+
|
||||
'</table>';;
|
||||
@@ -700,7 +701,7 @@ function setupCreateVNetDialog() {
|
||||
|
||||
//Time to add custom attributes
|
||||
$('#custom_var_vnet_box option',$create_vn_dialog).each(function(){
|
||||
var attr_name = $(this).attr("name");
|
||||
var attr_name = $(this).attr('name');
|
||||
var attr_value = $(this).val();
|
||||
network_json["vnet"][attr_name] = attr_value;
|
||||
});
|
||||
@@ -728,7 +729,7 @@ function popUpCreateVnetDialog() {
|
||||
|
||||
function setupVNetTemplateUpdateDialog(){
|
||||
//Append to DOM
|
||||
dialogs_context.append('<div id="vnet_template_update_dialog" title="'+tr('Update network template')+'"></div>');
|
||||
dialogs_context.append('<div id="vnet_template_update_dialog" title="'+tr("Update network template")+'"></div>');
|
||||
var dialog = $('#vnet_template_update_dialog',dialogs_context);
|
||||
|
||||
//Put HTML in place
|
||||
@@ -754,9 +755,9 @@ function setupVNetTemplateUpdateDialog(){
|
||||
var vnet_public = is_public_vnet(id);
|
||||
|
||||
if (vnet_public){
|
||||
$('#vnet_template_update_public',dialog).attr("checked","checked")
|
||||
$('#vnet_template_update_public',dialog).attr('checked','checked')
|
||||
} else {
|
||||
$('#vnet_template_update_public',dialog).removeAttr("checked")
|
||||
$('#vnet_template_update_public',dialog).removeAttr('checked')
|
||||
}
|
||||
|
||||
Sunstone.runAction("Network.fetch_template",id);
|
||||
@@ -802,7 +803,7 @@ function popUpVNetTemplateUpdateDialog(){
|
||||
var dialog = $('#vnet_template_update_dialog');
|
||||
$('#vnet_template_update_select',dialog).html(select);
|
||||
$('#vnet_template_update_textarea',dialog).val("");
|
||||
$('#vnet_template_update_public',dialog).removeAttr("checked")
|
||||
$('#vnet_template_update_public',dialog).removeAttr('checked')
|
||||
|
||||
if (sel_elems.length >= 1){ //several items in the list are selected
|
||||
//grep them
|
||||
@@ -815,7 +816,7 @@ function popUpVNetTemplateUpdateDialog(){
|
||||
});
|
||||
$('#vnet_template_update_select',dialog).html(new_select);
|
||||
if (sel_elems.length == 1) {
|
||||
$('#vnet_template_update_select option',dialog).attr("selected","selected");
|
||||
$('#vnet_template_update_select option',dialog).attr('selected','selected');
|
||||
$('#vnet_template_update_select',dialog).trigger("change");
|
||||
}
|
||||
|
||||
@@ -827,7 +828,7 @@ function popUpVNetTemplateUpdateDialog(){
|
||||
}
|
||||
|
||||
function setupAddRemoveLeaseDialog() {
|
||||
dialogs_context.append('<div title="'+tr('Lease management')+'" id="lease_vn_dialog"></div>');
|
||||
dialogs_context.append('<div title="'+tr("Lease management")+'" id="lease_vn_dialog"></div>');
|
||||
$lease_vn_dialog = $('#lease_vn_dialog',dialogs_context)
|
||||
|
||||
var dialog = $lease_vn_dialog;
|
||||
@@ -835,10 +836,10 @@ function setupAddRemoveLeaseDialog() {
|
||||
dialog.html(
|
||||
'<form id="lease_vn_form" action="javascript:alert(\'js error!\');">\
|
||||
<fieldset>\
|
||||
<div>'+tr("Please specify:")+'</div>\
|
||||
<label for="add_lease_ip">'+tr("Lease IP:")+'</label>\
|
||||
<div>'+tr("Please specify")+':</div>\
|
||||
<label for="add_lease_ip">'+tr("Lease IP")+':</label>\
|
||||
<input type="text" name="add_lease_ip" id="add_lease_ip" /><br />\
|
||||
<label id="add_lease_mac_label" for="add_lease_mac">'+tr("Lease MAC:")+'</label>\
|
||||
<label id="add_lease_mac_label" for="add_lease_mac">'+tr("Lease MAC")+':</label>\
|
||||
<input type="text" name="add_lease_mac" id="add_lease_mac" />\
|
||||
</select>\
|
||||
</fieldset>\
|
||||
@@ -897,7 +898,7 @@ function setVNetAutorefresh() {
|
||||
setInterval(function(){
|
||||
var checked = $('input.check_item:checked',dataTable_vNetworks);
|
||||
var filter = $("#datatable_vnetworks_filter input",
|
||||
dataTable_vNetworks.parents("#datatable_vnetworks_wrapper")).attr("value");
|
||||
dataTable_vNetworks.parents("#datatable_vnetworks_wrapper")).attr('value');
|
||||
if (!checked.length && !filter.length){
|
||||
Sunstone.runAction("Network.autorefresh");
|
||||
}
|
||||
@@ -906,14 +907,14 @@ function setVNetAutorefresh() {
|
||||
|
||||
function is_public_vnet(id) {
|
||||
var data = getElementData(id,"#vnetwork",dataTable_vNetworks)[7];
|
||||
return $(data).attr("checked");
|
||||
return $(data).attr('checked');
|
||||
};
|
||||
|
||||
function setupVNetActionCheckboxes(){
|
||||
$('input.action_cb#cb_public_vnet',dataTable_vNetworks).live("click",function(){
|
||||
var $this = $(this)
|
||||
var id=$this.attr("elem_id");
|
||||
if ($this.attr("checked"))
|
||||
var id=$this.attr('elem_id');
|
||||
if ($this.attr('checked'))
|
||||
Sunstone.runAction("Network.publish",id);
|
||||
else Sunstone.runAction("Network.unpublish",id);
|
||||
|
||||
|
||||
@@ -112,13 +112,13 @@ function recountCheckboxes(dataTable){
|
||||
};
|
||||
//enable checkall box
|
||||
if (total_length == checked_length){
|
||||
$('.check_all',dataTable).attr("checked","checked");
|
||||
$('.check_all',dataTable).attr('checked','checked');
|
||||
} else {
|
||||
$('.check_all',dataTable).removeAttr("checked");
|
||||
$('.check_all',dataTable).removeAttr('checked');
|
||||
};
|
||||
} else { //no elements cheked
|
||||
//disable action buttons, uncheck checkAll
|
||||
$('.check_all',dataTable).removeAttr("checked");
|
||||
$('.check_all',dataTable).removeAttr('checked');
|
||||
$('.top_button, .list_button',context).button("disable");
|
||||
last_action_b.button("disable");
|
||||
};
|
||||
@@ -299,11 +299,11 @@ function initCheckAllBoxes(datatable){
|
||||
$('input.check_all',datatable).css({"border":"2px"});
|
||||
$('input.check_all',datatable).change(function(){
|
||||
var table = $(this).parents('table');
|
||||
var checked = $(this).attr("checked");
|
||||
var checked = $(this).attr('checked');
|
||||
if (checked) { //check all
|
||||
$('tbody input.check_item',table).attr("checked","checked");
|
||||
$('tbody input.check_item',table).attr('checked','checked');
|
||||
} else { //uncheck all
|
||||
$('tbody input.check_item',table).removeAttr("checked");
|
||||
$('tbody input.check_item',table).removeAttr('checked');
|
||||
};
|
||||
recountCheckboxes(table);
|
||||
});
|
||||
@@ -640,7 +640,7 @@ function setupTemplateUpdateDialog(){
|
||||
//Put HTML in place
|
||||
dialog.html(
|
||||
'<form action="javascript:alert(\'js error!\');">\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Please, choose and modify the template you want to update:")+'</h3>\
|
||||
<h3 style="margin-bottom:10px;">'+tr("Please, choose and modify the template you want to update")+':</h3>\
|
||||
<fieldset style="border-top:none;">\
|
||||
<label for="template_update_select">'+tr("Select a template")+':</label>\
|
||||
<select id="template_update_select" name="template_update_select"></select>\
|
||||
@@ -717,7 +717,7 @@ function popUpTemplateUpdateDialog(elem_str,select_items,sel_elems){
|
||||
});
|
||||
$('#template_update_select',dialog).html(new_select);
|
||||
if (sel_elems.length == 1) {
|
||||
$('#template_update_select option',dialog).attr("selected","selected");
|
||||
$('#template_update_select option',dialog).attr('selected','selected');
|
||||
$('#template_update_select',dialog).trigger("change");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -314,7 +314,7 @@ $(document).ready(function(){
|
||||
$('.action_button').live("click",function(){
|
||||
var error = 0;
|
||||
var table = null;
|
||||
var value = $(this).attr("value");
|
||||
var value = $(this).attr('value');
|
||||
var action = SunstoneCfg["actions"][value];
|
||||
if (!action) {
|
||||
notifyError("Action "+value+" not defined.");
|
||||
@@ -549,8 +549,8 @@ function initListButtons(){
|
||||
$('.multi_action_slct',main_tabs_context).each(function(){
|
||||
//prepare replacement buttons
|
||||
var buttonset = $('<div style="display:inline-block;" class="top_button"></div');
|
||||
var button1 = $('<button class="last_action_button action_button confirm_button confirm_with_select_button" value="">'+tr('Previous action')+'</button>').button();
|
||||
button1.attr("disabled","disabled");
|
||||
var button1 = $('<button class="last_action_button action_button confirm_button confirm_with_select_button" value="">'+tr("Previous action")+'</button>').button();
|
||||
button1.attr('disabled','disabled');
|
||||
var button2 = $('<button class="list_button" value="">See more</button>').button({
|
||||
text:false,
|
||||
icons: { primary: "ui-icon-triangle-1-s" }
|
||||
@@ -563,7 +563,7 @@ function initListButtons(){
|
||||
var options = $('option', $(this));
|
||||
var list = $('<ul class="action_list"></ul>');
|
||||
$.each(options,function(){
|
||||
var classes = $(this).attr("class");
|
||||
var classes = $(this).attr('class');
|
||||
var item = $('<li></li>');
|
||||
var a = $('<a href="#" class="'+classes+'" value="'+$(this).val()+'">'+$(this).text()+'</a>');
|
||||
a.val($(this).val());
|
||||
@@ -590,7 +590,7 @@ function initListButtons(){
|
||||
prev_action_button.removeClass("confirm_with_select_button");
|
||||
prev_action_button.removeClass("confirm_button");
|
||||
prev_action_button.removeClass("action_button");
|
||||
prev_action_button.addClass($(this).attr("class"));
|
||||
prev_action_button.addClass($(this).attr('class'));
|
||||
prev_action_button.button("option","label",$(this).text());
|
||||
prev_action_button.button("enable");
|
||||
$(this).parents('ul').hide("blind",100);
|
||||
|
||||
@@ -0,0 +1,485 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) */
|
||||
/* */
|
||||
/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
|
||||
/* not use this file except in compliance with the License. You may obtain */
|
||||
/* a copy of the License at */
|
||||
/* */
|
||||
/* http://www.apache.org/licenses/LICENSE-2.0 */
|
||||
/* */
|
||||
/* Unless required by applicable law or agreed to in writing, software */
|
||||
/* distributed under the License is distributed on an "AS IS" BASIS, */
|
||||
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
|
||||
/* See the License for the specific language governing permissions and */
|
||||
/* limitations under the License. */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
//Default translation template
|
||||
lang="en_US"
|
||||
datatable_lang=""
|
||||
locale={
|
||||
"Accept (default)":"",
|
||||
"Acl":"",
|
||||
"ACL Rules":"",
|
||||
"ACLs":"",
|
||||
"ACL String preview":"",
|
||||
"ACPI":"",
|
||||
"Add":"",
|
||||
"Add context variables":"",
|
||||
"Add custom variables":"",
|
||||
"Add disk/image":"",
|
||||
"Add disks/images":"",
|
||||
"Add Graphics":"",
|
||||
"Add Hypervisor raw options":"",
|
||||
"Add inputs":"",
|
||||
"Add lease":"",
|
||||
"Add network":"",
|
||||
"Add placement options":"",
|
||||
"Advanced mode":"",
|
||||
"Affected resources":"",
|
||||
"All":"",
|
||||
"Allowed operations":"",
|
||||
"Amount of RAM required for the VM, in Megabytes.":"",
|
||||
"Applies to":"",
|
||||
"Architecture":"",
|
||||
"are mandatory":"",
|
||||
"Arguments for the booting kernel":"",
|
||||
"Authentication":"",
|
||||
"Authentication driver":"",
|
||||
"Block":"",
|
||||
"Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM":"",
|
||||
"Boot":"",
|
||||
"Boot device type":"",
|
||||
"Bootloader":"",
|
||||
"Boot method":"",
|
||||
"Boot/OS options":"",
|
||||
"Bridge":"",
|
||||
"Bus":"",
|
||||
"Cancel":"",
|
||||
"Cannot contact server: is it running and reachable?":"",
|
||||
"Canvas not supported.":"",
|
||||
"Capacity":"",
|
||||
"Capacity options":"",
|
||||
"cdrom":"",
|
||||
"CD-ROM":"",
|
||||
"Change":"",
|
||||
"Change authentication":"",
|
||||
"Change group":"",
|
||||
"Change owner":"",
|
||||
"Change password":"",
|
||||
"Clone":"",
|
||||
"Clone this image":"",
|
||||
"Community":"",
|
||||
"Confirmation of action":"",
|
||||
"Context":"",
|
||||
"Context variable name and value must be filled in":"",
|
||||
"Core":"",
|
||||
"CPU":"",
|
||||
"CPU architecture to virtualization":"",
|
||||
"CPU Monitoring information":"",
|
||||
"CPU Use":"",
|
||||
"Create":"",
|
||||
"Create ACL":"",
|
||||
"Create an empty datablock":"",
|
||||
"Create group":"",
|
||||
"Create host":"",
|
||||
"Create Image":"",
|
||||
"Create user":"",
|
||||
"Create Virtual Machine":"",
|
||||
"Create Virtual Network":"",
|
||||
"Create VM Template":"",
|
||||
"Current disks":"",
|
||||
"Current inputs":"",
|
||||
"Current leases":"",
|
||||
"Current NICs":"",
|
||||
"Current variables":"",
|
||||
"Custom attribute name and value must be filled in":"",
|
||||
"Custom attributes":"",
|
||||
"Custom variable name and value must be filled in":"",
|
||||
"Custom variables":"",
|
||||
"Dashboard":"",
|
||||
"Data":"",
|
||||
"Datablock":"",
|
||||
"Default":"",
|
||||
"Default (current image type)":"",
|
||||
"Delete":"",
|
||||
"Delete host":"",
|
||||
"Deploy":"",
|
||||
"Deploy ID":"",
|
||||
"Deploy # VMs":"",
|
||||
"Description":"",
|
||||
"Device prefix":"",
|
||||
"Device to be mounted as root":"",
|
||||
"Device to map image disk. If set, it will overwrite the default device mapping":"",
|
||||
"Disable":"",
|
||||
"disabled":"",
|
||||
"Disallow access to the VM through the specified ports in the TCP protocol":"",
|
||||
"Disallow access to the VM through the specified ports in the UDP protocol":"",
|
||||
"Disk":"",
|
||||
"Disk file location path or URL":"",
|
||||
"disk id":"",
|
||||
"Disks":"",
|
||||
"Disk type":"",
|
||||
"Documentation":"",
|
||||
"Do you want to proceed?":"",
|
||||
"Driver":"",
|
||||
"Driver default":"",
|
||||
"Drivers":"",
|
||||
"Drop":"",
|
||||
"Dummy":"",
|
||||
"EC2":"",
|
||||
"Enable":"",
|
||||
"Error":"",
|
||||
"failed":"",
|
||||
"fd":"",
|
||||
"Features":"",
|
||||
"Fields marked with":"",
|
||||
"File":"",
|
||||
"Filesystem type":"",
|
||||
"Filesystem type for the fs images":"",
|
||||
"Fill in a new password":"",
|
||||
"Fixed network":"",
|
||||
"Floppy":"",
|
||||
"Fold / Unfold all sections":"",
|
||||
"Format":"",
|
||||
"FS":"",
|
||||
"FS type":"",
|
||||
"Get Information":"",
|
||||
"Get Pool of my/group\'s resources":"",
|
||||
"Get Pool of resources":"",
|
||||
"Graphics":"",
|
||||
"Graphics type":"",
|
||||
"Group":"",
|
||||
"Group ":"",
|
||||
"Group name":"",
|
||||
"Groups":"",
|
||||
"Hardware that will emulate this network interface. With Xen this is the type attribute of the vif.":"",
|
||||
"hd":"",
|
||||
"Historical monitoring information":"",
|
||||
"Hold":"",
|
||||
"Host":"",
|
||||
"Host information":"",
|
||||
"Hostname":"",
|
||||
"Host name missing!":"",
|
||||
"Host parameters":"",
|
||||
"Hosts":"",
|
||||
"Hosts CPU":"",
|
||||
"Host shares":"",
|
||||
"Hosts memory":"",
|
||||
"Hosts (total/active)":"",
|
||||
"Host template":"",
|
||||
"Human readable description of the image for other users.":"",
|
||||
"HW address associated with the network interface":"",
|
||||
"Icmp":"",
|
||||
"ICMP policy":"",
|
||||
"id":"",
|
||||
"ID":"",
|
||||
"IDE":"",
|
||||
"Image":"",
|
||||
"Image cannot be public and persistent":"",
|
||||
"Image information":"",
|
||||
"Image name":"",
|
||||
"Images":"",
|
||||
"Images (total/public)":"",
|
||||
"Image template":"",
|
||||
"IM MAD":"",
|
||||
"Info":"",
|
||||
"information":"",
|
||||
"Information":"",
|
||||
"Information Manager":"",
|
||||
"Initrd":"",
|
||||
"Inputs":"",
|
||||
"Instantiate":"",
|
||||
"IP":"",
|
||||
"IP to listen on":"",
|
||||
"Kernel":"",
|
||||
"Kernel commands":"",
|
||||
"Keyboard configuration locale to use in the VNC display":"",
|
||||
"Keymap":"",
|
||||
"KVM":"",
|
||||
"LCM State":"",
|
||||
"Lease IP":"",
|
||||
"Lease MAC":"",
|
||||
"Lease MAC (opt):":"",
|
||||
"Lease management":"",
|
||||
"Leases information":"",
|
||||
"Listen IP":"",
|
||||
"Live migrate":"",
|
||||
"Loading":"",
|
||||
"MAC":"",
|
||||
"Make non persistent":"",
|
||||
"Make persistent":"",
|
||||
"Manage":"",
|
||||
"Manual":"",
|
||||
"Max Mem":"",
|
||||
"Memory":"",
|
||||
"Memory monitoring information":"",
|
||||
"Memory use":"",
|
||||
"Migrate":"",
|
||||
"Model":"",
|
||||
"Monitoring information":"",
|
||||
"Mount image as read-only":"",
|
||||
"Mouse":"",
|
||||
"Name":"",
|
||||
"Name for the context variable":"",
|
||||
"Name for the custom variable":"",
|
||||
"Name for the tun device created for the VM":"",
|
||||
"Name of a shell script to be executed after creating the tun device for the VM":"",
|
||||
"Name of the bridge the network device is going to be attached to":"",
|
||||
"Name of the image to use":"",
|
||||
"Name of the network to attach this device":"",
|
||||
"Name that the Image will get. Every image must have a unique name.":"",
|
||||
"Name that the VM will get for description purposes. If NAME is not supplied a name generated by one will be in the form of one-<VID>.":"",
|
||||
"Net_RX":"",
|
||||
"Net_TX":"",
|
||||
"network":"",
|
||||
"Network":"",
|
||||
"Network Address":"",
|
||||
"Network is unreachable: is OpenNebula running?":"",
|
||||
"Network reception":"",
|
||||
"Network size":"",
|
||||
"Network transmission":"",
|
||||
"Network type":"",
|
||||
"New":"",
|
||||
"+ New":"",
|
||||
"+ New Group":"",
|
||||
"New password":"",
|
||||
"No":"",
|
||||
"No disk id or image name specified":"",
|
||||
"No disks defined":"",
|
||||
"None":"",
|
||||
"Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.":"",
|
||||
"OK":"",
|
||||
"Open VNC Session":"",
|
||||
"Optional, please select":"",
|
||||
"OS":"",
|
||||
"OS and Boot options":"",
|
||||
"Owned by group":"",
|
||||
"Owner":"",
|
||||
"PAE":"",
|
||||
"Password":"",
|
||||
"Password for the VNC server":"",
|
||||
"Path":"",
|
||||
"Path to the bootloader executable":"",
|
||||
"Path to the initrd image":"",
|
||||
"Path to the original file that will be copied to the image repository. If not specified for a DATABLOCK type image, an empty image will be created.":"",
|
||||
"Path to the OS kernel to boot the image":"",
|
||||
"Path vs. source":"",
|
||||
"Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.":"",
|
||||
"Permits access to the VM only through the specified ports in the TCP protocol":"",
|
||||
"Permits access to the VM only through the specified ports in the UDP protocol":"",
|
||||
"Persistence of the image":"",
|
||||
"Persistent":"",
|
||||
"Physical address extension mode allows 32-bit guests to address more than 4 GB of memory":"",
|
||||
"Physical device":"",
|
||||
"Placement":"",
|
||||
"Please choose":"",
|
||||
"Please, choose and modify the image you want to update":"",
|
||||
"Please, choose and modify the template you want to update":"",
|
||||
"Please, choose and modify the virtual network you want to update":"",
|
||||
"Please choose path if you have a file-based image. Choose source otherwise or create an empty datablock disk.":"",
|
||||
"Please choose the new type of authentication for the selected users":"",
|
||||
"Please provide a lease IP":"",
|
||||
"Please provide a network address":"",
|
||||
"Please provide a resource ID for the resource(s) in this rule":"",
|
||||
"Please select":"",
|
||||
"Please select at least one resource":"",
|
||||
"Please specify":"",
|
||||
"Please specify to who this ACL applies":"",
|
||||
"Port":"",
|
||||
"Port blacklist":"",
|
||||
"Port for the VNC server":"",
|
||||
"Port whitelist":"",
|
||||
"Predefined":"",
|
||||
"Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”. If omitted, the default value is the one defined in oned.conf (installation default is “hd”).":"",
|
||||
"Previous action":"",
|
||||
"Provide a path":"",
|
||||
"Provide a source":"",
|
||||
"PS2":"",
|
||||
"Public":"",
|
||||
"Public scope of the image":"",
|
||||
"Publish":"",
|
||||
"Quickstart":"",
|
||||
"Ranged network":"",
|
||||
"Rank":"",
|
||||
"Raw":"",
|
||||
"Raw data to be passed directly to the hypervisor":"",
|
||||
"Read only":"",
|
||||
"Refresh list":"",
|
||||
"Register time":"",
|
||||
"Registration time":"",
|
||||
"Release":"",
|
||||
"Remove lease":"",
|
||||
"Remove selected":"",
|
||||
"Request an specific IP from the Network":"",
|
||||
"Requirements":"",
|
||||
"Reset":"",
|
||||
"Resource ID":"",
|
||||
"Resource ID / Owned by":"",
|
||||
"Resource subset":"",
|
||||
"Restart":"",
|
||||
"Resubmit":"",
|
||||
"Resume":"",
|
||||
"Retrieving":"",
|
||||
"Root":"",
|
||||
"running":"",
|
||||
"Running VMs":"",
|
||||
"Running #VMS":"",
|
||||
"Save":"",
|
||||
"Save as":"",
|
||||
"Saveas for VM with ID":"",
|
||||
"Save this image after shutting down the VM":"",
|
||||
"Script":"",
|
||||
"SCSI":"",
|
||||
"SDL":"",
|
||||
"Select a network":"",
|
||||
"Select an image":"",
|
||||
"Select a template":"",
|
||||
"Select boot method":"",
|
||||
"Select disk":"",
|
||||
"Select template":"",
|
||||
"Select the new group":"",
|
||||
"Select the new owner":"",
|
||||
"Server (Cipher)":"",
|
||||
"Server (x509)":"",
|
||||
"Setup Networks":"",
|
||||
"Shared":"",
|
||||
"Shutdown":"",
|
||||
"Sign out":"",
|
||||
"Size":"",
|
||||
"Size in MB":"",
|
||||
"Size (Mb)":"",
|
||||
"Size of the datablock in MB.":"",
|
||||
"Skipping VM ":"",
|
||||
"Source":"",
|
||||
"Source to be used in the DISK attribute. Useful for not file-based images.":"",
|
||||
"Specific ID":"",
|
||||
"Specific image mapping driver. KVM: raw, qcow2. XEN: tap:aio, file:":"",
|
||||
"Specific image mapping driver. KVM: raw, qcow2. Xen:tap:aio:, file:. VMware unsupported":"",
|
||||
"SSH":"",
|
||||
"Start time":"",
|
||||
"Start Time":"",
|
||||
"State":"",
|
||||
"Status":"",
|
||||
"Stop":"",
|
||||
"Submitted":"",
|
||||
"Summary of resources":"",
|
||||
"Support":"",
|
||||
"Suspend":"",
|
||||
"Swap":"",
|
||||
"Tablet":"",
|
||||
"Target":"",
|
||||
"Tcp black ports":"",
|
||||
"Tcp firewall mode":"",
|
||||
"Tcp white ports":"",
|
||||
"Template":"",
|
||||
"Template information":"",
|
||||
"Templates":"",
|
||||
"Template updated correctly":"",
|
||||
"There are mandatory fields missing in the capacity section":"",
|
||||
"There are mandatory fields missing in the OS Boot options section":"",
|
||||
"There are mandatory parameters missing":"",
|
||||
"There are mandatory parameters missing in this section":"",
|
||||
"This field sets which attribute will be used to sort the suitable hosts for this VM. Basically, it defines which hosts are more suitable than others":"",
|
||||
"This rule applies to":"",
|
||||
"This will cancel selected VMs":"",
|
||||
"This will change the main group of the selected users. Select the new group":"",
|
||||
"This will change the password for the selected users":"",
|
||||
"This will delete the selected VMs from the database":"",
|
||||
"This will deploy the selected VMs on the chosen host":"",
|
||||
"This will hold selected pending VMs from being deployed":"",
|
||||
"This will initiate the shutdown process in the selected VMs":"",
|
||||
"This will live-migrate the selected VMs to the chosen host":"",
|
||||
"This will migrate the selected VMs to the chosen host":"",
|
||||
"This will redeploy selected VMs (in UNKNOWN or BOOT state)":"",
|
||||
"This will release held machines":"",
|
||||
"This will resubmits VMs to PENDING state":"",
|
||||
"This will resume selected stopped or suspended VMs":"",
|
||||
"This will suspend selected machines":"",
|
||||
"TM MAD":"",
|
||||
"total":"",
|
||||
"Total Leases":"",
|
||||
"Total VM count":"",
|
||||
"Total VM CPU":"",
|
||||
"Total VM Memory":"",
|
||||
"Transfer Manager":"",
|
||||
"Type":"",
|
||||
"Type of disk device to emulate.":"",
|
||||
"Type of disk device to emulate: ide, scsi":"",
|
||||
"Type of file system to be built. This can be any value understood by mkfs unix command.":"",
|
||||
"Type of the image, explained in detail in the following section. If omitted, the default value is the one defined in oned.conf (install default is OS).":"",
|
||||
"Udp black ports":"",
|
||||
"Udp firewall mode":"",
|
||||
"Udp white ports":"",
|
||||
"Unauthorized":"",
|
||||
"Unpublish":"",
|
||||
"Update":"",
|
||||
"Update a template":"",
|
||||
"Update image template":"",
|
||||
"Update network template":"",
|
||||
"Update template":"",
|
||||
"USB":"",
|
||||
"Use":"",
|
||||
"Used CPU":"",
|
||||
"Used CPU (allocated)":"",
|
||||
"Used CPU (real)":"",
|
||||
"Used Mem (allocated)":"",
|
||||
"Used Memory":"",
|
||||
"Used Mem (real)":"",
|
||||
"Useful for power management, for example, normally required for graceful shutdown to work":"",
|
||||
"User":"",
|
||||
"Username":"",
|
||||
"User name and password must be filled in":"",
|
||||
"Users":"",
|
||||
"Value":"",
|
||||
"Value of the context variable":"",
|
||||
"Value of the custom variable":"",
|
||||
"VCPU":"",
|
||||
"Virtio":"",
|
||||
"Virtio (KVM)":"",
|
||||
"Virtualization Manager":"",
|
||||
"Virtual Machine information":"",
|
||||
"Virtual Machines":"",
|
||||
"Virtual Network":"",
|
||||
"Virtual network information":"",
|
||||
"Virtual Network information":"",
|
||||
"Virtual Network name missing!":"",
|
||||
"Virtual Networks":"",
|
||||
"Virtual Networks (total/public)":"",
|
||||
"Virtual network template":"",
|
||||
"Virtual Network template":"",
|
||||
"VM information":"",
|
||||
"VM Instance":"",
|
||||
"VM Instances":"",
|
||||
"VM log":"",
|
||||
"VM MAD":"",
|
||||
"VM Name":"",
|
||||
"VM Network stats":"",
|
||||
"#VMS":"",
|
||||
"VM Save As":"",
|
||||
"VM template":"",
|
||||
"VM Template":"",
|
||||
"VM Templates":"",
|
||||
"VM Templates (total/public)":"",
|
||||
"VNC":"",
|
||||
"VNC Access":"",
|
||||
"VNC connection":"",
|
||||
"VNC Disabled":"",
|
||||
"VNC Session":"",
|
||||
"Welcome":"",
|
||||
"Wizard":"",
|
||||
"Wizard KVM":"",
|
||||
"Wizard VMware":"",
|
||||
"Wizard XEN":"",
|
||||
"Write the image template here":"",
|
||||
"Write the Virtual Machine template here":"",
|
||||
"Write the Virtual Network template here":"",
|
||||
"x509":"",
|
||||
"XEN":"",
|
||||
"Xen templates must specify a boot method":"",
|
||||
"yes":"",
|
||||
"Yes":"",
|
||||
"You have not selected a template":"",
|
||||
"You have to confirm this action.":"",
|
||||
"You need to select something.":"",
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
#tr_strings = $stdin.read
|
||||
tr_strings = `grep -h -o -R -e 'tr("[[:print:]]*")' ../js/* | cut -d'"' -f 2 | sort -u`
|
||||
|
||||
puts "//Default translation template"
|
||||
puts 'lang="en_US"'
|
||||
puts 'datatable_lang=""'
|
||||
puts "locale={"
|
||||
|
||||
tr_strings.each_line do | line |
|
||||
puts " \"#{line.chomp}\":\"\","
|
||||
end
|
||||
|
||||
puts "};"
|
||||
@@ -66,7 +66,7 @@
|
||||
<img src="images/opennebula-sunstone-small.png"/>
|
||||
</div>
|
||||
<div id="login-info">
|
||||
Welcome <span id="user"></span> | <a href="#" id="logout">Sign Out</a>
|
||||
<span id="welcome">Welcome</span> <span id="user"></span> | <a href="#" id="logout">Sign Out</a>
|
||||
</div>
|
||||
<div id="language">
|
||||
<form>
|
||||
@@ -77,9 +77,9 @@
|
||||
</form>
|
||||
</div>
|
||||
<div id="links">
|
||||
<a href="http://opennebula.org/documentation:documentation" target="_blank">Documentation</a> |
|
||||
<a href="http://opennebula.org/support:support" target="_blank">Support</a> |
|
||||
<a href="http://opennebula.org/community:community" target="_blank">Community</a>
|
||||
<a href="http://opennebula.org/documentation:documentation" target="_blank" id="doc_link">Documentation</a> |
|
||||
<a href="http://opennebula.org/support:support" target="_blank" id="support_link">Support</a> |
|
||||
<a href="http://opennebula.org/community:community" target="_blank" id="community_link">Community</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer" class="ui-layout-south">
|
||||
|
||||
Reference in new issue
Block a user