Subversion Repositories SmartDukaan

Rev

Rev 26318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26318 Rev 29891
Line 31... Line 31...
31
 
31
 
32
 $(".refferal-reject").click(function(){
32
 $(".refferal-reject").click(function(){
33
        $("#add-rejection-reason").modal({backdrop: false});
33
        $("#add-rejection-reason").modal({backdrop: false});
34
        
34
        
35
    });
35
    });
-
 
36
    
-
 
37
 
36
 
38
 
37
</script>
39
</script>
38
 
40
 
39
 
41
 
40
<section class="wrapper">
42
<section class="wrapper">
Line 49... Line 51...
49
	</div>
51
	</div>
50
	<input id="url" name="url" type="hidden" value="$url"/>
52
	<input id="url" name="url" type="hidden" value="$url"/>
51
	<div id="refferal-table">
53
	<div id="refferal-table">
52
		<div class="row">
54
		<div class="row">
53
	    	<div class="col-lg-12">
55
	    	<div class="col-lg-12">
54
	    		<table class="table table-striped table-advance table-hover">
56
	    		<table class="table table-border table-condensed table-bordered" id="referalTable" style="width:100%">
-
 
57
	    		
55
	    			<tbody>
58
	    			 <thead>
56
	    				<tr>
59
	    				<tr>
57
	    					<th>Referee Id</th>
60
	    					<th>Referee Id</th>
58
	    					<th>Referee Name</th>
61
	    					<th>Referee Name</th>
59
	    					<th>Referee Email</th>
62
	    					<th>Referee Email</th>
-
 
63
	    					<th>Business Name</th>
60
	    					<th>Referee Mobile</th>
64
	    					<th>Referee Mobile</th>
61
	    					<th>Referal Name</th>
65
	    					<th>Referal Name</th>
62
	    					<th>Mobile</th>
66
	    					<th>Mobile</th>
63
	    					<th>city</th>
67
	    					<th>city</th>
64
	    					<th>state</th>
68
	    					<th>state</th>
65
	    					<th>Created On</th>
69
	    					<th>Created On</th>
66
	    					<th>Updated On</th>
70
	    					<th>Updated On</th>
67
	    					<th>Approved Timestamp</th>
71
	    					<th>Approved Timestamp</th>
68
	    					<th colspan = 2>Status</th>
72
	    					<th>Action</th>
-
 
73
	    					<th></th>
69
	    					
74
	    					
70
	    				</tr>
75
	    				</tr>
-
 
76
	    				 </thead>
-
 
77
	    				 
-
 
78
	    				 	<tbody>
71
	    					#if(!$refferals.isEmpty())
79
	    					#if(!$refferals.isEmpty())
72
			    			#foreach( $request in $refferals )
80
			    			#foreach( $request in $refferals )
73
			    				<tr class="refferal-table" data="$request.getId()">
81
			    				<tr class="refferal-table" data="$request.getId()">
74
			    					<td>$request.getId()</td>
82
			    					<td>$request.getId()</td>
75
			    					<td>$request.getRefereeName()</td>
83
			    					<td>$request.getRefereeName()</td>
76
			    					<td>$request.getRefereeEmail()</td>
84
			    					<td>$request.getRefereeEmail()</td>
-
 
85
			    					
-
 
86
			    					#if($customerRetailerMap.get($request.getRefereeEmail()).getBusinessName())
-
 
87
			    					<td>$customerRetailerMap.get($request.getRefereeEmail()).getBusinessName()</td>
-
 
88
			    					#else
-
 
89
			    					<td></td>
-
 
90
			    				     #end
77
			    					<td>$request.getRefereeMobile()</td>
91
			    					<td>$request.getRefereeMobile()</td>
78
			    					<td>$request.getFirstName() $request.getLastName()</td>
92
			    					<td>$request.getFirstName() $request.getLastName()</td>
79
			    					<td>$request.getMobile()</td>
93
			    					<td>$request.getMobile()</td>
80
			    					<td>$request.getCity()</td>
94
			    					<td>$request.getCity()</td>
81
			    					<td>$request.getState()</td>
95
			    					<td>$request.getState()</td>
Line 99... Line 113...
99
								
113
								
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>
114
								     <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>
101
								     </td>
115
								     </td>
102
								     #else
116
								     #else
103
								     <td>$request.getStatus()</td>
117
								     <td>$request.getStatus()</td>
-
 
118
								       <td></td>
104
								     #end
119
								     #end
105
			    				</tr>	
120
			    				</tr>	
106
			    	   #end
121
			    	   #end
107
		    			#else
122
		    			#else
108
		    				<tr>
123
		    				<tr>
Line 113... Line 128...
113
	    		</table>
128
	    		</table>
114
	    	</div>
129
	    	</div>
115
	    </div>
130
	    </div>
116
    </div>
131
    </div>
117
    
132
    
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
133
 
137
	</section>
134
	</section>
138
	
135
	
139
	<div id="refferal-container" style="background:white;background-color:white;">
136
	<div id="refferal-container" style="background:white;background-color:white;">
140
</div>
137
</div>
141
 
138
 
142
 
139
 
-
 
140
 
-
 
141
 
-
 
142
 
143
 <div id="add-rejection-reason" class="modal" role="dialog">
143
 <div id="add-rejection-reason" class="modal" role="dialog">
144
	  <div class="modal-dialog">
144
	  <div class="modal-dialog">
145
	
145
	
146
	    <!-- Modal content-->
146
	    <!-- Modal content-->
147
	    <div class="modal-content">
147
	    <div class="modal-content">
Line 170... Line 170...
170
		   
170
		   
171
	   </div>
171
	   </div>
172
    </div>
172
    </div>
173
   </div>
173
   </div>
174
 </div>
174
 </div>
-
 
175
 
-
 
176
 
-
 
177
 <script>
-
 
178
 
-
 
179
 $(document).ready(function() {
-
 
180
 
-
 
181
	  var table = $('#referalTable').DataTable( {
-
 
182
	   
-
 
183
	    });
-
 
184
 });
-
 
185
</script>
175
 
186
 
176
187