| 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>
|
|
|
38 |
<div id="prebooking-listings-table">
|
|
|
39 |
<div class="row">
|
|
|
40 |
<div class="col-lg-12">
|
|
|
41 |
<table class="table table-striped table-advance table-hover">
|
|
|
42 |
<tbody>
|
|
|
43 |
<tr>
|
|
|
44 |
<th>Name</th>
|
| 26694 |
tejbeer |
45 |
<th>Scheme Type</th>
|
| 26674 |
tejbeer |
46 |
<th>Criteria</th>
|
|
|
47 |
<th>Item Criteria</th>
|
|
|
48 |
<th>Target Type</th>
|
|
|
49 |
<th>Amount Type</th>
|
|
|
50 |
<th>Partner Type</th>
|
|
|
51 |
<th>Created On</th>
|
|
|
52 |
<th>Start Timestamp</th>
|
|
|
53 |
<th>End Timestamp</th>
|
|
|
54 |
<th>Status</th>
|
|
|
55 |
<th>Detail</th>
|
|
|
56 |
|
|
|
57 |
</tr>
|
|
|
58 |
#if(!$offers.isEmpty())
|
|
|
59 |
#foreach( $offer in $offers )
|
|
|
60 |
<tr class="offer-listing-details" data="$offer.getId()">
|
|
|
61 |
<td>$offer.getName()</td>
|
| 26694 |
tejbeer |
62 |
<td>$offer.getSchemeType()</td>
|
| 26674 |
tejbeer |
63 |
<td>$offer.getCriteria()</td>
|
|
|
64 |
<td>$offer.getItemCriteria()</td>
|
|
|
65 |
<td>$offer.getTargetType()</td>
|
|
|
66 |
<td>$offer.getAmountType()</td>
|
|
|
67 |
<td>$offer.getPartnerType()</td>
|
|
|
68 |
<td>$offer.getCreatedTimestamp().format($dateTimeFormatter)</td>
|
|
|
69 |
<td>$offer.getStartDateTime().format($dateTimeFormatter)</td>
|
|
|
70 |
<td>$offer.getEndDateTime().format($dateTimeFormatter)</td>
|
| 26694 |
tejbeer |
71 |
#if($offer.getStatus())
|
|
|
72 |
<td><button class="btn btn-primary change-status" data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Inactive</button></td>
|
|
|
73 |
#else
|
|
|
74 |
<td><button class="btn btn-primary change-status" data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Active</button></td>
|
|
|
75 |
|
|
|
76 |
#end
|
| 26674 |
tejbeer |
77 |
<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;">Action</button>
|
|
|
78 |
</td>
|
|
|
79 |
</tr>
|
|
|
80 |
#end
|
|
|
81 |
#else
|
|
|
82 |
<tr>
|
|
|
83 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
84 |
</tr>
|
|
|
85 |
#end
|
|
|
86 |
</tbody>
|
|
|
87 |
</table>
|
|
|
88 |
</div>
|
|
|
89 |
</div>
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
<div class="offer-container">
|
|
|
94 |
<div class="modal text-center" id="marginPartnerDetail">
|
|
|
95 |
<div class="modal-dialog">
|
|
|
96 |
<div class="modal-content" style="width:900px;height:600px;overflow:auto">
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
</div>
|
|
|
101 |
</section>
|