course controller added

This commit is contained in:
gandhimathi 2017-11-23 19:22:11 +05:30
parent ceeaa20b0d
commit 24a5954f02

View File

@ -85,7 +85,7 @@
</tbody>
</table>-->
<fieldset>
<table class="table table-hover">
<thead>
<tr>
@ -137,6 +137,7 @@
</tbody>
</table>
</fieldset>
<dir-pagination-controls max-size="5" direction-links="true" boundary-links="true">
</dir-pagination-controls>
</div>
@ -185,9 +186,9 @@
tabindex="1" class="form-control" name="branchcode"
ng-model="myModel.branchCode" ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
<span class="error text-small block"
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.required">Branch Code required</span>
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.required">Branch code is required</span>
<span class="error text-small block"
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.pattern">Invalid Branch Code </span>
ng-if="Form.branchcode.$dirty && Form.branchcode.$error.pattern">Invalid branch code </span>
<!--<span class="success text-small"-->
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
</div>
@ -203,9 +204,9 @@
tabindex="2" class="form-control" name="branchname"
ng-model="myModel.branchName" ng-pattern="/^[a-zA-Z0-9.\s]*$/" required/>
<span class="error text-small block"
ng-if="Form.branchname.$dirty && Form.branchname.$error.required">Branch Name required</span>
ng-if="Form.branchname.$dirty && Form.branchname.$error.required">Branch name is required</span>
<span class="error text-small block"
ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid Branch Name </span>
ng-if="Form.branchname.$dirty && Form.branchname.$error.pattern">Invalid branch name </span>
<!--<span class="success text-small"-->
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
</div>
@ -246,9 +247,9 @@
ng-pattern="/^[0-9]*$/" required>
<span class="error text-small block"
ng-if="Form.primaryPhone.$dirty && Form.primaryPhone.$invalid"
ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Primary phone is required.</span>
ng-hide="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Phone number is required.</span>
<span class="error text-small block"
ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a Valid Phone Number</span>
ng-if="Form.primaryPhone.$error.maxlength || Form.primaryPhone.$error.minlength || Form.primaryPhone.$error.pattern">Enter a valid phone number</span>
<!-- <span class="success text-small"
ng-if="Form.primaryPhone.$valid">Thank You!</span>-->
</div>
@ -265,7 +266,7 @@
ng-minlength="10" ng-maxlength="12"
ng-pattern="/^[0-9]*$/"/>
<span class="error text-small block"
ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a Valid Phone Number</span>
ng-if="Form.secondaryPhone.$error.maxlength || Form.secondaryPhone.$error.minlength || Form.secondaryPhone.$error.pattern">Enter a valid phone number</span>
</div>
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.Landline.$dirty && Form.Landline.$invalid, 'has-success':Form.Landline.$valid}">
@ -279,7 +280,7 @@
ng-minlength="11" ng-maxlength="13"
ng-pattern="/^[0-9-]*$/"/>
<span class="error text-small block"
ng-if="Form.Landline.$error.maxlength || Form.Landline.$error.minlength || Form.Landline.$error.pattern">Enter a Valid Number</span>
ng-if="Form.Landline.$error.maxlength || Form.Landline.$error.minlength || Form.Landline.$error.pattern">Enter a valid number</span>
</div>
</div>
<div class="row">