call track changes done

This commit is contained in:
gandhimathi 2018-03-13 13:37:07 +05:30
parent ddebc104b5
commit 06293b0295

View File

@ -33,13 +33,13 @@
</div>
<div class="col-md-6 text-right">
<button type="submit" class="btn btn-sm btn-azure" ng-click="previous(followupDetails.TrackingID);">
<button type="submit" tabindex="1" class="btn btn-sm btn-azure" ng-click="previous(followupDetails.TrackingID);">
Previous
</button>
<button type="submit" class="btn btn-sm btn-azure" ng-click="next(followupDetails.TrackingID);">
<button type="submit" tabindex="2" class="btn btn-sm btn-azure" ng-click="next(followupDetails.TrackingID);">
Next
</button>
<button type="submit" class="btn btn-sm btn-warning" ng-click="cancel();">
<button type="submit" tabindex="3" class="btn btn-sm btn-warning" ng-click="cancel();">
Cancel
</button>
@ -51,6 +51,7 @@
<div class="panel-body">
<div class="row">
<form name="Form" id="form" novalidate method="post">
<div class="col-md-12">
@ -62,7 +63,7 @@
<!--{{followupDetails | json}}-->
<table class="table table-condensed" ng-controller="studentModalDemoCtrl">
<thead>
<tr >
<tr>
<th colspan="3">Contact Information</th>
</tr>
</thead>
@ -71,7 +72,7 @@
<td class="text-primary">Student Name</td>
<td><span class="text-blue text-bold">
<a tooltip="View Student" class="text-blue" ng-click="open(followupDetails);"> {{followupDetails.LeadName}}</a></span>
<a tooltip="View Student" class="text-blue" ng-click="open(followupDetails);"> {{followupDetails.LeadName}}</a></span>
</td>
</tr>
<tr>
@ -92,16 +93,43 @@
</tr>
<tr>
<td>Alternate Mobile</td>
<td>
{{followupDetails.AlternateMobile}} </td>
<td class="form-group"
ng-class="{'has-error':Form.editAltermobilenumber.$dirty && Form.editAltermobilenumber.$invalid, 'has-success':Form.editAltermobilenumber.$valid}">
<input type="text" placeholder="Enter Alter Mobile Number"
autofocus tabindex="4" class="form-control" name="editAltermobilenumber" id="altermobilenumber" ng-minlength="10" ng-maxlength="12"
ng-model="myModel1.AlternateMobile" ng-pattern="/^[0-9]*$/" />
<span class="error text-small block"
ng-if="Form.editAltermobilenumber.$error.maxlength || Form.editAltermobilenumber.$error.minlength || Form.editAltermobilenumber.$error.pattern">Enter a valid phone number</span>
</td>
</tr>
<tr>
<td>Address</td>
<td>
{{followupDetails.Address}} </td>
<textarea placeholder="Enter Address" tabindex="5"
class="form-control textdsc" name="editaddress" rows="3"
ng-model="myModel1.Address"></textarea>
<!--<span class="error text-small block"
ng-if="Form.address.$dirty && Form.address.$invalid">Address is required</span>-->
</td>
</tr>
<tr>
<td>Referred By</td>
<td class="form-group"
ng-class="{'has-error':Form.refered.$dirty && Form.refered.$invalid, 'has-success':Form.refered.$valid}">
<input type="text" placeholder="Enter Referred By Name"
tabindex="6" class="form-control" name="refered"
ng-model="myModel1.ReferredBy" ng-pattern="/^[a-zA-Z.\s]*$/"/>
<span class="error text-small block"
ng-if="Form.refered.$dirty && Form.refered.$error.pattern">Invalid referred by name </span>
</td>
</tr>
</tbody>
</table>
@ -122,13 +150,14 @@
</tr>
<tr>
<td>Followup On</td>
<td>
<td class="form-group"
ng-class="{'has-error':Form.date.$dirty && Form.date.$invalid, 'has-success':Form.date.$valid}">
<div data-ng-controller="DatepickerDemoCtrl">
<input type="text" tabindex="6"
<input type="text" tabindex="7"
class="form-control "
ng-click="startOpen = !startOpen"
datepicker-popup="dd-MM-yyyy"
@ -141,10 +170,10 @@
min-date="currentDate1"
max-date="futureDate1"
close-text="Close" required="required" ng-readonly="true"/>
<span class="error text-small block"
ng-if="Form.date.$dirty && Form.date.$error.required">Date is required.</span>
<!--<span class="success text-small block"-->
<!--ng-if="Form.date.$valid ">Thank You</span>-->
<span class="error text-small block"
ng-if="Form.date.$dirty && Form.date.$error.required">Followup date is required.</span>
</div>
@ -154,7 +183,7 @@
<tr ng-if="userType != 'R004'">
<td>Assigned To</td>
<td>
<select class="form-control" name="status" id="Box4" tabindex="1"
<select class="form-control" name="status" id="Box4" tabindex="8"
ng-model="myModel1.assignStaff"
ng-options="checkStaf.loginId as checkStaf.staffName for checkStaf in staffDetails"
required>
@ -167,7 +196,7 @@
<tr ng-if="userType == 'R004'">
<td>Select Branch</td>
<td>
<select class="form-control" name="status" id="Box43" tabindex="1"
<select class="form-control" name="status" id="Box43" tabindex="9"
ng-model="myModel1.branch"
ng-options="checkBranch.BranchCode as checkBranch.BranchName for checkBranch in staffDetails" ng-change="changeBranch(myModel1.branch);"
required>
@ -181,7 +210,7 @@
<tr ng-if="userType == 'R004'">
<td>Assigned To</td>
<td>
<select class="form-control" name="status" id="Box44" tabindex="2"
<select class="form-control" name="status" id="Box44" tabindex="10"
ng-model="myModel1.assignStaff"
ng-options="checkStaf.loginId as checkStaf.staffName for checkStaf in staffArray"
required>
@ -197,7 +226,7 @@
<td><span class="label label-sm label-info">{{followupDetails.statusListName}}</span></td>
-->
<td>
<select class="form-control" name="status" id="Box3" tabindex="2"
<select class="form-control" name="status" id="Box3" tabindex="11"
ng-model="myModel1.status"
ng-options="checkStatus.ListCode as checkStatus.ListName for checkStatus in trackingStatus"
required>
@ -312,11 +341,11 @@
<div class="panel-body" >
<div class="col-md-8">
<textarea class="form-control text-dark" placeholder="Enter a comments" rows="2" ng-model="myModel1.comments"></textarea>
<textarea tabindex="12" class="form-control text-dark" placeholder="Enter a comments" rows="2" ng-model="myModel1.comments"></textarea>
</div>
<div class="col-md-4 text-left">
<button type="submit" ladda="ldloading2.zoom_in" class="btn btn-sm btn-success" data-style="zoom-in" ng-click="updateFollowup(followupDetails,myModel1,'zoom-in');">
<button type="submit" ladda="ldloading2.zoom_in" class="btn btn-sm btn-success" tabindex="13" data-style="zoom-in" ng-click="updateFollowup(Form,followupDetails,myModel1,'zoom-in');">
Save
</button>
@ -331,7 +360,7 @@
<div class="panel panel-white" id="activities">
<div class="panel-heading border-light">
<h4 class="panel-title text-orange">Recent Activities</h4>
<h4 class="panel-title text-orange">Comments History</h4>
<paneltool class="panel-tools" tool-collapse="tool-collapse" tool-refresh="load1" tool-dismiss="tool-dismiss"></paneltool>
</div>
<div collapse="activities" ng-init="activities=false" class="panel-wrapper">
@ -357,6 +386,7 @@
</div>
</div>
</form>
</div>
</div>