| 25496 |
tejbeer |
1 |
|
|
|
2 |
<style>
|
|
|
3 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
4 |
background: white;
|
|
|
5 |
background-color: white;
|
|
|
6 |
}
|
|
|
7 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
8 |
background: white;
|
|
|
9 |
background-color:white;
|
|
|
10 |
}
|
|
|
11 |
.table-striped > tbody > tr:hover > td,
|
|
|
12 |
.table-striped > tbody > tr:hover {
|
|
|
13 |
background-color: #e98c8f;
|
|
|
14 |
color:white;
|
|
|
15 |
}
|
|
|
16 |
.btn:hover{
|
|
|
17 |
color: grey;
|
|
|
18 |
text-decoration: none;
|
|
|
19 |
}
|
|
|
20 |
.btn-primary:hover{
|
|
|
21 |
color: grey;
|
|
|
22 |
text-decoration: none;
|
|
|
23 |
}
|
|
|
24 |
.sale-details{
|
|
|
25 |
cursor:pointer;
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
</style>
|
|
|
29 |
|
| 25645 |
tejbeer |
30 |
<script>
|
| 25496 |
tejbeer |
31 |
|
| 25645 |
tejbeer |
32 |
$(".refferal-reject").click(function(){
|
|
|
33 |
$("#add-rejection-reason").modal({backdrop: false});
|
|
|
34 |
|
|
|
35 |
});
|
|
|
36 |
|
|
|
37 |
</script>
|
|
|
38 |
|
|
|
39 |
|
| 25496 |
tejbeer |
40 |
<section class="wrapper">
|
|
|
41 |
<div class="row">
|
|
|
42 |
<div class="col-lg-12">
|
|
|
43 |
<h3 class="page-header"><i class="icon_document_alt"></i>REFFERAL</h3>
|
|
|
44 |
<ol class="breadcrumb">
|
|
|
45 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
46 |
<li><i class="icon_document_alt"></i>Refferals</li>
|
|
|
47 |
</ol>
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
|
|
50 |
<input id="url" name="url" type="hidden" value="$url"/>
|
|
|
51 |
<div id="refferal-table">
|
|
|
52 |
<div class="row">
|
|
|
53 |
<div class="col-lg-12">
|
|
|
54 |
<table class="table table-striped table-advance table-hover">
|
|
|
55 |
<tbody>
|
|
|
56 |
<tr>
|
|
|
57 |
<th>Referee Id</th>
|
|
|
58 |
<th>Referee Name</th>
|
|
|
59 |
<th>Referee Email</th>
|
|
|
60 |
<th>Referee Mobile</th>
|
|
|
61 |
<th>Referal Name</th>
|
|
|
62 |
<th>Mobile</th>
|
|
|
63 |
<th>city</th>
|
|
|
64 |
<th>state</th>
|
|
|
65 |
<th>Created On</th>
|
|
|
66 |
<th>Updated On</th>
|
|
|
67 |
<th>Approved Timestamp</th>
|
|
|
68 |
<th colspan = 2>Status</th>
|
|
|
69 |
|
|
|
70 |
</tr>
|
|
|
71 |
#if(!$refferals.isEmpty())
|
|
|
72 |
#foreach( $request in $refferals )
|
| 25587 |
tejbeer |
73 |
<tr class="refferal-table" data="$request.getId()">
|
| 25496 |
tejbeer |
74 |
<td>$request.getId()</td>
|
|
|
75 |
<td>$request.getRefereeName()</td>
|
|
|
76 |
<td>$request.getRefereeEmail()</td>
|
|
|
77 |
<td>$request.getRefereeMobile()</td>
|
|
|
78 |
<td>$request.getFirstName() $request.getLastName()</td>
|
|
|
79 |
<td>$request.getMobile()</td>
|
|
|
80 |
<td>$request.getCity()</td>
|
|
|
81 |
<td>$request.getState()</td>
|
|
|
82 |
<td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
|
|
|
83 |
<td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
|
|
|
84 |
#if($request.getApprovedTimestamp())
|
|
|
85 |
<td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
|
|
|
86 |
#else
|
| 25587 |
tejbeer |
87 |
<td> </td>
|
| 25496 |
tejbeer |
88 |
#end
|
|
|
89 |
#if($request.getStatus()=="pending")
|
|
|
90 |
|
| 25587 |
tejbeer |
91 |
<td><button class="btn btn-primary reffral-validate" data-requestid="$request.getId()" type="button" >Validate</button>
|
| 25496 |
tejbeer |
92 |
</td>
|
|
|
93 |
|
| 25645 |
tejbeer |
94 |
<td><button class="btn btn-primary refferal-reject-modal" data-requestid="$request.getId()" data-toggle="modal" data-target="#add-rejection-reason" type="button" >Reject</button>
|
| 25496 |
tejbeer |
95 |
</td>
|
| 25587 |
tejbeer |
96 |
#elseif($request.getStatus()=="validate")
|
|
|
97 |
<td><button class="btn btn-primary reffral-approve" data-requestid="$request.getId()" type="button" >Approve</button>
|
|
|
98 |
</td>
|
|
|
99 |
|
| 25645 |
tejbeer |
100 |
<td><button class="btn btn-primary refferal-reject-modal" data-requestid="$request.getId()" data-toggle="modal" data-target="#add-rejection-reason" type="button" >Reject</button>
|
| 25587 |
tejbeer |
101 |
</td>
|
| 25496 |
tejbeer |
102 |
#else
|
|
|
103 |
<td>$request.getStatus()</td>
|
|
|
104 |
#end
|
|
|
105 |
</tr>
|
|
|
106 |
#end
|
|
|
107 |
#else
|
|
|
108 |
<tr>
|
|
|
109 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
110 |
</tr>
|
|
|
111 |
#end
|
|
|
112 |
</tbody>
|
|
|
113 |
</table>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
</div>
|
| 25498 |
tejbeer |
117 |
|
|
|
118 |
#if(!$refferals.isEmpty())
|
|
|
119 |
<div class="row" id="refferal-paginated">
|
|
|
120 |
<div class="col-lg-9">
|
|
|
121 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
122 |
</div>
|
|
|
123 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
124 |
<div class="btn-group" style="width:40%">
|
|
|
125 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
126 |
</div>
|
|
|
127 |
<div class="btn-group" style="width:40%">
|
|
|
128 |
#if($end >= $size)
|
|
|
129 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
130 |
#else
|
|
|
131 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
132 |
#end
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
#end
|
| 25496 |
tejbeer |
137 |
</section>
|
|
|
138 |
|
|
|
139 |
<div id="refferal-container" style="background:white;background-color:white;">
|
| 25645 |
tejbeer |
140 |
</div>
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
<div id="add-rejection-reason" class="modal fade" role="dialog">
|
|
|
144 |
<div class="modal-dialog">
|
|
|
145 |
|
|
|
146 |
<!-- Modal content-->
|
|
|
147 |
<div class="modal-content">
|
|
|
148 |
<div class="modal-header">
|
|
|
149 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
150 |
<h4 class="modal-title">Add Reason</h4>
|
|
|
151 |
</div>
|
|
|
152 |
<div class="modal-body">
|
|
|
153 |
<div class = "row">
|
|
|
154 |
<div class="col-lg-12">
|
|
|
155 |
<div>
|
|
|
156 |
|
|
|
157 |
<textarea class='form-control' rows='1' id='rejectionReason'></textarea>
|
|
|
158 |
|
|
|
159 |
</div>
|
|
|
160 |
|
|
|
161 |
</div>
|
|
|
162 |
</div>
|
|
|
163 |
|
|
|
164 |
</div>
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
<div class="modal-footer">
|
|
|
168 |
<button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
|
|
|
169 |
<button type="button" class="btn btn-default refferal-reject">Submit</button>
|
|
|
170 |
|
|
|
171 |
</div>
|
|
|
172 |
</div>
|
|
|
173 |
</div>
|
|
|
174 |
</div>
|
|
|
175 |
|