Subversion Repositories SmartDukaan

Rev

Rev 26694 | Rev 27875 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26674 tejbeer 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
12
		background-color: #e98c8f;
13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.sale-details{
24
		cursor:pointer;
25
	}
26
</style>
27
 
28
<section class="wrapper">
29
	<div class="row">
30
		<div class="col-lg-12">
31
			<h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
32
			<ol class="breadcrumb">
33
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34
				<li><i class="icon_document_alt"></i>LISTINGS</li>						  	
35
			</ol>
36
		</div>
37
	</div>
26719 tejbeer 38
 
39
	<table style="Width:100%">
40
 
41
	<td align="left" style="Width:20%">
42
        </td>
43
 
44
 
45
        <td style="Width:80%">
46
 
47
	      <div id="offer-search">
48
    		<div class="row">
49
    			<div class="col-lg-12">
50
                <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
51
                  <div class="input-group">
52
                    <input type="text" class="form-control" id="offer-search-text" placeholder="Search for offerID..." value="$searchTerm" />
53
                    <span class="input-group-btn">
54
                      <button class="btn btn-primary submit" id="offer-search-button" type="button">Go!</button>
55
                    </span>
56
                  </div>
57
                </div>
58
              </div>
59
         </div>
60
        </div>
61
        </td>
62
       </table>
63
  	<div id="offer-listings-table">
26674 tejbeer 64
		<div class="row">
65
	    	<div class="col-lg-12">
66
	    		<table class="table table-striped table-advance table-hover">
67
	    			<tbody>
68
	    				<tr>
26719 tejbeer 69
	    				    <th>Id</th>
26674 tejbeer 70
	    					<th>Name</th>
26694 tejbeer 71
	    					<th>Scheme Type</th>
26674 tejbeer 72
	    					<th>Criteria</th>
73
	    					<th>Item Criteria</th>
74
	    					<th>Target Type</th>
75
	    					<th>Amount Type</th>
76
	    					<th>Partner Type</th>
77
	    					<th>Created On</th>
78
	    					<th>Start Timestamp</th>
79
	    					<th>End Timestamp</th>
80
	    					<th>Status</th>
81
	    					<th>Detail</th>
82
 
83
	    				</tr>
84
	    				#if(!$offers.isEmpty())
85
			    			#foreach( $offer in $offers )
86
			    				<tr class="offer-listing-details" data="$offer.getId()">
26719 tejbeer 87
			    				    <td>$offer.getId()</td>
26674 tejbeer 88
			    					<td>$offer.getName()</td>
26694 tejbeer 89
			    					<td>$offer.getSchemeType()</td>
26674 tejbeer 90
			    					<td>$offer.getCriteria()</td>
91
			    					<td>$offer.getItemCriteria()</td>
92
			    					<td>$offer.getTargetType()</td>
93
			    					<td>$offer.getAmountType()</td>
94
			    					<td>$offer.getPartnerType()</td>
95
			    					<td>$offer.getCreatedTimestamp().format($dateTimeFormatter)</td>
96
			    					<td>$offer.getStartDateTime().format($dateTimeFormatter)</td>
97
			    					<td>$offer.getEndDateTime().format($dateTimeFormatter)</td>
26694 tejbeer 98
			    					#if($offer.getStatus())
99
			    					<td><button class="btn btn-primary change-status"  data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Inactive</button></td>
100
			    					#else
101
			    						<td><button class="btn btn-primary change-status"  data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Active</button></td>
102
 
103
			    					#end
26719 tejbeer 104
			    					<td><button class="btn btn-primary marginDetail" data-toggle="modal" data-target="#marginPartnerDetail"  data-offerid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">View</button>
26674 tejbeer 105
								     </td>
106
			    				</tr>
107
			    			#end
108
		    			#else
109
		    				<tr>
110
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
111
		    				</tr>
112
		    			#end
113
	    			</tbody>
114
	    		</table>
115
	    	</div>
116
	    </div>
117
    </div>
118
 
119
 
26719 tejbeer 120
 
121
     #if(!$offers.isEmpty())
122
    	<div class="row" id="offer-history-paginated">
123
    		<div class="col-lg-9">
124
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
125
    		</div>
126
    		<div class="col-lg-3" style="text-align:right;">
127
				<div class="btn-group" style="width:40%">
128
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
129
				</div>
130
				<div class="btn-group" style="width:40%">
131
					#if($end >= $size)
132
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
133
					#else
134
						<button class="btn btn-primary next" style="width:100%">Next</button>
135
					#end
136
				</div>
137
	    	</div>
138
	    </div>
139
    #end
140
 
26674 tejbeer 141
   <div class="offer-container">
142
   <div  class="modal  text-center" id="marginPartnerDetail">
143
	<div class="modal-dialog">
144
    <div class="modal-content" style="width:900px;height:600px;overflow:auto">
145
    </div>
146
    </div>
147
    </div>
148
    </div>
26719 tejbeer 149
 </section>
150
 
151
 <div id="offer-details-container" style="background:white;background-color:white;">
152
</div>
153
 
154