396 lines
24 KiB
HTML
Executable File
396 lines
24 KiB
HTML
Executable File
<form name="Form" id="form" novalidate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Update Course Details
|
|
</legend>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.coursecode.$dirty && Form.coursecode.$invalid, 'has-success':Form.coursecode.$valid}">
|
|
<label>
|
|
Course ID <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Course ID"
|
|
tabindex="2" class="form-control" name="coursecode"
|
|
ng-model="p.CourseCode" ng-pattern="/^[a-zA-Z0-9-]*$/" 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"
|
|
ng-if="Form.coursecode.$dirty && Form.coursecode.$error.pattern">Invalid course id </span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.coursename.$dirty && Form.coursename.$invalid, 'has-success':Form.coursename.$valid}">
|
|
<label>
|
|
Course Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Course Name"
|
|
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>
|
|
<span class="error text-small block"
|
|
ng-if="Form.coursename.$dirty && Form.coursename.$error.pattern">Invalid course name </span>
|
|
<!--<span class="success text-small"-->
|
|
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
|
|
</div>
|
|
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.university.$dirty && Form.university.$invalid, 'has-success':Form.university.$valid}">
|
|
<label>
|
|
University <span class="symbol required"></span>
|
|
</label>
|
|
<select class="form-control" name="university" tabindex="4" id="university"
|
|
ng-model="p.UniversityID"
|
|
ng-options="details.UniversityID as details.UniversityName for details in localUniversityDetails"
|
|
disabled required>
|
|
<option value=""> Select University</option>
|
|
</select>
|
|
<span class="error text-small block"
|
|
ng-if="Form.university.$dirty && Form.university.$invalid">University is required</span>
|
|
<!--<span class="success text-small" ng-if="Form.university.$valid">Thank You!</span>-->
|
|
</div>
|
|
<!--<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.fees.$dirty && Form.fees.$invalid, 'has-success':Form.fees.$valid}">
|
|
<label>
|
|
Fees <span class="symbol required"></span>
|
|
</label>
|
|
<select class="form-control" name="fees" tabindex="4" id="fees"
|
|
ng-model="myModel1.ListName"
|
|
ng-options="feesList.ListName for feesList in feesDetails" disabled
|
|
required>
|
|
<!– <option value=""> Select Fees</option>–>
|
|
</select>
|
|
<span class="error text-small block"
|
|
ng-if="Form.fees.$dirty && Form.fees.$invalid">Fees is required</span>
|
|
<!–<span class="success text-small" ng-if="Form.fees.$valid">Thank You!</span>–>
|
|
</div>-->
|
|
<div class="col-md-3">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
<div ng-if="p.IsActive==true">
|
|
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
|
|
|
</div>
|
|
<div ng-if="p.IsActive==false">
|
|
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
|
|
|
</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">
|
|
<div class="col-md-12 form-group">
|
|
<label>
|
|
Subjects
|
|
</label>
|
|
<ui-select multiple ng-model="viewSubject.list" tabindex="6">
|
|
<ui-select-match placeholder="Select Subject">
|
|
{{$item.SubjectName}}
|
|
</ui-select-match>
|
|
<ui-select-choices
|
|
repeat="sub.SubjectID as sub in localSubjectDetails | filter:$select.search">
|
|
{{sub.SubjectName}}
|
|
</ui-select-choices>
|
|
</ui-select>
|
|
|
|
<input class="ng-hide" type="text" name="subject"
|
|
ng-model="viewSubject.list"
|
|
>
|
|
<!--<span class="error text-small block"
|
|
ng-if="Form.subject.$dirty && Form.subject.$error.required && myModel.subject.length==0">Subject is required.</span>-->
|
|
<!--<span class="success text-small block"-->
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
<div class="row" ng-if="myModelRegular1.program=='P001' || myModelLateral1.program=='P002'">
|
|
<div class="col-md-12">
|
|
|
|
<fieldset>
|
|
<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'">
|
|
<label>
|
|
{{myModelRegular1.programName}} Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Regular Fees Amt"
|
|
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"
|
|
ng-if="Form.regularFees.$error.maxlength || Form.regularFees.$error.pattern">Enter a valid amount</span>
|
|
|
|
</div>
|
|
<div class="col-md-6 form-group" ng-class="{'has-error':Form.lateralFees.$dirty && Form.lateralFees.$invalid}" ng-if="myModelLateral1.program=='P002'">
|
|
<label>
|
|
{{myModelLateral1.programName}} Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Lateral Fees Amt"
|
|
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"
|
|
ng-if="Form.lateralFees.$error.maxlength || Form.lateralFees.$error.pattern">Enter a valid amount</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="updateMoreItems.length!=0">
|
|
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend >{{myModelSemYear1.FeesName}}</legend>
|
|
|
|
<div class="panel-body" >
|
|
|
|
<div class="panel-scroll height-180" perfect-scrollbar wheel-propagation="false" suppress-scroll-x="true">
|
|
<div class="row">
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.sem_year.$dirty && Form.sem_year.$invalid}">
|
|
<label>
|
|
Sem/Year
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter 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>-->
|
|
<span class="error text-small block"
|
|
ng-if="Form.sem_year.$dirty && Form.sem_year.$error.pattern">Invalid Sem/Year name </span>
|
|
</div>
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.feesAmount.$dirty && Form.feesAmount.$invalid}">
|
|
<label>
|
|
Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Fees Amount"
|
|
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"
|
|
ng-hide="Form.feesAmount.$error.maxlength || Form.feesAmount.$error.pattern">Fees amount is required</span>-->
|
|
<span class="error text-small block"
|
|
ng-if="Form.feesAmount.$error.maxlength || Form.feesAmount.$error.pattern">Enter a valid amount</span>
|
|
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<input type="button" class="btn btn-sm btn-info" title="Click to add one more fees items" value="Add More" ng-click="updateMoreFeesItems(myModelSemYear1,Form);"/>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row" ng-repeat="n in updateMoreItems">
|
|
<div class="col-md-6 form-group" ng-class="{'has-error':n.programName==undefined, 'has-success':n.programName!=undefined}">
|
|
<label>
|
|
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Sem/year"
|
|
class="form-control" name="sem_year{{$index}}"
|
|
ng-model="n.programName" ng-pattern="/^[a-zA-Z0-9-./\s]*$/" required/>
|
|
<span class="error text-small block" ng-if="n.programName==undefined">Enter a valid name</span>
|
|
</div>
|
|
<div class="col-md-6 form-group" ng-class="{'has-error':n.FeesAmount==undefined, 'has-success':n.FeesAmount!=undefined}">
|
|
<label>
|
|
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Fees Amount"
|
|
autofocus class="form-control" name="feesAmount{{$index}}" id="feesAmount{{$index}}" ng-maxlength="8"
|
|
ng-model="n.FeesAmount" ng-pattern="/^[0-9]*$/" required/>
|
|
<span class="error text-small block" ng-if="n.FeesAmount==undefined">Enter a valid amount</span>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<fieldset>
|
|
<div class="row">
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.provFess.$dirty && Form.provFess.$invalid}">
|
|
<label>
|
|
Prov Cert Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Prov Cert Fees"
|
|
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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.transferAmount.$dirty && Form.transferAmount.$invalid}">
|
|
<label>
|
|
Transfer Cert Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter transfer Cert Fees"
|
|
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>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.degreeAmount.$dirty && Form.degreeAmount.$invalid}">
|
|
<label>
|
|
Degree Cert Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Degree Cert Fees"
|
|
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>
|
|
|
|
</div>
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.migrationAmount.$dirty && Form.migrationAmount.$invalid}">
|
|
<label>
|
|
Migration Cert Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Migration Cert Fees"
|
|
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>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 form-group"
|
|
ng-class="{'has-error':Form.otherAmount.$dirty && Form.otherAmount.$invalid}">
|
|
<label>
|
|
Other Fees
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Other Fees"
|
|
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>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<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',viewSubject)">
|
|
Save
|
|
</button>
|
|
|
|
<input type="button" class="btn btn-warning btn-wide" tabindex="17" value="Cancel"
|
|
ng-click="cancel();">
|
|
|
|
</input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- class="editRowTd" -->
|
|
|
|
|
|
|