This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Protractor tests and fixed issue #36
- Added full End-to-End tests for all available Validators with Protractor for both the Directive & Service - Fixed issue #36 where the bower.json scripts order was incorrect - Fixed a few minor bugs found when buildint Protractor tests - Changed all location translation :param with {0}, {1} to follow a better standard as C# String.Format()
- Loading branch information
1 parent
1068062
commit 15b11e6
Showing
24 changed files
with
2,342 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<h3>Directive</h3> | ||
|
||
<div class="checkbox text-right" style="margin-top:-25px"> | ||
<label> | ||
<input type="checkbox" ng-model="displayValidationSummary"> {{ 'SHOW_VALIDATION_SUMMARY' | translate }} | ||
</label> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<!-- Angular-Validation saves the summary of errors inside 2 locations: 1- $scope.$validationSummary 2- $scope.formName.$validationSummary (only accessible if you named your form) so it becomes easy to show all errors --> | ||
<div class="alert alert-danger alert-dismissable" ng-show="displayValidationSummary && form01.$validationSummary.length > 0"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" ng-click="displayValidationSummary = false">×</button> | ||
<h4><strong>{{ 'ERRORS' | translate }}!</strong></h4> | ||
<ul> | ||
<li ng-repeat="item in form01.$validationSummary">{{ item.friendlyName != '' ? item.friendlyName : item.field }}: {{item.message}}</li> | ||
</ul> | ||
</div> | ||
|
||
<form novalidate name="form01" method="POST"> | ||
<div class="form-group row" ng-repeat="v in validations"> | ||
<label for="input{{$index}}">input{{$index}}</label> | ||
<input class="form-control" type="text" name="input{{$index}}" ng-model="v.input$index" validation="required|{{v.validation == 'required' ? '' : v.validation}}"> | ||
</div> | ||
|
||
<div class="form-actions"> | ||
<button type="submit" name="save_btn" class="btn btn-primary" ng-disabled="form01.$invalid">{{ 'SAVE' | translate }} (ngDisabled)</button> | ||
<button type="submit" name="save_btn" class="btn btn-primary" ng-click="submitForm()">{{ 'SAVE' | translate }} (ngSubmit)</button> | ||
</div> | ||
</form> |
Oops, something went wrong.