| 37037 |
amit |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i>Order Report</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="icon_document_alt"></i>Order Report</li>
|
|
|
8 |
</ol>
|
|
|
9 |
</div>
|
|
|
10 |
</div>
|
|
|
11 |
|
|
|
12 |
<div class="row col-lg-12" style="float: right;">
|
|
|
13 |
#if($isAdmin)
|
|
|
14 |
<input placeholder="Enter Partner Name (blank = all partners)" type="text"
|
|
|
15 |
class="typeahead form-control" id="typeaheadpartner-order-report" autocomplete="off"
|
|
|
16 |
style="display:inline-block; width:260px; margin-right:10px;">
|
|
|
17 |
#end
|
|
|
18 |
From <input type="date" id="startDate-order-report" value="$startDate">
|
|
|
19 |
To <input type="date" id="endDate-order-report" value="$endDate">
|
|
|
20 |
<button type="submit" class="btn btn-primary download-order-report">Download</button>
|
|
|
21 |
<p class="help-block" style="margin-top:8px;">Select a period of at most one month.#if($isAdmin) Leave the partner box blank to include all partners.#end</p>
|
|
|
22 |
</div>
|
|
|
23 |
</section>
|
|
|
24 |
|
|
|
25 |
#if($isAdmin)
|
|
|
26 |
<script type="text/javascript">
|
|
|
27 |
// Fresh page => no partner selected => all partners.
|
|
|
28 |
partnerId = undefined;
|
|
|
29 |
$(function () {
|
|
|
30 |
getPartnerAheadOptions($("#typeaheadpartner-order-report"), function (selectedPartner) {
|
|
|
31 |
partnerId = selectedPartner.partnerId;
|
|
|
32 |
});
|
|
|
33 |
// Clearing the search box reverts to "all partners".
|
|
|
34 |
$("#typeaheadpartner-order-report").on('input', function () {
|
|
|
35 |
if ($.trim($(this).val()) === "") {
|
|
|
36 |
partnerId = undefined;
|
|
|
37 |
}
|
|
|
38 |
});
|
|
|
39 |
});
|
|
|
40 |
</script>
|
|
|
41 |
#end
|