changes in call tracking model

This commit is contained in:
gandhimathi 2017-11-22 14:48:15 +05:30
parent 9b3189c59a
commit b950101d33

View File

@ -1,3 +1,13 @@
<style>
b.fa {
display: inline-block;
border-radius: 60px;
box-shadow: 0px 0px 2px #FF6600;
padding: 0.5em 0.6em;
}
</style>
<!-- start: PAGE TITLE --> <!-- start: PAGE TITLE -->
<section id="page-title"> <section id="page-title">
<div class="row"> <div class="row">
@ -99,15 +109,34 @@
}); });
</script> </script>
<div class="col-md-3"> <div class="col-md-3">
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search Date" />
<input type="text"
class="form-control "
ng-click="startOpen = !startOpen"
datepicker-popup="dd-MM-yyyy"
ng-model="myModel.searchDate"
is-open="startOpen"
ng-init="startOpen = false"
name="date"
datepicker-options="dateOptions"
placeholder="Select Date"
min-date="currentDate"
max-date="minStartDate"
close-text="Close" ng-change="checkDate(myModel.searchDate);">
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search Date" ng-hide="hideDateSearch==true" />
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
<input class="form-control" type="text" ng-model="search2" id="search2" autofocus tabindex="1" placeholder="Search Mobile Number" /> <input class="form-control" type="text" ng-model="search2" id="search2" autofocus tabindex="1" placeholder="Search Mobile/Name" />
</div> </div>
<div class="col-md-3"> <!--<div class="col-md-3">
<input class="form-control" type="text" ng-model="search3" id="search3" autofocus tabindex="1" placeholder="Search Student Name" /> <input class="form-control" type="text" ng-model="search3" id="search3" autofocus tabindex="1" placeholder="Search Student Name" />
</div> </div>-->
<br><br> <br><br>
</div> </div>
@ -176,18 +205,22 @@
<tr> <tr>
<th>S.No <th>S.No
</th> </th>
<th ng-click="sort('TrackingID')">Tracking ID
<span class="glyphicon sort-icon" ng-show="sortKey=='TrackingID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th ng-click="sort('followupDetails')">Date <th ng-click="sort('followupDetails')">Date
<span class="glyphicon sort-icon" ng-show="sortKey=='followupDetails'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <span class="glyphicon sort-icon" ng-show="sortKey=='followupDetails'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
<th ng-click="sort('LeadName')">Student Name <th ng-click="sort('LeadName')">Student Name
<span class="glyphicon sort-icon" ng-show="sortKey=='LeadName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <span class="glyphicon sort-icon" ng-show="sortKey=='LeadName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
<th ng-click="sort('MobileNumber')">Mobile Number <th ng-click="sort('MobileNumber')">Mobile Number
<span class="glyphicon sort-icon" ng-show="sortKey=='MobileNumber'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <span class="glyphicon sort-icon" ng-show="sortKey=='MobileNumber'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
<th ng-click="sort('TrackingID')">Tracking ID
<span class="glyphicon sort-icon" ng-show="sortKey=='TrackingID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <th>University</th>
</th> <th>Course</th>
<th>Activity <th>Activity
</th> </th>
<th>Assigned To <th>Assigned To
@ -197,16 +230,19 @@
</tr> </tr>
</thead> </thead>
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|filter:search3:strict|filter:search2:strict|itemsPerPage:5"> <tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|filter:search2:strict|itemsPerPage:5">
<tr> <tr>
<td>{{$index+1}}</td> <td>{{$index+1}}</td>
<td><a href="#" class="text-orange" ng-click="setEditId(p);">{{p.followupDetails }}</a></td> <td><a href="#" class="text-orange" ng-click="setEditId(p);">{{p.TrackingID}}</a></td>
<td>{{p.followupDetails }}</td>
<td>{{p.LeadName}}</td> <td>{{p.LeadName}}</td>
<td>{{p.MobileNumber}}</td> <td>{{p.MobileNumber}}</td>
<td>{{p.TrackingID}}</td> <td>{{p.UniversityName}}</td>
<td>{{p.CourseName }}</td>
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.Firstname}}</td> <td>{{p.Firstname}}</td>
<td><a href="#" class="text-orange" ng-click="setEditId(p);">Click To Follow Up</a></td> <td><a href="#" class="text-orange" ng-click="setEditId(p);"><b class="fa fa-hover fa-phone " aria-hidden="true"></b>
</a></td>
</tr> </tr>
</tbody> </tbody>
@ -235,7 +271,7 @@
<script> <script>
$('#addtrack').click(function () { $('#addtrack').click(function () {
$('#branchcode').focus(); $('#mobilenumber').focus();
}); });
</script> </script>
@ -264,7 +300,7 @@
</label> </label>
<input type="text" placeholder="Enter Mobile Number" ladda="ldloading1.zoom_in" data-style="zoom-in" <input type="text" placeholder="Enter Mobile Number" ladda="ldloading1.zoom_in" data-style="zoom-in"
tabindex="5" class="form-control" name="mobilenumber" ng-minlength="10" ng-maxlength="12" autofocus tabindex="1" class="form-control" name="mobilenumber" id="mobilenumber" ng-minlength="10" ng-maxlength="12"
ng-model="myModel.mobileNumber" ng-pattern="/^[0-9]*$/" required ng-change="getLead(Form,myModel.mobileNumber);"/> ng-model="myModel.mobileNumber" ng-pattern="/^[0-9]*$/" required ng-change="getLead(Form,myModel.mobileNumber);"/>
<span class="error text-small block" <span class="error text-small block"
ng-if="Form.mobilenumber.$dirty && Form.mobilenumber.$invalid" ng-if="Form.mobilenumber.$dirty && Form.mobilenumber.$invalid"
@ -293,7 +329,7 @@
</label> </label>
<input type="text" placeholder="Enter Student Name" <input type="text" placeholder="Enter Student Name"
tabindex="5" class="form-control" name="studentname" tabindex="2" class="form-control" name="studentname"
ng-model="myModel.studentName" ng-pattern="/^[a-zA-Z.\s]*$/" required/> ng-model="myModel.studentName" ng-pattern="/^[a-zA-Z.\s]*$/" required/>
<span class="error text-small block" <span class="error text-small block"
ng-if="Form.studentname.$dirty && Form.studentname.$error.required">Student name is required</span> ng-if="Form.studentname.$dirty && Form.studentname.$error.required">Student name is required</span>
@ -318,7 +354,7 @@
<label> <label>
University <span class="symbol required"></span> University <span class="symbol required"></span>
</label> </label>
<select class="form-control" name="university" tabindex="8" id="university" <select class="form-control" name="university" tabindex="3" id="university"
ng-model="myModel.universityName" ng-model="myModel.universityName"
ng-options="details.universityName for details in university" ng-options="details.universityName for details in university"
required> required>
@ -346,7 +382,7 @@
<label> <label>
Course Name <span class="symbol required"></span> Course Name <span class="symbol required"></span>
</label> </label>
<select class="form-control" name="course" tabindex="9" id="course" <select class="form-control" name="course" tabindex="4" id="course"
ng-model="myModel.courseName" ng-model="myModel.courseName"
ng-options="courseDet.CourseID as courseDet.CourseName for courseDet in myModel.universityName.courseDetails" required> ng-options="courseDet.CourseID as courseDet.CourseName for courseDet in myModel.universityName.courseDetails" required>
<option value=""> Select Course</option> <option value=""> Select Course</option>
@ -366,7 +402,7 @@
Date <span Date <span
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<input type="text" tabindex="6" <input type="text"
class="form-control " class="form-control "
ng-click="startOpen = !startOpen" ng-click="startOpen = !startOpen"
datepicker-popup="dd-MM-yyyy" datepicker-popup="dd-MM-yyyy"
@ -403,7 +439,7 @@
Activity <span Activity <span
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<select class="form-control" name="activity" id="Box1" tabindex="1" <select class="form-control" name="activity" id="Box1" tabindex="6"
ng-model="myModel.activity" ng-model="myModel.activity"
ng-options="source.ListCode as source.ListName for source in activity" ng-options="source.ListCode as source.ListName for source in activity"
required> required>
@ -434,7 +470,7 @@
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<select class="form-control" name="assigned" id="Box2" tabindex="1" <select class="form-control" name="assigned" id="Box2" tabindex="7"
ng-model="myModel.assignedTo" ng-model="myModel.assignedTo"
ng-options="emp.loginId as emp.staffName for emp in staffDetails" ng-options="emp.loginId as emp.staffName for emp in staffDetails"
required> required>
@ -464,7 +500,7 @@
Status <span Status <span
class="symbol required"></span> class="symbol required"></span>
</label> </label>
<select class="form-control" name="status" id="Box3" tabindex="1" <select class="form-control" name="status" id="Box3" tabindex="8"
ng-model="myModel.status" ng-model="myModel.status"
ng-options="checkStatus.ListCode as checkStatus.ListName for checkStatus in status" ng-options="checkStatus.ListCode as checkStatus.ListName for checkStatus in status"
required> required>
@ -486,7 +522,7 @@
</label> </label>
<input type="text" placeholder="Enter Referred By Name" <input type="text" placeholder="Enter Referred By Name"
tabindex="5" class="form-control" name="refered" tabindex="9" class="form-control" name="refered"
ng-model="myModel.referedBy" ng-pattern="/^[a-zA-Z.\s]*$/"/> ng-model="myModel.referedBy" ng-pattern="/^[a-zA-Z.\s]*$/"/>
<span class="error text-small block" <span class="error text-small block"
@ -498,7 +534,7 @@
<label> <label>
Comments <span class="symbol required"></span> Comments <span class="symbol required"></span>
</label> </label>
<textarea placeholder="Enter Comments" tabindex="31" <textarea placeholder="Enter Comments" tabindex="10"
class="form-control textdsc" name="comments" class="form-control textdsc" name="comments"
ng-model="myModel.comments" required></textarea> ng-model="myModel.comments" required></textarea>
<span class="error text-small block" <span class="error text-small block"
@ -514,13 +550,13 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="pull-right"> <div class="pull-right">
<button type="submit" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success" data-style="zoom-in"> <button tabindex="11" type="submit" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success" data-style="zoom-in">
Submit Submit
</button> </button>
<!-- <button type="submit" class="btn btn-success btn-o" tabindex="8"> <!-- <button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit Submit
</button>--> </button>-->
<button type="reset" class="btn btn-warning btn-wide" tabindex="9" <button type="reset" class="btn btn-warning btn-wide" tabindex="12"
ng-click="branchForm.reset(Form)"> ng-click="branchForm.reset(Form)">
Reset Reset
</button> </button>
@ -535,21 +571,7 @@
</tabset> </tabset>
</div> </div>
</div> </div>
<!-- end: LIST GROUP --> <!-- end: LIST GROUP -->