| 34913 |
ranu |
1 |
<script type="text/javascript">
|
| 35606 |
amit |
2 |
$(document).ready(function () {
|
|
|
3 |
// Cleanup for myModal (activity/message modal)
|
|
|
4 |
$('#myModal').on('hidden.bs.modal', function (e) {
|
|
|
5 |
$(".activity-container .modal-body").empty();
|
|
|
6 |
});
|
| 34913 |
ranu |
7 |
|
| 35606 |
amit |
8 |
// Cleanup for theModal2 (edit partner ticket modal)
|
|
|
9 |
$('#theModal2').on('hidden.bs.modal', function (e) {
|
|
|
10 |
$("#theModal2 .modal-content").empty();
|
| 35602 |
amit |
11 |
$('body').removeClass('modal-open');
|
|
|
12 |
$('.modal-backdrop').remove();
|
| 35606 |
amit |
13 |
});
|
| 35602 |
amit |
14 |
|
| 35606 |
amit |
15 |
// Ensure backdrop is removed on any modal close
|
|
|
16 |
$(document).on('hidden.bs.modal', '.modal', function () {
|
|
|
17 |
if ($('.modal:visible').length === 0) {
|
|
|
18 |
$('body').removeClass('modal-open');
|
|
|
19 |
$('.modal-backdrop').remove();
|
|
|
20 |
}
|
|
|
21 |
});
|
|
|
22 |
|
| 34913 |
ranu |
23 |
getPartnerAheadOptions($("#typeaheadpartnername"), function (selectedPartner) {
|
|
|
24 |
$("#manager-ticket-search-by-partner-name").data('id', selectedPartner.partnerId);
|
|
|
25 |
$("#partner-name-input").val(selectedPartner.partnerId);
|
|
|
26 |
});
|
|
|
27 |
|
|
|
28 |
});
|
|
|
29 |
|
|
|
30 |
</script>
|
| 35571 |
amit |
31 |
#parse("activity-modal-styles.vm")
|
| 35626 |
amit |
32 |
<style>
|
|
|
33 |
.pagination-wrapper {
|
|
|
34 |
display: flex;
|
|
|
35 |
align-items: center;
|
|
|
36 |
justify-content: space-between;
|
|
|
37 |
padding: 10px 0;
|
|
|
38 |
flex-wrap: wrap;
|
|
|
39 |
}
|
|
|
40 |
.pagination-wrapper .pagination {
|
|
|
41 |
margin: 0;
|
|
|
42 |
}
|
|
|
43 |
.pagination-wrapper .page-size-select {
|
|
|
44 |
width: auto;
|
|
|
45 |
display: inline-block;
|
|
|
46 |
}
|
|
|
47 |
.pagination-info {
|
|
|
48 |
color: #666;
|
|
|
49 |
}
|
|
|
50 |
.search-form {
|
|
|
51 |
margin-bottom: 15px;
|
|
|
52 |
}
|
|
|
53 |
.search-form .form-group {
|
|
|
54 |
margin-bottom: 0;
|
|
|
55 |
}
|
|
|
56 |
tr.ticket-unread {
|
|
|
57 |
background-color: #f0f7ff !important;
|
|
|
58 |
font-weight: bold;
|
|
|
59 |
}
|
|
|
60 |
tr.ticket-unread td {
|
|
|
61 |
font-weight: bold;
|
|
|
62 |
}
|
|
|
63 |
.unread-badge {
|
|
|
64 |
display: inline-block;
|
|
|
65 |
width: 8px;
|
|
|
66 |
height: 8px;
|
|
|
67 |
background-color: #007bff;
|
|
|
68 |
border-radius: 50%;
|
|
|
69 |
margin-right: 4px;
|
|
|
70 |
vertical-align: middle;
|
|
|
71 |
}
|
|
|
72 |
</style>
|
| 34913 |
ranu |
73 |
<section class="wrapper">
|
|
|
74 |
<div class="row">
|
|
|
75 |
<div class="col-lg-12">
|
|
|
76 |
<h3 class="page-header"><i class="icon_document_alt"></i>TICKET</h3>
|
|
|
77 |
<ol class="breadcrumb">
|
|
|
78 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
79 |
<li><i class="icon_document_alt"></i>All Partner Ticket</li>
|
|
|
80 |
</ol>
|
|
|
81 |
</div>
|
|
|
82 |
</div>
|
|
|
83 |
<div class="row">
|
|
|
84 |
<div class="col-lg-2 form-group">
|
|
|
85 |
<select class="form-control input-sm" id="managerTicketStatus" name="managerTicketStatus"
|
|
|
86 |
placeholder="Type">
|
|
|
87 |
#foreach($ticketStatus in $ticketStatusValues)
|
|
|
88 |
#if($selectedticketStatus==$ticketStatus)
|
|
|
89 |
<option value="$ticketStatus" selected>$ticketStatus</option>
|
|
|
90 |
#else
|
|
|
91 |
<option value="$ticketStatus">$ticketStatus</option>
|
|
|
92 |
#end
|
|
|
93 |
#end
|
|
|
94 |
</select>
|
|
|
95 |
</div>
|
|
|
96 |
<div class="col-lg-2 form-group">
|
|
|
97 |
<select class="form-control input-sm" id="managerTicketorderBy" name="managerTicketorderBy"
|
|
|
98 |
placeholder="Type">
|
|
|
99 |
#foreach($orderby in $orderByValues)
|
|
|
100 |
#if($orderby=="UNSORTED")
|
|
|
101 |
#else
|
|
|
102 |
#if($selectedorderby==$orderby)
|
|
|
103 |
#if($orderby=="ASCENDING")
|
|
|
104 |
<option value="$orderby" selected>OLD TO NEW</option>
|
|
|
105 |
#else
|
|
|
106 |
<option value="$orderby" selected>NEW TO OLD</option>
|
|
|
107 |
#end
|
|
|
108 |
#else
|
|
|
109 |
#if($orderby=="ASCENDING")
|
|
|
110 |
<option value="$orderby">OLD TO NEW</option>
|
|
|
111 |
#else
|
|
|
112 |
<option value="$orderby">NEW TO OLD</option>
|
|
|
113 |
#end
|
|
|
114 |
#end
|
|
|
115 |
#end
|
|
|
116 |
#end
|
|
|
117 |
</select>
|
|
|
118 |
</div>
|
|
|
119 |
<div class="col-lg-6 form-group pull-right">
|
|
|
120 |
<div class="col-lg-6">
|
|
|
121 |
<select class="form-control" id="managersearchType" name="managersearchType" placeholder="Search Type">
|
|
|
122 |
<option value="" disabled selected>Search Type</option>
|
|
|
123 |
#foreach($searchType1 in $ticketSearchTypes)
|
|
|
124 |
#if($ticketSearchType.getValue()==$searchType1.getValue())
|
|
|
125 |
<option value="$searchType1" selected>$ticketSearchType.getValue()</option>
|
|
|
126 |
#else
|
|
|
127 |
<option value="$searchType1">$searchType1.getValue()</option>
|
|
|
128 |
#end
|
|
|
129 |
#end
|
|
|
130 |
</select>
|
|
|
131 |
</div>
|
|
|
132 |
|
|
|
133 |
<div class="col-lg-6">
|
|
|
134 |
<input type="hidden" id="partner-name-input" name="partner-name-input" value="">
|
|
|
135 |
<div class="byPartnerName" style="display: none;">
|
|
|
136 |
<div class="input-group">
|
|
|
137 |
<input placeholder="Partner Name" type="text" class="typeahead form-control"
|
|
|
138 |
id="typeaheadpartnername" value="" name="Item" data-provide="typeahead"
|
|
|
139 |
autocomplete="off">
|
|
|
140 |
<span class="input-group-btn">
|
|
|
141 |
<button class="btn btn-primary" id="manager-ticket-search-by-partner-name" type="button" data-id="">Go!</button>
|
|
|
142 |
</span>
|
|
|
143 |
</div>
|
|
|
144 |
</div>
|
|
|
145 |
<div class="byTicketId" style="display: none;">
|
|
|
146 |
<div class="input-group">
|
|
|
147 |
<input placeholder="Ticket Id" type="text" class="form-control" id="search-by-ticketId"
|
|
|
148 |
value="">
|
|
|
149 |
<span class="input-group-btn">
|
|
|
150 |
<button class="btn btn-primary" id="retailer-details-search-button-by-ticketId"
|
|
|
151 |
type="button">Go!</button>
|
|
|
152 |
</span>
|
|
|
153 |
</div>
|
|
|
154 |
</div>
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
</div>
|
|
|
158 |
|
| 35626 |
amit |
159 |
<div id="partner-ticket-content-area">
|
|
|
160 |
#parse("my-partner-tickets-content.vm")
|
| 34913 |
ranu |
161 |
</div>
|
|
|
162 |
|
|
|
163 |
</section>
|
|
|
164 |
<div id="manager-ticket-details-container" style="background:white;background-color:white;">
|
|
|
165 |
</div>
|
|
|
166 |
<div class="edit-container">
|
| 35602 |
amit |
167 |
<div class="modal fade text-center" id="theModal2" tabindex="-1" role="dialog" data-backdrop="true" data-keyboard="true">
|
|
|
168 |
<div class="modal-dialog" role="document">
|
| 34913 |
ranu |
169 |
<div class="modal-content">
|
|
|
170 |
</div>
|
|
|
171 |
</div>
|
|
|
172 |
</div>
|
|
|
173 |
</div>
|
|
|
174 |
|
| 35571 |
amit |
175 |
#set($showFileUpload = false)
|
|
|
176 |
#parse("activity-modal.vm")
|