| 37212 |
amit |
1 |
<div class="panel panel-default" id="hot-deals-table-panel"
|
|
|
2 |
data-active-count="$activeCount" data-max-deals="$maxDeals">
|
|
|
3 |
<div class="panel-heading">Hot Deal Models</div>
|
|
|
4 |
<div class="panel-body">
|
|
|
5 |
#if($deals.isEmpty())
|
|
|
6 |
<p class="text-muted">No hot deals for this brand yet. Add the first one above.</p>
|
|
|
7 |
#else
|
|
|
8 |
<table class="table table-striped table-hover">
|
|
|
9 |
<thead>
|
|
|
10 |
<tr>
|
|
|
11 |
<th>Model</th>
|
|
|
12 |
<th>Status</th>
|
|
|
13 |
<th style="width:170px;">Start Date</th>
|
|
|
14 |
<th style="width:170px;">End Date</th>
|
|
|
15 |
<th>Added By</th>
|
|
|
16 |
<th style="width:160px;">Action</th>
|
|
|
17 |
</tr>
|
|
|
18 |
</thead>
|
|
|
19 |
<tbody>
|
|
|
20 |
#foreach($deal in $deals)
|
|
|
21 |
<tr data-deal-id="$deal.getId()">
|
|
|
22 |
<td>$!deal.getCatalogDescription()</td>
|
|
|
23 |
<td>
|
|
|
24 |
#if($deal.getStatus() == "ACTIVE")
|
|
|
25 |
<span class="label label-success">Active</span>
|
|
|
26 |
#elseif($deal.getStatus() == "SCHEDULED")
|
|
|
27 |
<span class="label label-info">Scheduled</span>
|
|
|
28 |
#else
|
|
|
29 |
<span class="label label-default">Expired</span>
|
|
|
30 |
#end
|
|
|
31 |
</td>
|
|
|
32 |
<td><input type="date" class="form-control input-sm hot-deal-row-start" value="$deal.getStartDate()" /></td>
|
|
|
33 |
<td><input type="date" class="form-control input-sm hot-deal-row-end" value="$deal.getEndDate()" /></td>
|
|
|
34 |
<td>$!deal.getCreatedBy()</td>
|
|
|
35 |
<td>
|
|
|
36 |
<button class="btn btn-success btn-sm save-hot-deal" type="button" style="display:none;">Save</button>
|
|
|
37 |
<button class="btn btn-danger btn-sm remove-hot-deal" type="button">Remove</button>
|
|
|
38 |
</td>
|
|
|
39 |
</tr>
|
|
|
40 |
#end
|
|
|
41 |
</tbody>
|
|
|
42 |
</table>
|
|
|
43 |
#end
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|