| 37212 |
amit |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="fa fa-fire"></i> Hot Deals</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="fa fa-fire"></i>Hot Deals</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
|
|
|
12 |
<div class="row">
|
|
|
13 |
<div class="col-lg-12">
|
|
|
14 |
<div class="panel panel-default">
|
| 37256 |
amit |
15 |
<div class="panel-heading">Add Model
|
|
|
16 |
<span id="hot-deal-slots" class="label label-default" style="font-size:12px;margin-left:10px;"></span>
|
| 37212 |
amit |
17 |
</div>
|
| 37256 |
amit |
18 |
<div class="panel-body" style="display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;">
|
|
|
19 |
<div class="form-group" style="margin:0;">
|
|
|
20 |
<label>Brand</label>
|
|
|
21 |
<select id="hot-deal-brand" class="form-control" style="width:180px;">
|
|
|
22 |
<option value="">-- Select brand --</option>
|
|
|
23 |
#foreach($brand in $brands)
|
|
|
24 |
<option value="$brand.getId()">$brand.getName()</option>
|
|
|
25 |
#end
|
|
|
26 |
</select>
|
|
|
27 |
</div>
|
|
|
28 |
<div class="form-group" style="flex:1;min-width:240px;margin:0;">
|
| 37212 |
amit |
29 |
<label>Model</label>
|
| 37256 |
amit |
30 |
<input type="text" id="hot-deal-model-search" class="form-control" disabled
|
|
|
31 |
autocomplete="off" placeholder="Select a brand first..." />
|
| 37212 |
amit |
32 |
</div>
|
|
|
33 |
<div class="form-group" style="margin:0;">
|
|
|
34 |
<label>Start Date</label>
|
|
|
35 |
<input type="date" id="hot-deal-start-date" class="form-control" />
|
|
|
36 |
</div>
|
|
|
37 |
<div class="form-group" style="margin:0;">
|
|
|
38 |
<label>End Date</label>
|
|
|
39 |
<input type="date" id="hot-deal-end-date" class="form-control" />
|
|
|
40 |
</div>
|
| 37256 |
amit |
41 |
<div class="form-group" style="margin:0;width:100px;">
|
|
|
42 |
<label>Warranty (mo)</label>
|
| 37246 |
amit |
43 |
<input type="number" id="hot-deal-warranty" class="form-control" min="0" max="12" placeholder="0-12" />
|
|
|
44 |
</div>
|
|
|
45 |
<div class="form-group" style="margin:0;">
|
|
|
46 |
<label>Condition</label>
|
|
|
47 |
<select id="hot-deal-condition" class="form-control">
|
|
|
48 |
<option value="">-- Select --</option>
|
|
|
49 |
<option value="NEW">New</option>
|
|
|
50 |
<option value="OPEN_BOX">Open Box</option>
|
|
|
51 |
<option value="REFURBISHED">Refurbished</option>
|
|
|
52 |
</select>
|
|
|
53 |
</div>
|
|
|
54 |
<div class="form-group" style="margin:0;">
|
| 37270 |
amit |
55 |
<label>Fresh</label>
|
|
|
56 |
<select id="hot-deal-fresh" class="form-control">
|
| 37246 |
amit |
57 |
<option value="">--</option>
|
|
|
58 |
<option value="true">Yes</option>
|
|
|
59 |
<option value="false">No</option>
|
|
|
60 |
</select>
|
|
|
61 |
</div>
|
|
|
62 |
<div class="form-group" style="margin:0;">
|
|
|
63 |
<label>Finance Mapping</label>
|
|
|
64 |
<select id="hot-deal-finance" class="form-control">
|
|
|
65 |
<option value="">--</option>
|
|
|
66 |
<option value="true">Yes</option>
|
|
|
67 |
<option value="false">No</option>
|
|
|
68 |
</select>
|
|
|
69 |
</div>
|
|
|
70 |
<div class="form-group" style="margin:0;">
|
|
|
71 |
<label>Affordability</label>
|
|
|
72 |
<select id="hot-deal-affordability" class="form-control">
|
|
|
73 |
<option value="">--</option>
|
|
|
74 |
<option value="true">Yes</option>
|
|
|
75 |
<option value="false">No</option>
|
|
|
76 |
</select>
|
|
|
77 |
</div>
|
| 37212 |
amit |
78 |
<button class="btn btn-primary add-hot-deal" type="button">Add Hot Deal</button>
|
|
|
79 |
</div>
|
|
|
80 |
<div class="panel-footer text-danger" id="hot-deal-cap-notice" style="display:none;">
|
|
|
81 |
This brand already has the maximum of $maxDeals active hot deals. Remove one or let one expire to add more.
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
|
|
84 |
</div>
|
|
|
85 |
</div>
|
|
|
86 |
|
|
|
87 |
<div class="row">
|
| 37256 |
amit |
88 |
<div class="col-lg-12">
|
|
|
89 |
<div class="panel panel-default">
|
|
|
90 |
<div class="panel-heading" style="display:flex;align-items:center;justify-content:space-between;">
|
|
|
91 |
<span>All Hot Deal Models</span>
|
| 37270 |
amit |
92 |
<span style="display:flex;align-items:center;gap:10px;">
|
|
|
93 |
<input type="text" id="hot-deal-table-search" class="form-control input-sm"
|
|
|
94 |
style="width:260px;" placeholder="Search model or brand..." />
|
|
|
95 |
<button class="btn btn-warning btn-sm push-solr" type="button" disabled>
|
|
|
96 |
<i class="fa fa-cloud-upload"></i> Push to Solr
|
|
|
97 |
</button>
|
|
|
98 |
</span>
|
| 37256 |
amit |
99 |
</div>
|
|
|
100 |
<div id="hot-deals-table-container"></div>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
| 37212 |
amit |
103 |
</div>
|
|
|
104 |
</section>
|