From ceeaa20b0da8080d7cb1833fc10fd6ba9977e610 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 23 Nov 2017 19:19:22 +0530 Subject: [PATCH] course controller added --- Apollo/assets/views/editBranchDetails.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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
@@ -113,7 +113,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