Subversion Repositories SmartDukaan

Rev

Rev 25498 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
30
 
31
<section class="wrapper">
32
	<div class="row">
33
		<div class="col-lg-12">
34
			<h3 class="page-header"><i class="icon_document_alt"></i>REFFERAL</h3>
35
			<ol class="breadcrumb">
36
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
37
				<li><i class="icon_document_alt"></i>Refferals</li>						  	
38
			</ol>
39
		</div>
40
	</div>
41
	<input id="url" name="url" type="hidden" value="$url"/>
42
	<div id="refferal-table">
43
		<div class="row">
44
	    	<div class="col-lg-12">
45
	    		<table class="table table-striped table-advance table-hover">
46
	    			<tbody>
47
	    				<tr>
48
	    					<th>Referee Id</th>
49
	    					<th>Referee Name</th>
50
	    					<th>Referee Email</th>
51
	    					<th>Referee Mobile</th>
52
	    					<th>Referal Name</th>
53
	    					<th>Mobile</th>
54
	    					<th>city</th>
55
	    					<th>state</th>
56
	    					<th>Created On</th>
57
	    					<th>Updated On</th>
58
	    					<th>Approved Timestamp</th>
59
	    					<th colspan = 2>Status</th>
60
 
61
	    				</tr>
62
	    					#if(!$refferals.isEmpty())
63
			    			#foreach( $request in $refferals )
64
			    				<tr class="refferal" data="$request.getId()">
65
			    					<td>$request.getId()</td>
66
			    					<td>$request.getRefereeName()</td>
67
			    					<td>$request.getRefereeEmail()</td>
68
			    					<td>$request.getRefereeMobile()</td>
69
			    					<td>$request.getFirstName() $request.getLastName()</td>
70
			    					<td>$request.getMobile()</td>
71
			    					<td>$request.getCity()</td>
72
			    					<td>$request.getState()</td>
73
			    					<td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
74
			    					<td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
75
			    					#if($request.getApprovedTimestamp())
76
			    					<td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
77
			    					#else
78
			    					<td> null </td>
79
			    					#end
80
			    					#if($request.getStatus()=="pending")
81
 
82
			    					<td><button class="btn btn-primary reffral-approve"  data-requestid="$request.getId()"  type="button" >Approve</button>
83
								     </td>
84
 
85
								     <td><button class="btn btn-primary refferal-reject" data-requestid="$request.getId()"  type="button" >Reject</button>
86
								     </td>
87
								     #else
88
								     <td>$request.getStatus()</td>
89
								     #end
90
			    				</tr>	
91
			    	   #end
92
		    			#else
93
		    				<tr>
94
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
95
		    				</tr>
96
		    			#end
97
	    			</tbody>
98
	    		</table>
99
	    	</div>
100
	    </div>
101
    </div>
102
	</section>
103
 
104
	<div id="refferal-container" style="background:white;background-color:white;">
105
</div>