diff --git a/Apollo/assets/views/branchDetails.html b/Apollo/assets/views/branchDetails.html index 0bc7d2f4..36b32c85 100644 --- a/Apollo/assets/views/branchDetails.html +++ b/Apollo/assets/views/branchDetails.html @@ -85,7 +85,7 @@ --> - +
@@ -137,6 +137,7 @@
+
@@ -185,9 +186,9 @@ tabindex="1" class="form-control" name="branchcode" ng-model="myModel.branchCode" ng-pattern="/^[a-zA-Z0-9.\s]*$/" 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 @@ -203,9 +204,9 @@ tabindex="2" class="form-control" name="branchname" ng-model="myModel.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 @@ -246,9 +247,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 @@ -265,7 +266,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
@@ -279,7 +280,7 @@ ng-minlength="11" ng-maxlength="13" ng-pattern="/^[0-9-]*$/"/> Enter a Valid Number + ng-if="Form.Landline.$error.maxlength || Form.Landline.$error.minlength || Form.Landline.$error.pattern">Enter a valid number