Subversion Repositories SmartDukaan

Rev

Rev 34387 | Rev 34445 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34387 Rev 34405
Line 10... Line 10...
10
    }
10
    }
11
 
11
 
12
    .modal-body {
12
    .modal-body {
13
        overflow-y: auto;
13
        overflow-y: auto;
14
        max-height: calc(100vh - 200px);
14
        max-height: calc(100vh - 200px);
15
        min-height: 50vh;
15
        min-height: 41vh;
16
    }
16
    }
17
</style>
17
</style>
18
<section class="wrapper">
18
<section class="wrapper">
19
    <div class="row">
19
    <div class="row">
20
        <div class="col-lg-12">
20
        <div class="col-lg-12">
Line 31... Line 31...
31
    </div>
31
    </div>
32
    <div class="table-responsive">
32
    <div class="table-responsive">
33
        <table class="table table-bordered" id="liquidation-table">
33
        <table class="table table-bordered" id="liquidation-table">
34
            <thead class="table-light">
34
            <thead class="table-light">
35
            <tr>
35
            <tr>
36
                <th>Warehouse</th>
-
 
37
                <th>Catalog</th>
36
                <th>Catalog</th>
38
                <th>Start Price</th>
37
                <th>Start Price</th>
39
                <th>Start - End</th>
38
                <th>Start - End</th>
40
                <th>Status</th>
39
                <th>Status</th>
41
                <th>Actions</th>
40
                <th>Actions</th>
42
            </tr>
41
            </tr>
43
            </thead>
42
            </thead>
44
            <tbody>
43
            <tbody>
45
                #foreach($item in $liquidations)
44
                #foreach($item in $liquidations)
46
                    <tr>
45
                    <tr>
47
                        <td>$warehouses.get($item.warehouseId)</td>
-
 
48
                        <td>$item.catalogId</td>
46
                        <td>$item.catalogId</td>
49
                        <td>$item.price</td>
47
                        <td>$item.price</td>
50
                        <td>$item.startDate - $item.endDate</td>
48
                        <td>$item.startDate - $item.endDate</td>
51
                        <td>$item.status</td>
49
                        <td>$item.status</td>
52
                        <td>
50
                        <td>
53
                            <a role="button" onclick="editLiquidation($item.id)" class="btn btn-sm btn-warning">Edit</a>
51
                            <a role="button" onclick="editLiquidation($item.id)" class="btn btn-sm btn-info"><i class="fa fa-eye"></i> View</a>
54
                            <a role="button" onclick="deleteLiquidation($item.id)" class="btn btn-sm btn-danger">Delete</a>
52
                            #*<a role="button" onclick="deleteLiquidation($item.id)" class="btn btn-sm btn-danger">Delete</a>*#
55
                        </td>
53
                        </td>
56
                    </tr>
54
                    </tr>
57
                #end
55
                #end
58
            </tbody>
56
            </tbody>
59
        </table>
57
        </table>
Line 67... Line 65...
67
                <button type="button" class="close" data-dismiss="modal">&times;</button>
65
                <button type="button" class="close" data-dismiss="modal">&times;</button>
68
                <h4 class="modal-title">Manage Liquidations</h4>
66
                <h4 class="modal-title">Manage Liquidations</h4>
69
            </div>
67
            </div>
70
            <div class="modal-body" id="manageLiquidationModalBody">
68
            <div class="modal-body" id="manageLiquidationModalBody">
71
                <form id="biddingForm" action="$formActionUrl" method="post" class="row g-3 mb-4">
69
                <form id="biddingForm" action="$formActionUrl" method="post" class="row g-3 mb-4">
72
                    <input type="hidden" name="id" id="liquidationId" value="$!product.id">
70
                    <input type="hidden" name="id" id="id">
-
 
71
 
73
                    <div class="col-md-4">
72
                    <div class="col-md-7">
74
                        <div class="form-group">
73
                        <div class="form-group">
75
                            <label for="warehouseId" class="form-label">Warehouse</label>
74
                            <label class="form-label" for="catalogId">Catalog</label>
-
 
75
                            <span class="pull-right"><input name="restricted" value="true" id="restricted" type="checkbox"> Restricted?</span>
76
                            <select name="warehouseId" id="warehouseId" class="form-select" required>
76
                            <select name="catalogId" id="catalogId" class="form-select" required>
77
                                <option value="">Select</option>
77
                                <option value="">Select</option>
78
                                #foreach($entry in $warehouses.entrySet())
78
                                #foreach($entry in $catalogs)
79
                                    <option value="$entry.key" #if($entry.key == $!product.warehouseId)selected#end>$entry.value</option>
79
                                    <option value="$entry.catalogId">$entry.brand $entry.modelNumber ($entry.shaholicNetAvailability)</option>
80
                                #end
80
                                #end
81
                            </select>
81
                            </select>
82
                        </div>
82
                        </div>
83
                    </div>
83
                    </div>
84
 
84
 
85
                    <div class="col-md-4">
85
                    <div class="col-md-5">
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">
86
                        <div class="form-group">
94
                            <label for="price" class="form-label">Bidding Price</label>
87
                            <label for="price" class="form-label">Bidding Price</label>
95
                            <input type="number" name="price" id="price" class="form-control" value="$!product.biddingStartPrice" required>
88
                            <input type="number" name="price" id="price" class="form-control" required>
96
                        </div>
89
                        </div>
97
                    </div>
90
                    </div>
98
 
91
 
99
                    <div class="col-md-4">
92
                    <div class="col-md-4">
100
                        <div class="form-group">
93
                        <div class="form-group">
Line 108... Line 101...
108
                            <label for="endDate" class="form-label">End Date</label>
101
                            <label for="endDate" class="form-label">End Date</label>
109
                            <input type="date" name="endDate" id="endDate" class="form-control" required>
102
                            <input type="date" name="endDate" id="endDate" class="form-control" required>
110
                        </div>
103
                        </div>
111
                    </div>
104
                    </div>
112
 
105
 
113
                    <div class="col-md-3">
106
                    <div class="col-md-4">
114
                        <div class="form-group">
107
                        <div class="form-group">
115
                            <label for="status" class="form-label">Status</label>
108
                            <label for="status" class="form-label">Status</label>
116
                            <select name="status" id="status" class="form-select">
109
                            <select name="status" id="status" class="form-select">
117
                                <option value="active" #if($product.status == "active")selected#end>Active</option>
110
                                <option value="active">Active</option>
118
                                <option value="inactive" #if($product.status == "inactive")selected#end>Inactive</option>
111
                                <option value="inactive">Inactive</option>
119
                                <option value="closed" #if($product.status == "closed")selected#end>Closed</option>
112
                                <option value="closed">Closed</option>
120
                            </select>
113
                            </select>
121
                        </div>
114
                        </div>
122
                    </div>
115
                    </div>
123
                </form>
116
                </form>
124
            </div>
117
            </div>