[Kimchi-devel] [PATCH v2] [Kimchi] Disable Template when it has invalid parameters

sguimaraes943 at gmail.com sguimaraes943 at gmail.com
Thu Apr 28 21:18:11 UTC 2016


From: Samuel Guimarães <sguimaraes943 at gmail.com>

This patch adds a block behavior on the action to select invalid templates when creating a guest

peterpennings (1):
  Disable Template when it has invalid parameters

Samuel Guimarães (1):
  Disable Template when it has invalid parameters

v2:
- Removed reference to kimchi.network_add_main.js
- Fixed warning icon position in list and gallery views
- Remoed tooltip when template is valid
- Added front-end form validation when user attempts to save invalid storage pool (must apply "Enabled .has-feedback icons" patch sent to Wok first)
- Added form control error class when template has invalid cdrom (reported issue #933 for vm-image not showing in invalid key)

 ui/css/kimchi.css                      | 97 ++++++++++++++++++++++++++++++++--
 ui/css/src/modules/_guests.scss        |  6 +++
 ui/css/src/modules/_iso-list.scss      | 22 +++++++-
 ui/css/src/modules/_templates.scss     | 53 +++++++++++++++++--
 ui/js/src/kimchi.guest_add_main.js     |  7 +++
 ui/js/src/kimchi.template_edit_main.js | 52 ++++++++++++++----
 ui/js/src/kimchi.template_main.js      |  9 +++-
 ui/pages/guest-add.html.tmpl           | 11 ++--
 ui/pages/i18n.json.tmpl                |  1 +
 ui/pages/tabs/templates.html.tmpl      | 24 +++++----
 ui/pages/template-edit.html.tmpl       |  6 ++-
 11 files changed, 255 insertions(+), 33 deletions(-)

-- 
1.9.3




More information about the Kimchi-devel mailing list