Subversion Repositories SmartDukaan

Rev

Rev 25498 | Rev 25645 | Go to most recent revision | Details | Compare with Previous | 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 )
25587 tejbeer 64
			    				<tr class="refferal-table" data="$request.getId()">
25496 tejbeer 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
25587 tejbeer 78
			    					<td> </td>
25496 tejbeer 79
			    					#end
80
			    					#if($request.getStatus()=="pending")
81
 
25587 tejbeer 82
			    					<td><button class="btn btn-primary reffral-validate"  data-requestid="$request.getId()"  type="button" >Validate</button>
25496 tejbeer 83
								     </td>
84
 
85
								     <td><button class="btn btn-primary refferal-reject" data-requestid="$request.getId()"  type="button" >Reject</button>
86
								     </td>
25587 tejbeer 87
								     #elseif($request.getStatus()=="validate")
88
								     	<td><button class="btn btn-primary reffral-approve"  data-requestid="$request.getId()"  type="button" >Approve</button>
89
								     </td>
90
 
91
								     <td><button class="btn btn-primary refferal-reject" data-requestid="$request.getId()"  type="button" >Reject</button>
92
								     </td>
25496 tejbeer 93
								     #else
94
								     <td>$request.getStatus()</td>
95
								     #end
96
			    				</tr>	
97
			    	   #end
98
		    			#else
99
		    				<tr>
100
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
101
		    				</tr>
102
		    			#end
103
	    			</tbody>
104
	    		</table>
105
	    	</div>
106
	    </div>
107
    </div>
25498 tejbeer 108
 
109
        #if(!$refferals.isEmpty())
110
    	<div class="row" id="refferal-paginated">
111
    		<div class="col-lg-9">
112
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
113
    		</div>
114
    		<div class="col-lg-3" style="text-align:right;">
115
				<div class="btn-group" style="width:40%">
116
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
117
				</div>
118
				<div class="btn-group" style="width:40%">
119
					#if($end >= $size)
120
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
121
					#else
122
						<button class="btn btn-primary next" style="width:100%">Next</button>
123
					#end
124
				</div>
125
	    	</div>
126
	    </div>
127
    #end
25496 tejbeer 128
	</section>
129
 
130
	<div id="refferal-container" style="background:white;background-color:white;">
131
</div>