diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs
index aa39dbc5f9..58d6ef048e 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context/html.hbs
@@ -19,9 +19,7 @@
{{tr " Add SSH contextualization"}}
-
- {{tr "Add an ssh public key to the context. If the Public Key textarea is empty then the user variable SSH_PUBLIC_KEY will be used."}}
-
+ {{{tip (tr "Add an ssh public key to the context. If the Public Key textarea is empty then the user variable SSH_PUBLIC_KEY will be used.")}}}
@@ -37,9 +35,7 @@
{{tr " Add Network contextualization"}}
-
- {{tr "Add network contextualization parameters. For each NIC defined in the NETWORK section, ETH$i_IP, ETH$i_NETWORK... parameters will be included in the CONTEXT section and will be available in the Virtual Machine"}}
-
+ {{{tip (tr "Add network contextualization parameters. For each NIC defined in the NETWORK section, ETH$i_IP, ETH$i_NETWORK... parameters will be included in the CONTEXT section and will be available in the Virtual Machine")}}}
@@ -48,9 +44,7 @@
{{tr " Add OneGate token"}}
-
- {{tr "Add a file (token.txt) to the context contaning the token to push custom metrics to the VirtualMachine through OneGate"}}
-
+ {{{tip (tr "Add a file (token.txt) to the context contaning the token to push custom metrics to the VirtualMachine through OneGate")}}}
@@ -61,9 +55,7 @@
{{tr "FILES_DS"}}
-
- {{tr "Raw String for the FILE_DS attribute of the VM template, representing files that will be included in the contextualization image. Each file must be stored in a FILE_DS Datastore and must be of type CONTEXT"}}
-
+ {{{tip (tr "Raw String for the FILE_DS attribute of the VM template, representing files that will be included in the contextualization image. Each file must be stored in a FILE_DS Datastore and must be of type CONTEXT")}}}
@@ -72,9 +64,7 @@
{{tr "Init scripts"}}
-
- {{tr "If the VM uses the OpenNebula contextualization package the init.sh file is executed by default. When the init script added is not called init.sh or more than one init script is added, this list contains the scripts to run and the order. Ex. “init.sh users.sh mysql.sh”"}}
-
+ {{{tip (tr "If the VM uses the OpenNebula contextualization package the init.sh file is executed by default. When the init script added is not called init.sh or more than one init script is added, this list contains the scripts to run and the order. Ex. “init.sh users.sh mysql.sh”")}}}
@@ -90,9 +80,7 @@
{{tr "User Inputs"}}
-
- {{tr "These attributes must be provided by the user when a new VM is intantatiated using each template. They will be included in the VM context"}}
-
+ {{{tip (tr "These attributes must be provided by the user when a new VM is intantatiated using each template. They will be included in the VM context")}}}
@@ -119,4 +107,4 @@
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs
index 9ab32f6d3e..e2e94fabd8 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs/html.hbs
@@ -5,8 +5,7 @@
{{tr "Memory"}}
- {{tr "Amount of RAM required for the VM, in Megabytes."}}
-
+ {{{tip (tr "Amount of RAM required for the VM, in Megabytes.")}}}
@@ -25,7 +24,7 @@
{{tr "Cost"}}
- {{tr "Cost of each MB per hour"}}
+ {{{tip (tr "Cost of each MB per hour")}}}
@@ -36,9 +35,7 @@
{{tr "CPU"}}
-
- {{tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5."}}
-
+ {{{tip (tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")}}}
@@ -51,8 +48,7 @@
{{tr "Cost"}}
- {{tr "Cost of each CPU per hour"}}
-
+ {{{tip (tr "Cost of each CPU per hour")}}}
@@ -63,9 +59,7 @@
{{tr "VCPU"}}
-
- {{tr "Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU."}}
-
+ {{{tip (tr "Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.")}}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs
index 85f5258315..05a9fcf2cc 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/html.hbs
@@ -2,7 +2,7 @@
{{tr "Name"}}
- {{tr "Name that the VM will get for description purposes."}}
+ {{{tip (tr "Name that the VM will get for description purposes.")}}}
@@ -22,7 +22,7 @@
{{tr "Description"}}
- {{tr "Description of the template"}}
+ {{{tip (tr "Description of the template")}}}
@@ -31,7 +31,7 @@
{{tr "Logo"}}
- {{tr "Logo for the template."}}
+ {{{tip (tr "Logo for the template.")}}}
@@ -59,9 +59,7 @@
{{tr "Do not allow to change capacity"}}
-
- {{tr "Users using the cloud view will not be able to select a new capacity for this template"}}
-
+ {{{tip (tr "Users using the cloud view will not be able to select a new capacity for this template")}}}
@@ -70,9 +68,7 @@
{{tr "Do not allow to modify network configuration"}}
-
- {{tr "Users using the cloud view will not be able to remove or add new NICs"}}
-
+ {{{tip (tr "Users using the cloud view will not be able to remove or add new NICs")}}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
index ed401c92ea..d83abff038 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/hybrid.js
@@ -490,9 +490,7 @@ define(function(require) {
required_str += '' +
'' +
obj.label +
- '' +
- obj.tooltip +
- ' ' +
+ Tips.html(obj.tooltip) +
' ' +
' ' +
'
'
@@ -500,9 +498,7 @@ define(function(require) {
not_required_str += '' +
'' +
obj.label +
- '' +
- obj.tooltip +
- ' ' +
+ Tips.html(obj.tooltip) +
' ' +
' ' +
'
'
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
index fb5dc4a3ed..64871c128b 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/io/html.hbs
@@ -18,7 +18,7 @@
{{tr "Listen IP"}}
- {{tr "IP to listen on"}}
+ {{{tip (tr "IP to listen on")}}}
@@ -27,16 +27,14 @@
{{tr "Port"}}
- {{tr "Port for the VNC/SPICE server"}}
+ {{{tip (tr "Port for the VNC/SPICE server")}}}
{{tr "Keymap"}}
-
- {{tr "Keyboard configuration locale to use in the VNC/SPICE display"}}
-
+ {{{tip (tr "Keyboard configuration locale to use in the VNC/SPICE display")}}}
@@ -45,7 +43,7 @@
{{tr "Password"}}
- {{tr "Password for the VNC/SPICE server"}}
+ {{{tip (tr "Password for the VNC/SPICE server")}}}
@@ -55,9 +53,7 @@
{{tr "Generate Random Password"}}
-
- {{tr "A random password will be generated for each VM, and will be included in the VM information"}}
-
+ {{{tip (tr "A random password will be generated for each VM, and will be included in the VM information")}}}
@@ -105,4 +101,4 @@
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
index d3ac4583a5..eda770cab5 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs
@@ -11,9 +11,7 @@
{{tr "Default model"}}
-
- {{tr "Default value for all NICs. Hardware that will emulate the network interface. With Xen this is the type attribute of the vif."}}
-
+ {{{tip (tr "Default value for all NICs. Hardware that will emulate the network interface. With Xen this is the type attribute of the vif.")}}}
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
index 84c0965eea..db8d8c0df9 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/nic-tab/html.hbs
@@ -8,18 +8,14 @@
{{tr "ID"}}
-
- {{tr "Identifier of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface."}}
-
+ {{{tip (tr "Identifier of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface.")}}}
{{tr "Name"}}
-
- {{tr "Name of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface."}}
-
+ {{{tip (tr "Name of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface.")}}}
@@ -28,18 +24,14 @@
{{tr "User ID"}}
-
- {{tr "Identifier of the user owner of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface."}}
-
+ {{{tip (tr "Identifier of the user owner of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface.")}}}
{{tr "User Name"}}
-
- {{tr "Name of the user owner of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface."}}
-
+ {{{tip (tr "Name of the user owner of the virtual network from which to lease an IP and MAC address to this Virtual Machine network interface.")}}}
@@ -51,14 +43,14 @@
{{tr "IP"}}
- {{tr "Request an specific IP from the Network"}}
+ {{{tip (tr "Request an specific IP from the Network")}}}
{{tr "MAC"}}
- {{tr "Set a specific MAC to the NIC"}}
+ {{{tip (tr "Set a specific MAC to the NIC")}}}
@@ -67,18 +59,14 @@
{{tr "Network Mask"}}
-
- {{tr "Override the network mask of the network. For example, 255.255.255.0"}}
-
+ {{{tip (tr "Override the network mask of the network. For example, 255.255.255.0")}}}
{{tr "Network Address"}}
-
- {{tr "Override the base network address. For example, 192.168.1.0"}}
-
+ {{{tip (tr "Override the base network address. For example, 192.168.1.0")}}}
@@ -87,14 +75,14 @@
{{tr "Gateway"}}
- {{tr "Override the Router of the network."}}
+ {{{tip (tr "Override the Router of the network.")}}}
{{tr "DNS"}}
- {{tr "Override the specific DNS for this network"}}
+ {{{tip (tr "Override the specific DNS for this network")}}}
@@ -103,7 +91,7 @@
{{tr "Search Domain"}}
- {{tr "Override the Search Domain for this network."}}
+ {{{tip (tr "Override the Search Domain for this network.")}}}
@@ -115,14 +103,14 @@
{{tr "IP6 Global"}}
- {{tr "Request an specific IP from the IPv6 Network"}}
+ {{{tip (tr "Request an specific IP from the IPv6 Network")}}}
{{tr "GATEWAY6"}}
- {{tr "Override the Router of the IPv6 network."}}
+ {{{tip (tr "Override the Router of the IPv6 network.")}}}
@@ -131,9 +119,7 @@
{{tr "Network Mask"}}
-
- {{tr "Override force IPv4 for this IPv6 network. Values: Yes or No."}}
-
+ {{{tip (tr "Override force IPv4 for this IPv6 network. Values: Yes or No.")}}}
@@ -145,9 +131,7 @@
{{tr "Model"}}
-
- {{tr "Hardware that will emulate this network interface. With Xen this is the type attribute of the vif."}}
-
+ {{{tip (tr "Hardware that will emulate this network interface. With Xen this is the type attribute of the vif.")}}}
@@ -178,9 +162,7 @@
{{tr "PORTS"}}
-
- {{tr "A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000"}}
-
+ {{{tip (tr "A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000")}}}
@@ -200,9 +182,7 @@
{{tr "PORTS"}}
-
- {{tr "A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000"}}
-
+ {{{tip (tr "A list of ports separated by commas or a ranges separated by semicolons, e.g.: 22,80,5900:6000")}}}
@@ -219,4 +199,4 @@
{{/advancedSection}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
index 7da84d9df0..b5575f81c1 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/os/html.hbs
@@ -19,7 +19,7 @@
{{tr "Arch"}}
- {{tr "CPU architecture to virtualization"}}
+ {{{tip (tr "CPU architecture to virtualization")}}}
@@ -30,7 +30,7 @@
{{tr "Machine type"}}
- {{tr "libvirt machine type, only for KVM"}}
+ {{{tip (tr "libvirt machine type, only for KVM")}}}
@@ -39,14 +39,14 @@
{{tr "Root"}}
- {{tr "Device to be mounted as root"}}
+ {{{tip (tr "Device to be mounted as root")}}}
{{tr "Guest OS"}}
- {{tr "Set the OS of the VM, only for VMware"}}
+ {{{tip (tr "Set the OS of the VM, only for VMware")}}}
@@ -61,7 +61,7 @@
{{tr "1st Boot"}}
- {{tr "1st Boot device type"}}
+ {{{tip (tr "1st Boot device type")}}}
@@ -74,7 +74,7 @@
{{tr "2nd Boot"}}
- {{tr "2nd Boot device type"}}
+ {{{tip (tr "2nd Boot device type")}}}
@@ -87,7 +87,7 @@
{{tr "3rd Boot"}}
- {{tr "3rd Boot device type"}}
+ {{{tip (tr "3rd Boot device type")}}}
@@ -102,7 +102,7 @@
{{tr "Kernel cmd"}}
- {{tr "Arguments for the booting kernel"}}
+ {{{tip (tr "Arguments for the booting kernel")}}}
@@ -111,7 +111,7 @@
{{tr "Bootloader"}}
- {{tr "Path to the bootloader executable"}}
+ {{{tip (tr "Path to the bootloader executable")}}}
@@ -140,7 +140,7 @@
{{tr "PATH"}}
- {{tr "Path to the OS kernel to boot the image"}}
+ {{{tip (tr "Path to the OS kernel to boot the image")}}}
@@ -170,7 +170,7 @@
{{tr "PATH"}}
- {{tr "Path to the initrd image"}}
+ {{{tip (tr "Path to the initrd image")}}}
@@ -182,9 +182,7 @@
{{tr "ACPI"}}
-
- {{tr "Add support in the VM for Advanced Configuration and Power Interface (ACPI)"}}
-
+ {{{tip (tr "Add support in the VM for Advanced Configuration and Power Interface (ACPI)")}}}
@@ -195,9 +193,7 @@
{{tr "PAE"}}
-
- {{tr "Add support in the VM for Physical Address Extension (PAE)"}}
-
+ {{{tip (tr "Add support in the VM for Physical Address Extension (PAE)")}}}
@@ -210,7 +206,7 @@
{{tr "APIC"}}
- {{tr "Enables the advanced programmable IRQ management."}}
+ {{{tip (tr "Enables the advanced programmable IRQ management.")}}}
@@ -221,7 +217,7 @@
{{tr "HYPERV"}}
- {{tr "Add support in the VM for hyper-v features (HYPERV)"}}
+ {{{tip (tr "Add support in the VM for hyper-v features (HYPERV)")}}}
@@ -234,9 +230,7 @@
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
index ca71868544..3015ced0af 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/other/html.hbs
@@ -15,7 +15,7 @@
{{tr "DATA"}}
- {{tr "Raw data to be passed directly to the hypervisor"}}.
+ {{{tip (tr "Raw data to be passed directly to the hypervisor")}}}
@@ -25,7 +25,7 @@
{{tr "DATA_VMX"}}
- {{tr "Raw data to be added directly to the .vmx file."}}.
+ {{{tip (tr "Raw data to be added directly to the .vmx file.")}}}
@@ -36,4 +36,4 @@
{{{customTagsTableHTML}}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/scheduling/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/scheduling/html.hbs
index efa2233390..6bffb2e2c9 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/scheduling/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/scheduling/html.hbs
@@ -30,9 +30,7 @@
{{tr "Expression"}}
-
- {{tr "Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM"}}.
-
+ {{{tip (tr "Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")}}}
@@ -44,9 +42,7 @@
{{tr "Expression"}}
-
- {{tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM."}}.
-
+ {{{tip (tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM.")}}}
@@ -61,19 +57,17 @@
{{tr "Packing"}}
-
- {{tr "Pack the VMs in the cluster nodes to reduce VM fragmentation"}}
-
+ {{{tip (tr "Pack the VMs in the cluster nodes to reduce VM fragmentation")}}}
{{tr "Stripping"}}
- {{tr "Spread the VMs in the cluster nodes"}}
+ {{{tip (tr "Spread the VMs in the cluster nodes")}}}
{{tr "Load-aware"}}
- {{tr "Maximize the resources available to VMs in a node"}}
+ {{{tip (tr "Maximize the resources available to VMs in a node")}}}
@@ -97,16 +91,12 @@
{{tr "Packing"}}
-
- {{tr "Tries to optimize storage usage by selecting the DS with less free space"}}
-
+ {{{tip (tr "Tries to optimize storage usage by selecting the DS with less free space")}}}
{{tr "Stripping"}}
-
- {{tr "Striping. Tries to optimize I/O by distributing the VMs across datastores."}}
-
+ {{{tip (tr "Striping. Tries to optimize I/O by distributing the VMs across datastores.")}}}
@@ -115,13 +105,11 @@
{{tr "Expression"}}
-
- {{tr "This field sets which attribute will be used to sort the suitable datastores for this VM"}}.
-
+ {{{tip (tr "This field sets which attribute will be used to sort the suitable datastores for this VM")}}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/html.hbs
index 9300d24324..cc9c9dfaa8 100644
--- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/html.hbs
+++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/disk-tab/html.hbs
@@ -16,16 +16,14 @@
{{tr "ID"}}
- {{tr "Image ID to be used in the Virtual Image disk."}}
+ {{{tip (tr "Image ID to be used in the Virtual Image disk.")}}}
{{tr "Name"}}
-
- {{tr "Name of the image to be used in the Virtual Image disk."}}
-
+ {{{tip (tr "Name of the image to be used in the Virtual Image disk.")}}}
@@ -34,18 +32,14 @@
{{tr "User ID"}}
-
- {{tr "Identifier of the user owner of the image to reduce ambiguity."}}
-
+ {{{tip (tr "Identifier of the user owner of the image to reduce ambiguity.")}}}
{{tr "User Name"}}
-
- {{tr "Name of the user owner of the image to reduce ambiguity."}}
-
+ {{{tip (tr "Name of the user owner of the image to reduce ambiguity.")}}}
@@ -55,28 +49,14 @@
{{tr "Target"}}
-
- {{tr "Device to map image disk. If set, it will overwrite the default device mapping"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Device to map image disk. If set, it will overwrite the default device mapping. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
{{tr "Driver"}}
-
- {{tr "Specific image mapping driver"}}
-
-
- {{tr "Xen: Optional (tap:aio:, file:)"}}
-
- {{tr "KVM: Optional (raw, qcow2)"}}
- {{tr "VMWare: Not supported"}}
+ {{{tip (tr "Specific image mapping driver. Xen: Optional (tap:aio:, file:). KVM: Optional (raw, qcow2). VMWare: Not supported")}}}
@@ -85,28 +65,14 @@
{{tr "Device Prefix"}}
-
- {{tr "Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”, or “vd” for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Prefix for the emulated device this image will be mounted at. For instance, hd, sd, or vd for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
{{tr "Read Only"}}
-
- {{tr "Set how the image is exposed by the hypervisor"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Set how the image is exposed by the hypervisor. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
@@ -119,7 +85,7 @@
{{tr "Cache"}}
- {{tr "Selects the cache mechanism for the disk."}}
+ {{{tip (tr "Selects the cache mechanism for the disk.")}}}
@@ -134,7 +100,7 @@
{{tr "IO"}}
- {{tr "Set IO policy."}}
+ {{{tip (tr "Set IO policy.")}}}
@@ -145,7 +111,7 @@
{{tr "DISCARD"}}
- {{tr "Set DISCARD feature."}}
+ {{{tip (tr "Set DISCARD feature.")}}}
@@ -156,54 +122,42 @@
{{tr "Total Bytes Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
{{tr "Read Bytes Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
{{tr "Write Bytes Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
{{tr "Total IOPS Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
{{tr "Read IOPS Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
{{tr "Write IOPS Sec"}}
-
- {{tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin."}}
-
+ {{{tip (tr "IO throttling attributes for the disk. They are specified in bytes or IOPS (IO Operations) and can be specified for the total (read+write) or specific for read or write. Total and read or write can not be used at the same time. By default these parameters are only allowed to be used by oneadmin.")}}}
@@ -218,7 +172,7 @@
{{tr "Size"}}
- {{tr "Size of the new disk"}}
+ {{{tip (tr "Size of the new disk")}}}
@@ -238,7 +192,7 @@
{{tr "Type"}}
- {{tr "Disk type"}}
+ {{{tip (tr "Disk type")}}}
{{tr "FS"}}
@@ -248,7 +202,7 @@
{{tr "Format"}}
- {{tr "Filesystem type for the fs images"}}
+ {{{tip (tr "Filesystem type for the fs images")}}}
@@ -259,28 +213,14 @@
{{tr "Target"}}
-
- {{tr "Device to map image disk. If set, it will overwrite the default device mapping"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Device to map image disk. If set, it will overwrite the default device mapping. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
{{tr "Driver"}}
-
- {{tr "Specific image mapping driver"}}
-
-
- {{tr "Xen: Optional (tap:aio:, file:)"}}
-
- {{tr "KVM: Optional (raw, qcow2)"}}
- {{tr "VMWare: Not supported"}}
+ {{{tip (tr "Specific image mapping driver. Xen: Optional (tap:aio:, file:). KVM: Optional (raw, qcow2). VMWare: Not supported")}}}
@@ -289,28 +229,14 @@
{{tr "Device Prefix"}}
-
- {{tr "Prefix for the emulated device this image will be mounted at. For instance, “hd”, “sd”, or “vd” for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Prefix for the emulated device this image will be mounted at. For instance, hd, sd, or vd for KVM virtio. If omitted, the dev_prefix attribute of the Image will be used. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
{{tr "Read Only"}}
-
- {{tr "Set how the image is exposed by the hypervisor"}}
-
-
- {{tr "Xen: Optional"}}
-
- {{tr "KVM: Optional"}}
- {{tr "VMWare: Optional"}}
+ {{{tip (tr "Set how the image is exposed by the hypervisor. Xen: Optional. KVM: Optional. VMWare: Optional")}}}
@@ -323,7 +249,7 @@
{{tr "Cache"}}
- {{tr "Selects the cache mechanism for the disk."}}
+ {{{tip (tr "Selects the cache mechanism for the disk.")}}}
@@ -338,7 +264,7 @@
{{/advancedSection}}
-
\ No newline at end of file
+
diff --git a/src/sunstone/public/app/templates/helpers/tip.js b/src/sunstone/public/app/templates/helpers/tip.js
new file mode 100644
index 0000000000..4ff2f57743
--- /dev/null
+++ b/src/sunstone/public/app/templates/helpers/tip.js
@@ -0,0 +1,12 @@
+define(function(require) {
+ var Handlebars = require('hbs/handlebars');
+ var Locale = require('utils/locale');
+ var Tips = require('utils/tips');
+
+ var tip = function(context, options) {
+ return Tips.html(context);
+ };
+
+ Handlebars.registerHelper('tip', tip);
+ return tip;
+})
diff --git a/src/sunstone/public/app/utils/tips.js b/src/sunstone/public/app/utils/tips.js
index f01be1d54d..5e91052399 100644
--- a/src/sunstone/public/app/utils/tips.js
+++ b/src/sunstone/public/app/utils/tips.js
@@ -4,7 +4,7 @@ define(function(require) {
//displays the tip information on mouseover.
var _setup = function(context, position) {
//For each tip in this context
- $('.tip', context).each(function() {
+ /*$('.tip', context).each(function() {
var obj = $(this);
obj.removeClass('tip');
var tip = obj.html();
@@ -15,11 +15,16 @@ define(function(require) {
}
//replace the text with an icon and spans
obj.html(' ');
- });
- $(document).foundation('reflow', 'tooltip');
+ });*/
+ //$(document).foundation('reflow', 'tooltip');
+ }
+
+ var _html = function(str) {
+ return ' '
}
return {
- 'setup': _setup
+ 'setup': _setup,
+ 'html': _html
}
})