diff --git a/Apollo/assets/views/editBranchDetails.html b/Apollo/assets/views/editBranchDetails.html index b5b1abf8..54d68f32 100644 --- a/Apollo/assets/views/editBranchDetails.html +++ b/Apollo/assets/views/editBranchDetails.html @@ -19,9 +19,9 @@ tabindex="1" class="form-control" name="branchcode" ng-model="p.BranchCode" ng-pattern="/^[a-zA-Z0-9.\s]*$/" readonly required/> Branch Code required + ng-if="Form.branchcode.$dirty && Form.branchcode.$error.required">Branch code is required Invalid Branch Code + ng-if="Form.branchcode.$dirty && Form.branchcode.$error.pattern">Invalid branch code @@ -37,9 +37,9 @@ tabindex="2" class="form-control" name="branchname" ng-model="p.BranchName" ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/> Branch Name required + ng-if="Form.branchname.$dirty && Form.branchname.$error.required">Branch name is required Invalid Branch Name + ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid branch name @@ -80,9 +80,9 @@ ng-pattern="/^[0-9]*$/" required> Primary phone is required. + ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Phone number is required. Enter a Valid Phone Number + ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a valid phone number @@ -99,7 +99,7 @@ ng-minlength="10" ng-maxlength="12" ng-pattern="/^[0-9]*$/"/> Enter a Valid Phone Number + ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a valid phone number