| 37256 |
amit |
1 |
<div id="hot-deals-table-panel" data-page="$page" data-pages="$pages">
|
| 37212 |
amit |
2 |
<div class="panel-body">
|
|
|
3 |
#if($deals.isEmpty())
|
| 37256 |
amit |
4 |
<p class="text-muted">No hot deals found.</p>
|
| 37212 |
amit |
5 |
#else
|
|
|
6 |
<table class="table table-striped table-hover">
|
|
|
7 |
<thead>
|
|
|
8 |
<tr>
|
| 37270 |
amit |
9 |
<th style="width:32px;"><input type="checkbox" id="hot-deal-select-all" title="Select all on page" /></th>
|
| 37256 |
amit |
10 |
<th>Brand</th>
|
| 37212 |
amit |
11 |
<th>Model</th>
|
|
|
12 |
<th>Status</th>
|
| 37256 |
amit |
13 |
<th style="width:135px;">Start Date</th>
|
|
|
14 |
<th style="width:135px;">End Date</th>
|
|
|
15 |
<th style="width:85px;">Warranty</th>
|
|
|
16 |
<th style="width:115px;">Condition</th>
|
| 37270 |
amit |
17 |
<th style="width:75px;">Fresh</th>
|
| 37256 |
amit |
18 |
<th style="width:75px;">Finance</th>
|
|
|
19 |
<th style="width:75px;">Affordability</th>
|
| 37212 |
amit |
20 |
<th>Added By</th>
|
| 37256 |
amit |
21 |
<th style="width:150px;">Action</th>
|
| 37212 |
amit |
22 |
</tr>
|
|
|
23 |
</thead>
|
|
|
24 |
<tbody>
|
|
|
25 |
#foreach($deal in $deals)
|
| 37270 |
amit |
26 |
<tr data-deal-id="$deal.getId()" data-catalog-id="$deal.getCatalogItemId()">
|
|
|
27 |
<td><input type="checkbox" class="hot-deal-select" /></td>
|
| 37256 |
amit |
28 |
<td>$!deal.getBrandName()</td>
|
| 37212 |
amit |
29 |
<td>$!deal.getCatalogDescription()</td>
|
|
|
30 |
<td>
|
|
|
31 |
#if($deal.getStatus() == "ACTIVE")
|
|
|
32 |
<span class="label label-success">Active</span>
|
|
|
33 |
#elseif($deal.getStatus() == "SCHEDULED")
|
|
|
34 |
<span class="label label-info">Scheduled</span>
|
|
|
35 |
#else
|
|
|
36 |
<span class="label label-default">Expired</span>
|
|
|
37 |
#end
|
|
|
38 |
</td>
|
|
|
39 |
<td><input type="date" class="form-control input-sm hot-deal-row-start" value="$deal.getStartDate()" /></td>
|
|
|
40 |
<td><input type="date" class="form-control input-sm hot-deal-row-end" value="$deal.getEndDate()" /></td>
|
| 37246 |
amit |
41 |
<td><input type="number" class="form-control input-sm hot-deal-row-field hot-deal-row-warranty" min="0" max="12" value="$deal.getWarrantyMonths()" /></td>
|
|
|
42 |
<td>
|
|
|
43 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-condition">
|
|
|
44 |
<option value="NEW" #if("$!deal.getItemCondition()" == "NEW")selected#end>New</option>
|
|
|
45 |
<option value="OPEN_BOX" #if("$!deal.getItemCondition()" == "OPEN_BOX")selected#end>Open Box</option>
|
|
|
46 |
<option value="REFURBISHED" #if("$!deal.getItemCondition()" == "REFURBISHED")selected#end>Refurbished</option>
|
|
|
47 |
</select>
|
|
|
48 |
</td>
|
|
|
49 |
<td>
|
| 37270 |
amit |
50 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-fresh">
|
|
|
51 |
<option value="true" #if($deal.isFresh())selected#end>Yes</option>
|
|
|
52 |
<option value="false" #if(!$deal.isFresh())selected#end>No</option>
|
| 37246 |
amit |
53 |
</select>
|
|
|
54 |
</td>
|
|
|
55 |
<td>
|
|
|
56 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-finance">
|
|
|
57 |
<option value="true" #if($deal.isFinanceMapping())selected#end>Yes</option>
|
|
|
58 |
<option value="false" #if(!$deal.isFinanceMapping())selected#end>No</option>
|
|
|
59 |
</select>
|
|
|
60 |
</td>
|
|
|
61 |
<td>
|
|
|
62 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-affordability">
|
|
|
63 |
<option value="true" #if($deal.isAffordability())selected#end>Yes</option>
|
|
|
64 |
<option value="false" #if(!$deal.isAffordability())selected#end>No</option>
|
|
|
65 |
</select>
|
|
|
66 |
</td>
|
| 37212 |
amit |
67 |
<td>$!deal.getCreatedBy()</td>
|
|
|
68 |
<td>
|
|
|
69 |
<button class="btn btn-success btn-sm save-hot-deal" type="button" style="display:none;">Save</button>
|
|
|
70 |
<button class="btn btn-danger btn-sm remove-hot-deal" type="button">Remove</button>
|
|
|
71 |
</td>
|
|
|
72 |
</tr>
|
|
|
73 |
#end
|
|
|
74 |
</tbody>
|
|
|
75 |
</table>
|
|
|
76 |
#end
|
|
|
77 |
</div>
|
| 37256 |
amit |
78 |
<div class="panel-footer" style="display:flex;align-items:center;justify-content:space-between;">
|
|
|
79 |
<span class="text-muted">$total deal(s) · Page $page of $pages</span>
|
|
|
80 |
<span>
|
|
|
81 |
<button class="btn btn-default btn-sm hot-deal-page-prev" type="button" #if($page <= 1)disabled#end>« Prev</button>
|
|
|
82 |
<button class="btn btn-default btn-sm hot-deal-page-next" type="button" #if($page >= $pages)disabled#end>Next »</button>
|
|
|
83 |
</span>
|
|
|
84 |
</div>
|
| 37212 |
amit |
85 |
</div>
|