Skip to content

Commit

Permalink
IGNITE-9946 Web Console: Fixed fields validation order.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsisko authored and akuznetsov-os committed Nov 20, 2018
1 parent 7c632e6 commit 7da1864
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 27 deletions.
Expand Up @@ -58,8 +58,8 @@ mixin form-field__datepicker({ label, model, name, mindate, maxdate, minview = 1
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block
Expand Up @@ -50,8 +50,8 @@ mixin form-field__dropdown({ label, model, name, disabled, required, multiple, p
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block
Expand Up @@ -29,10 +29,10 @@ mixin form-field__email({ label, model, name, disabled, required, placeholder, t
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

+form-field__error({ error: 'email', message: `${errLbl} has invalid format!` })

if block
block
Expand Up @@ -33,9 +33,6 @@ mixin form-field__number({ label, model, name, disabled, required, placeholder,
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

Expand All @@ -46,3 +43,6 @@ mixin form-field__number({ label, model, name, disabled, required, placeholder,
+form-field__error({ error: 'step', message: `${errLbl} step should be ${step || 1}` })

+form-field__error({ error: 'number', message: 'Only numbers allowed' })

if block
block
Expand Up @@ -44,10 +44,10 @@ mixin form-field__password({ label, model, name, disabled, required, placeholder
($input2.$dirty || $input2.$touched || $input2.$submitted) && $input2.$invalid
`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

+form-field__error({ error: 'mismatch', message: `Password does not match the confirm password!` })

if block
block
Expand Up @@ -29,8 +29,9 @@ mixin form-field__phone({ label, model, name, disabled, required, optional, plac
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })
Expand Up @@ -29,8 +29,8 @@ mixin form-field__text({ label, model, name, disabled, required, placeholder, ti
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block
Expand Up @@ -48,8 +48,8 @@ mixin form-field__typeahead({ label, model, name, disabled, required, placeholde
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block
Expand Up @@ -56,8 +56,8 @@ mixin form-field__timepicker({ label, model, name, mindate, maxdate, disabled, r
ng-messages=`$input.$error`
ng-show=`($input.$dirty || $input.$touched || $input.$submitted) && $input.$invalid`
)
if block
block

if required
+form-field__error({ error: 'required', message: `${errLbl} could not be empty!` })

if block
block

0 comments on commit 7da1864

Please sign in to comment.