student pending docs changes

This commit is contained in:
gandhimathi 2018-06-01 13:15:18 +05:30
parent 4558889574
commit ebc2dbb2c9

View File

@ -550,7 +550,7 @@
<form name="FormPendDoc" id="formPendDoc" novalidate ng-submit="studentEntrollPendingDocFORM.submit(FormPendDoc, myModelAddPendingDocDetails, p.StudentID)"
method="post">
<div class="row">
<div class="col-md-4 form-group" ng-class="{'has-error':FormPendDoc.documentDetails.$dirty && FormPendDoc.documentDetails.$invalid, 'has-success':FormPendDoc.documentDetails.$valid}">
<div class="col-md-4 form-group" ng-class="{'has-error':FormPendDoc.pendingDocumentTextarea.$dirty && FormPendDoc.pendingDocumentTextarea.$invalid, 'has-success':FormPendDoc.pendingDocumentTextarea.$valid}">
<label>
Pending Document Details <span
class="symbol required"></span>
@ -559,20 +559,25 @@
ng-model="myModelAddPendingDocDetails.documentDetails" id="pendingDocumentTextarea" maxlength="100"
required/>
<span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span>
<span class="error text-small block" ng-if="FormPendDoc.documentDetails.$dirty && FormPendDoc.documentDetails.$invalid" ng-hide="FormPendDoc.documentDetails.$error.maxlength || FormPendDoc.documentDetails.$error.minlength || FormPendDoc.documentDetails.$error.pattern">Pending Document Details required.</span>
<span class="error text-small block" ng-if="FormPendDoc.pendingDocumentTextarea.$dirty && FormPendDoc.pendingDocumentTextarea.$invalid">Pending document details required.</span>
<span class="error text-small block"
ng-if="FormDoc.FormPendDoc.$error.maxlength || FormPendDoc.pendingDocumentTextarea.$error.pattern">Enter a valid document details</span>
</div>
<div class="col-md-4 form-group" ng-class="{'has-error':FormPendDoc.documentDetails.$dirty && FormPendDoc.documentDetails.$invalid, 'has-success':FormPendDoc.documentDetails.$valid}">
<div data-ng-controller="DatepickerDemoCtrl">
<div class="col-md-4 form-group" ng-class="{'has-error':FormPendDoc.FormPendDate.$dirty && FormPendDoc.FormPendDate.$invalid, 'has-success':FormPendDoc.FormPendDate.$valid}">
<div data-ng-controller="DatepickerDemoCtrl">
<label>
Follow-up date<span
class="symbol required"></span>
</label>
<input type="text" tabindex="1" class="form-control " ng-click="startOpen =!startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAddPendingDocDetails.documentDate"
is-open="startOpen" ng-init="startOpen = false" name="date" datepicker-options="dateOptions"
<input type="text" tabindex="1" class="form-control " ng-click="startOpen =!startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAddPendingDocDetails.documentDate" min-date="currentDate"
is-open="startOpen" ng-init="startOpen = false" name="FormPendDate" datepicker-options="dateOptions"
placeholder="Select Date" close-text="Close" ng-change="getDateFormat(p.SessionDate,'2');"
required="required" ng-readonly="true" />
<span class="error text-small block" ng-if="Form.date.$dirty && Form.date.$error.required">Session date is required.</span>
<span class="error text-small block" ng-if="FormPendDoc.FormPendDate.$dirty && FormPendDoc.FormPendDate.$error.required">Follow-up date is required.</span>
<!--<span class="success text-small block"-->
<!--ng-if="Form.date.$valid ">Thank You</span>-->
</div>
@ -603,7 +608,7 @@
<label>
</label>
<div>
<button tooltip="Upload" type="submit" ng-disabled="disableButton" tabindex="4002" class="btn btn-xs btn-success">
<button tooltip="Add" type="submit" ng-disabled="disableButton" tabindex="4002" class="btn btn-xs btn-success">
Add
</button>
<button tooltip="Reset" class="btn btn-warning btn-xs" tabindex="4003" ng-click="studentEntrollPendingDocFORM.reset(FormPendDoc)">
@ -617,8 +622,9 @@
<h5 ng-show="documentTrackAddDetailsLoading" style="color:#007AFF">Loading...</h5>
</div>
</div>
</form>
</div>
</form>
</fieldset>
<div id="documentDetalils" ng-init="getStudentPendingEntrolDocDetails(p.StudentID)">
<div class="table-responsive">