Reviewed-by: Rodrigo Trujillo <rodrigo.trujillo(a)linux.vnet.ibm.com>
On 12/02/2015 03:32 PM, sguimaraes943(a)gmail.com wrote:
From: samhenri <samuel.guimaraes(a)eldorado.org.br>
Signed-off-by: samhenri <samuel.guimaraes(a)eldorado.org.br>
---
ui/css/src/modules/_validation.scss | 11 +++++++++++
ui/css/src/wok.scss | 2 ++
2 files changed, 13 insertions(+)
create mode 100644 ui/css/src/modules/_validation.scss
diff --git a/ui/css/src/modules/_validation.scss b/ui/css/src/modules/_validation.scss
new file mode 100644
index 0000000..914e423
--- /dev/null
+++ b/ui/css/src/modules/_validation.scss
@@ -0,0 +1,11 @@
+
+// Form validation
+.has-success {
+ @include form-control-validation(darken($state-success-border,10%),
darken($state-success-border,10%), $state-success-bg);
+}
+.has-warning {
+ @include form-control-validation(darken($state-warning-border,10%),
darken($state-warning-border,10%), $state-warning-bg);
+}
+.has-error {
+ @include form-control-validation(darken($state-danger-border,10%),
darken($state-danger-border,10%), $state-danger-bg);
+}
\ No newline at end of file
diff --git a/ui/css/src/wok.scss b/ui/css/src/wok.scss
index 34f5f2f..3d182be 100755
--- a/ui/css/src/wok.scss
+++ b/ui/css/src/wok.scss
@@ -99,6 +99,8 @@
@import "modules/datagrid";
// Wok Confirm Dialog
@import "modules/wok-confirm";
+// Form validation classes
+@import "modules/validation";
// Wok jQuery-UI Accordion
@import "modules/jqueryui";
// Wok ISO / VM / Template list