| 34387 |
vikas.jang |
1 |
<style>
|
|
|
2 |
.select2-container .select2-selection--single {
|
|
|
3 |
box-sizing: border-box;
|
|
|
4 |
cursor: pointer;
|
|
|
5 |
display: block;
|
|
|
6 |
height: 35px;
|
|
|
7 |
padding: 3px;
|
|
|
8 |
user-select: none;
|
|
|
9 |
-webkit-user-select: none;
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
.modal-body {
|
|
|
13 |
overflow-y: auto;
|
|
|
14 |
max-height: calc(100vh - 200px);
|
|
|
15 |
min-height: 50vh;
|
|
|
16 |
}
|
|
|
17 |
</style>
|
|
|
18 |
<section class="wrapper">
|
|
|
19 |
<div class="row">
|
|
|
20 |
<div class="col-lg-12">
|
|
|
21 |
<h3 class="page-header"><i class="icon_document_alt"></i>Liquidations</h3>
|
|
|
22 |
<ol class="breadcrumb">
|
|
|
23 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Dashboard</a></li>
|
|
|
24 |
<li><i class="icon_document_alt"></i>Liquidations</li>
|
|
|
25 |
<li class="pull-right">
|
|
|
26 |
<button class="btn btn-primary map-catalog" type="button" data-toggle="modal" data-target="#manageLiquidationModal">
|
|
|
27 |
<i class="icon_document_alt"></i> Create New</button>
|
|
|
28 |
</li>
|
|
|
29 |
</ol>
|
|
|
30 |
</div>
|
|
|
31 |
</div>
|
|
|
32 |
<div class="table-responsive">
|
|
|
33 |
<table class="table table-bordered" id="liquidation-table">
|
|
|
34 |
<thead class="table-light">
|
|
|
35 |
<tr>
|
|
|
36 |
<th>Warehouse</th>
|
|
|
37 |
<th>Catalog</th>
|
|
|
38 |
<th>Start Price</th>
|
|
|
39 |
<th>Start - End</th>
|
|
|
40 |
<th>Status</th>
|
|
|
41 |
<th>Actions</th>
|
|
|
42 |
</tr>
|
|
|
43 |
</thead>
|
|
|
44 |
<tbody>
|
|
|
45 |
#foreach($item in $liquidations)
|
|
|
46 |
<tr>
|
|
|
47 |
<td>$warehouses.get($item.warehouseId)</td>
|
|
|
48 |
<td>$item.catalogId</td>
|
|
|
49 |
<td>$item.price</td>
|
|
|
50 |
<td>$item.startDate - $item.endDate</td>
|
|
|
51 |
<td>$item.status</td>
|
|
|
52 |
<td>
|
|
|
53 |
<a role="button" onclick="editLiquidation($item.id)" class="btn btn-sm btn-warning">Edit</a>
|
|
|
54 |
<a role="button" onclick="deleteLiquidation($item.id)" class="btn btn-sm btn-danger">Delete</a>
|
|
|
55 |
</td>
|
|
|
56 |
</tr>
|
|
|
57 |
#end
|
|
|
58 |
</tbody>
|
|
|
59 |
</table>
|
|
|
60 |
</div>
|
|
|
61 |
</section>
|
|
|
62 |
|
|
|
63 |
<div id="manageLiquidationModal" class="modal" role="dialog">
|
|
|
64 |
<div class="modal-dialog">
|
|
|
65 |
<div class="modal-content">
|
|
|
66 |
<div class="modal-header">
|
|
|
67 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
68 |
<h4 class="modal-title">Manage Liquidations</h4>
|
|
|
69 |
</div>
|
|
|
70 |
<div class="modal-body" id="manageLiquidationModalBody">
|
|
|
71 |
<form id="biddingForm" action="$formActionUrl" method="post" class="row g-3 mb-4">
|
|
|
72 |
<input type="hidden" name="id" id="liquidationId" value="$!product.id">
|
|
|
73 |
<div class="col-md-4">
|
|
|
74 |
<div class="form-group">
|
|
|
75 |
<label for="warehouseId" class="form-label">Warehouse</label>
|
|
|
76 |
<select name="warehouseId" id="warehouseId" class="form-select" required>
|
|
|
77 |
<option value="">Select</option>
|
|
|
78 |
#foreach($entry in $warehouses.entrySet())
|
|
|
79 |
<option value="$entry.key" #if($entry.key == $!product.warehouseId)selected#end>$entry.value</option>
|
|
|
80 |
#end
|
|
|
81 |
</select>
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
|
|
84 |
|
|
|
85 |
<div class="col-md-4">
|
|
|
86 |
<div class="form-group">
|
|
|
87 |
<label class="form-label" for="catalogId">Catalog</label>
|
|
|
88 |
<select name="catalogId" id="catalogId" class="form-select" required></select>
|
|
|
89 |
</div>
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<div class="col-md-4">
|
|
|
93 |
<div class="form-group">
|
|
|
94 |
<label for="price" class="form-label">Bidding Price</label>
|
|
|
95 |
<input type="number" name="price" id="price" class="form-control" value="$!product.biddingStartPrice" required>
|
|
|
96 |
</div>
|
|
|
97 |
</div>
|
|
|
98 |
|
|
|
99 |
<div class="col-md-4">
|
|
|
100 |
<div class="form-group">
|
|
|
101 |
<label for="startDate" class="form-label">Start Date</label>
|
|
|
102 |
<input type="date" name="startDate" id="startDate" class="form-control" required>
|
|
|
103 |
</div>
|
|
|
104 |
</div>
|
|
|
105 |
|
|
|
106 |
<div class="col-md-4">
|
|
|
107 |
<div class="form-group">
|
|
|
108 |
<label for="endDate" class="form-label">End Date</label>
|
|
|
109 |
<input type="date" name="endDate" id="endDate" class="form-control" required>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
|
|
|
113 |
<div class="col-md-3">
|
|
|
114 |
<div class="form-group">
|
|
|
115 |
<label for="status" class="form-label">Status</label>
|
|
|
116 |
<select name="status" id="status" class="form-select">
|
|
|
117 |
<option value="active" #if($product.status == "active")selected#end>Active</option>
|
|
|
118 |
<option value="inactive" #if($product.status == "inactive")selected#end>Inactive</option>
|
|
|
119 |
<option value="closed" #if($product.status == "closed")selected#end>Closed</option>
|
|
|
120 |
</select>
|
|
|
121 |
</div>
|
|
|
122 |
</div>
|
|
|
123 |
</form>
|
|
|
124 |
</div>
|
|
|
125 |
<div class="modal-footer">
|
|
|
126 |
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
|
|
|
127 |
<button type="button" class="btn btn-primary save-liquidation">Save</button>
|
|
|
128 |
</div>
|
|
|
129 |
</div>
|
|
|
130 |
</div>
|
|
|
131 |
</div>
|