Fix Text Truncated Problem of Login Button

Long text in some languages of login button is truncated. Fix it in this patch.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Remove button "Cancel" from modal dialog

Only one of the modal dialogs in Kimchi has a "Cancel" button along with
the form submit button. That button layout is inconsistent with the rest of
the application and it provides the same functionality as the "X" button
present at the top of every dialog.

Remove the button "Cancel" from the dialog "Edit template".

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Fix text alignment on storage pool type combo boxes

The storage pool type list does not have a left padding like the
other combo boxes in Kimchi, bringing the text very close to the UI
component's border.
The SCSI device list on the same window has the same alignment problem.

Apply a common CSS class to the combo boxes so they look like the other
objects in the application.

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
UI: Fix VM Delete Confirmation Dialog Box Title

Previously it was 'Power off Confirmation', this patch changes it to 'VM
Delete Confirmation'.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
adjust the width of host info-container

the layout is wrong in firefox, fix it.

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
VM template: add disk size error message

The schema checker needs to report an error message when the disk size
is less than 1GB. Currently this message is missing, so it reports an
KeyError. This patch adds the error message.

How to trigger this bug:
1. In Web UI, create a template as usual.
2. Edit the template, define the disk size as 0.5.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Update README with the correct FF ESR version.

The README should indicate that Kimchi now supports FF 24 ESR which was released late in 2013.

Signed-off-by: Adam King <rak@linux.vnet.ibm.com>
Remove unused listDeepScanIsos function

The function listDeepScanIsos is not being used in the Kimchi code. It
was replaced by stepListDeepScanIsos.
Rename kimchi.template to kimchi.substitute

This function was designed to substitute variables in HTML template strings originally
so it was named as kimchi.template, and it can be used in other scenarios, e.g. we use
it when we load plugins we have a unified URL for plugin XML files:
  /plugins/{plugin}/ui/config/tab-ext.xml
and after we have the plugins list, we can easily generate the corresponding URLs like
  /plugins/pluginA/ui/config/tab-ext.xml,
  /plugins/pluginB/ui/config/tab-ext.xml.
by list ['pluginA', 'pluginB'].
  Though it is sometimes misunderstood to be related with VM templates.
  Renamed it in this patch.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
model.host: avoid redundant libvirt lookupByName API invocation

In HostModel._get_vms_list_by_state(), it gets a list of domain objects
and extracts the names, then it traverses the names and calls
lookupByName(name) to get domain objects. This is redundant because it
has a list of domain object already.

This patch fixes the problem.

Signed-off-by: Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com>
Remove '.iso' extension checking from json schema

Libvirt accepts iso files with names that do not end with '.iso'
extension. Also, Kimchi discovers ISOs stored in storagepools by the
file format, it does not care about file name.
This patch removes the .iso checking from API.json schema, then files
ending with '.iso.1', '.iso.bkp' or any other, can be used.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
Remove cdrom '.iso' suffix checking from add template js

This patch removes the '.iso' checking of the path of a given cdrom
image, when create a new template.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
Exception: fix exception details when not specified

Not every validation error needs to translate for user,
we define user interested errors,
other developer interested error should report directly by schema validator,
and handled by developer directly.
fix exception handling for this situation.

Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Signed-off-by: Zheng Sheng Zhou <zhshzhou@linux.vnet.ibm.com>
StoragePool Edit: Add Disk to Logical Pool

Add loading icon before disk query finished
and display mesg when no partition is available.

Add storage pool extend dialog and choose proper disk for extension.

Signed-off-by: Yu Xin Huo <huoyuxin@linux.vnet.ibm.com>
Signed-off-by: Royce Lv <lvroyce@linux.vnet.ibm.com>
Repository Grid Column Resizing Issue

Last commit was reverted because it failed for Ubuntu system.
Added it back and made it work for Ubuntu with this patch.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
Disable metadata log output in every guest refresh

The libvirt function "metadata" always displays an error message when
the VM does not have a metadata section in its XML descriptor. Kimchi
refreshes the VM information every few seconds and a lot of error output
is printed on the console. The real exception can still be logged by the
"try/except" block, so the error itself is not being silenced, only its
output.

Even though this patch has no relation to feature tests, the functions which
enable/disable the libvirt error messages are located inside the class
FeatureTests so we need to import them.

Silence the metadata error output when trying to read the metadata
information from a VM.

Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com>
Code Refector: Extract Variables in kimchi.login_window.js

1. Refactor code.
2. Put focus on log-in button instead of password box when browser
   automatically fill in log-in form.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>
novnc does not work in IE

vnc_auto.html has 2 meta tags for X-UA-Compatible preventing the IE mode from taking effect. Combine them so they are both effective.

Signed-off-by: Adam King <rak@linux.vnet.ibm.com>
bug fix: decode volume name in IsoVolumesModel.

commit c53b3eab just fix volume name in StorageVolumeModel.
reproduce this bug:
1. create a iso pool
2. put a iso with name αβγ.iso in it

Signed-off-by: ShaoHe Feng <shaohef@linux.vnet.ibm.com>
Add Unit (MB) to Memory in Template Edit Window

Memory unit is lost and add it.

Signed-off-by: Hongliang Wang <hlwang@linux.vnet.ibm.com>