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>