editting-employee-mobile-Number-for-SMS-Should-only-allow-numeric-issues#2962 (#3033)

This commit is contained in:
Elirehema Paul 2020-09-23 01:53:03 +03:00 committed by GitHub
parent 7b8fbc03d6
commit 32b6ca925f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,15 @@
<label class="control-label col-sm-2" for="mobileNo">{{ 'label.input.mobileNo' | translate }}</label>
<div class="col-sm-3">
<input type="text" id="mobileNo" class="form-control" ng-model="formData.mobileNo">
<input type="text" id="mobileNo" name="mobileNo" ng-model="formData.mobileNo"
ng-pattern="/^[0-9]+$/" class="form-control"/>
</div>
<div class="col-sm-2">
<span ng-show="editemployeeform.mobileNo.$invalid && editemployeeform.mobileNo.$dirty">
<small class="required" ng-show="editemployeeform.mobileNo.$error.pattern">
{{'label.mustbenumeric' | translate}}
</small>
</span>
</div>
</div>