[PATCH v3] [Kimchi] Disable Template when it has invalid parameters
by sguimaraes943@gmail.com
From: Samuel Guimarães <sguimaraes943(a)gmail.com>
From: Samuel Guimarães <sguimaraes943(a)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)
v3:
- cdrom and vm-image new path working when submiting updated Template.
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 | 60 +++++++++++++++++----
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, 263 insertions(+), 33 deletions(-)
--
1.9.3
8 years, 7 months
[PATCH] [Wok] Form validation: Enabled .has-feedback icons
by sguimaraes943@gmail.com
From: Samuel Guimarães <sguimaraes943(a)gmail.com>
This patch enables Font-Awesome icons when a .from-group has .has-feedback and .has-error or .has-warning classes.
This is required to "Disable Template when it has invalid parameters" v2 that will be sent in this list.
Samuel Guimarães (1):
Enabled .has-feedback icons
ui/css/src/modules/_wok-forms.scss | 6 ++++++
ui/css/wok.css | 6 ++++++
2 files changed, 12 insertions(+)
--
1.9.3
8 years, 7 months