course details changes done

This commit is contained in:
gandhimathi 2018-01-25 17:47:19 +05:30
parent 756fd2c90f
commit e4bd7485da

View File

@ -16,8 +16,8 @@
</label>
<input type="text" placeholder="Enter Course ID"
tabindex="1" class="form-control" name="coursecode"
ng-model="p.CourseID" ng-pattern="/^[a-zA-Z0-9-\s]*$/" readonly required/>
tabindex="2" class="form-control" name="coursecode"
ng-model="p.CourseID" ng-pattern="/^[a-zA-Z0-9-]*$/" readonly required/>
<span class="error text-small block"
ng-if="Form.coursecode.$dirty && Form.coursecode.$error.required">Course id is required</span>
<span class="error text-small block"
@ -26,6 +26,7 @@
</div>
<div class="col-md-3 form-group"
ng-class="{'has-error':Form.coursename.$dirty && Form.coursename.$invalid, 'has-success':Form.coursename.$valid}">
<label>
@ -33,7 +34,7 @@
</label>
<input type="text" placeholder="Enter Course Name"
tabindex="2" class="form-control" name="coursename"
tabindex="3" class="form-control" name="coursename"
ng-model="p.CourseName" ng-pattern="/^[a-zA-Z-./\s]*$/" required/>
<span class="error text-small block"
ng-if="Form.coursename.$dirty && Form.coursename.$error.required">Course name is required</span>
@ -48,7 +49,7 @@
<label>
University <span class="symbol required"></span>
</label>
<select class="form-control" name="university" tabindex="3" id="university"
<select class="form-control" name="university" tabindex="4" id="university"
ng-model="p.UniversityID"
ng-options="details.UniversityID as details.UniversityName for details in university"
disabled required>
@ -88,9 +89,40 @@
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 form-group"
ng-class="{'has-error':Form.specilization1.$dirty && Form.specilization1.$invalid}">
<label>
Specilization 1
</label>
<input type="text" placeholder="Enter Specilization 1"
tabindex="5" class="form-control" name="specilization1"
ng-model="p.Specilization1" ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.pattern">Invalid Specilization 1 </span>
<!--<span class="success text-small"-->
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
</div>
<div class="col-md-6 form-group"
ng-class="{'has-error':Form.specilization2.$dirty && Form.specilization2.$invalid}">
<label>
Specilization 2
</label>
<input type="text" placeholder="Enter Specilization 2"
tabindex="6" class="form-control" name="specilization2"
ng-model="p.Specilization2" ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<!--<span class="error text-small block"
ng-if="Form.specilization1.$dirty && Form.specilization1.$error.required">Specilization 1 is required</span>-->
<span class="error text-small block"
ng-if="Form.specilization2.$dirty && Form.specilization2.$error.pattern">Invalid Specilization 2 </span>
<!--<span class="success text-small"-->
<!--ng-if="Form.specilization1.$valid">Thank You!</span>-->
</div>
</div>
<div class="row">
@ -99,7 +131,8 @@
<div class="row">
<div class="col-md-12">
<fieldset> <legend> Single </legend>
<fieldset ng-if="myModelRegular1.program=='P001'">
<legend> Single </legend>
<div class="row">
<div class="col-md-6 form-group" ng-class="{'has-error':Form.regularFees.$dirty && Form.regularFees.$invalid}" ng-if="myModelRegular1.program=='P001'">
@ -108,7 +141,7 @@
</label>
<input type="text" placeholder="Enter Regular Fees Amt"
autofocus tabindex="5" class="form-control" name="regularFees" id="regularFees" ng-maxlength="8"
autofocus tabindex="7" class="form-control" name="regularFees" id="regularFees" ng-maxlength="8"
ng-model="myModelRegular1.FeesAmount" ng-pattern="/^[0-9]*$/"/>
<span class="error text-small block"
@ -121,7 +154,7 @@
</label>
<input type="text" placeholder="Enter Lateral Fees Amt"
autofocus tabindex="5" class="form-control" name="lateralFees" id="lateralFees" ng-maxlength="8"
autofocus tabindex="8" class="form-control" name="lateralFees" id="lateralFees" ng-maxlength="8"
ng-model="myModelLateral1.FeesAmount" ng-pattern="/^[0-9]*$/"/>
<span class="error text-small block"
@ -154,7 +187,7 @@
</label>
<input type="text" placeholder="Enter Sem/year"
tabindex="6" class="form-control" name="sem_year"
tabindex="9" class="form-control" name="sem_year"
ng-model="myModelSemYear1.programName" ng-pattern="/^[a-zA-Z0-9-./\s]*$/"/>
<!--<span class="error text-small block"
ng-if="Form.sem_year.$dirty && Form.sem_year.$error.required">Sem/Year is required</span>-->
@ -168,7 +201,7 @@
</label>
<input type="text" placeholder="Enter Fees Amount"
autofocus tabindex="7" class="form-control" name="feesAmount" id="feesAmount" ng-maxlength="8"
autofocus tabindex="10" class="form-control" name="feesAmount" id="feesAmount" ng-maxlength="8"
ng-model="myModelSemYear1.FeesAmount" ng-pattern="/^[0-9]*$/"/>
<!--<span class="error text-small block"
ng-if="Form.feesAmount.$dirty && Form.feesAmount.$invalid"
@ -230,7 +263,7 @@
</label>
<input type="text" placeholder="Enter Prov Cert Fees"
autofocus tabindex="8" class="form-control" name="provFess" id="provFess" ng-maxlength="8"
autofocus tabindex="11" class="form-control" name="provFess" id="provFess" ng-maxlength="8"
ng-model="p.PC" ng-pattern="/^[0-9]*$/">
<span class="error text-small block"
ng-if="Form.provFess.$error.maxlength || Form.provFess.$error.pattern">Enter a valid amount</span>
@ -246,7 +279,7 @@
</label>
<input type="text" placeholder="Enter transfer Cert Fees"
autofocus tabindex="9" class="form-control" name="transferAmount" id="transferAmount" ng-maxlength="8"
autofocus tabindex="12" class="form-control" name="transferAmount" id="transferAmount" ng-maxlength="8"
ng-model="p.TC" ng-pattern="/^[0-9]*$/">
<span class="error text-small block"
ng-if="Form.transferAmount.$error.maxlength || Form.transferAmount.$error.pattern">Enter a valid amount</span>
@ -263,7 +296,7 @@
</label>
<input type="text" placeholder="Enter Degree Cert Fees"
autofocus tabindex="10" class="form-control" name="degreeAmount" id="degreeAmount" ng-maxlength="8"
autofocus tabindex="13" class="form-control" name="degreeAmount" id="degreeAmount" ng-maxlength="8"
ng-model="p.DC" ng-pattern="/^[0-9]*$/">
<span class="error text-small block"
ng-if="Form.degreeAmount.$error.maxlength || Form.degreeAmount.$error.pattern">Enter a valid amount</span>
@ -276,7 +309,7 @@
</label>
<input type="text" placeholder="Enter Migration Cert Fees"
autofocus tabindex="11" class="form-control" name="migrationAmount" id="migrationAmount" ng-maxlength="8"
autofocus tabindex="14" class="form-control" name="migrationAmount" id="migrationAmount" ng-maxlength="8"
ng-model="p.MC" ng-pattern="/^[0-9]*$/">
<span class="error text-small block"
ng-if="Form.migrationAmount.$error.maxlength || Form.migrationAmount.$error.pattern">Enter a valid amount</span>
@ -292,7 +325,7 @@
</label>
<input type="text" placeholder="Enter Other Fees"
autofocus tabindex="12" class="form-control" name="otherAmount" id="otherAmount" ng-maxlength="8"
autofocus tabindex="15" class="form-control" name="otherAmount" id="otherAmount" ng-maxlength="8"
ng-model="p.OtherFees" ng-pattern="/^[0-9]*$/">
<span class="error text-small block"
ng-if="Form.otherAmount.$error.maxlength || Form.otherAmount.$error.pattern">Enter a valid amount</span>
@ -313,11 +346,11 @@
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="submit" ladda="ldloading.zoom_in" tabindex="9" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateCourse(p,Form,myModelRegular1,myModelLateral1,myModelSemYear1,'zoom-in')">
<button type="submit" ladda="ldloading.zoom_in" tabindex="16" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateCourse(p,Form,myModelRegular1,myModelLateral1,myModelSemYear1,'zoom-in')">
Save
</button>
<input type="button" class="btn btn-warning btn-wide" tabindex="10" value="Cancel"
<input type="button" class="btn btn-warning btn-wide" tabindex="17" value="Cancel"
ng-click="cancel();">
</input>