| 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>
|
| 37643 |
amit |
12 |
<th>OEM Model</th>
|
| 37256 |
amit |
13 |
<th style="width:85px;">Warranty</th>
|
|
|
14 |
<th style="width:115px;">Condition</th>
|
| 37270 |
amit |
15 |
<th style="width:75px;">Fresh</th>
|
| 37256 |
amit |
16 |
<th style="width:75px;">Finance</th>
|
|
|
17 |
<th style="width:75px;">Affordability</th>
|
| 37212 |
amit |
18 |
<th>Added By</th>
|
| 37256 |
amit |
19 |
<th style="width:150px;">Action</th>
|
| 37212 |
amit |
20 |
</tr>
|
|
|
21 |
</thead>
|
|
|
22 |
<tbody>
|
|
|
23 |
#foreach($deal in $deals)
|
| 37270 |
amit |
24 |
<tr data-deal-id="$deal.getId()" data-catalog-id="$deal.getCatalogItemId()">
|
|
|
25 |
<td><input type="checkbox" class="hot-deal-select" /></td>
|
| 37643 |
amit |
26 |
<td>$!deal.getOemBrand()</td>
|
| 37212 |
amit |
27 |
<td>$!deal.getCatalogDescription()</td>
|
|
|
28 |
<td>
|
| 37643 |
amit |
29 |
#if($deal.getOemCatalogId())
|
|
|
30 |
$!deal.getOemCatalogDescription()
|
| 37212 |
amit |
31 |
#else
|
| 37643 |
amit |
32 |
<span class="text-muted">Not mapped</span>
|
| 37212 |
amit |
33 |
#end
|
|
|
34 |
</td>
|
| 37246 |
amit |
35 |
<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>
|
|
|
36 |
<td>
|
|
|
37 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-condition">
|
|
|
38 |
<option value="NEW" #if("$!deal.getItemCondition()" == "NEW")selected#end>New</option>
|
|
|
39 |
<option value="OPEN_BOX" #if("$!deal.getItemCondition()" == "OPEN_BOX")selected#end>Open Box</option>
|
|
|
40 |
<option value="REFURBISHED" #if("$!deal.getItemCondition()" == "REFURBISHED")selected#end>Refurbished</option>
|
|
|
41 |
</select>
|
|
|
42 |
</td>
|
|
|
43 |
<td>
|
| 37270 |
amit |
44 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-fresh">
|
|
|
45 |
<option value="true" #if($deal.isFresh())selected#end>Yes</option>
|
|
|
46 |
<option value="false" #if(!$deal.isFresh())selected#end>No</option>
|
| 37246 |
amit |
47 |
</select>
|
|
|
48 |
</td>
|
|
|
49 |
<td>
|
|
|
50 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-finance">
|
|
|
51 |
<option value="true" #if($deal.isFinanceMapping())selected#end>Yes</option>
|
|
|
52 |
<option value="false" #if(!$deal.isFinanceMapping())selected#end>No</option>
|
|
|
53 |
</select>
|
|
|
54 |
</td>
|
|
|
55 |
<td>
|
|
|
56 |
<select class="form-control input-sm hot-deal-row-field hot-deal-row-affordability">
|
|
|
57 |
<option value="true" #if($deal.isAffordability())selected#end>Yes</option>
|
|
|
58 |
<option value="false" #if(!$deal.isAffordability())selected#end>No</option>
|
|
|
59 |
</select>
|
|
|
60 |
</td>
|
| 37212 |
amit |
61 |
<td>$!deal.getCreatedBy()</td>
|
|
|
62 |
<td>
|
|
|
63 |
<button class="btn btn-success btn-sm save-hot-deal" type="button" style="display:none;">Save</button>
|
|
|
64 |
<button class="btn btn-danger btn-sm remove-hot-deal" type="button">Remove</button>
|
|
|
65 |
</td>
|
|
|
66 |
</tr>
|
|
|
67 |
#end
|
|
|
68 |
</tbody>
|
|
|
69 |
</table>
|
|
|
70 |
#end
|
|
|
71 |
</div>
|
| 37256 |
amit |
72 |
<div class="panel-footer" style="display:flex;align-items:center;justify-content:space-between;">
|
| 37643 |
amit |
73 |
<span class="text-muted">$total model(s) · Page $page of $pages</span>
|
| 37256 |
amit |
74 |
<span>
|
|
|
75 |
<button class="btn btn-default btn-sm hot-deal-page-prev" type="button" #if($page <= 1)disabled#end>« Prev</button>
|
|
|
76 |
<button class="btn btn-default btn-sm hot-deal-page-next" type="button" #if($page >= $pages)disabled#end>Next »</button>
|
|
|
77 |
</span>
|
|
|
78 |
</div>
|
| 37212 |
amit |
79 |
</div>
|