Subversion Repositories SmartDukaan

Rev

Rev 24640 | Rev 24747 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24469 govind 1
<script>
2
$('#myModal').on('hidden.bs.modal', function (e) {
3
  $(".activity-container .modal-body").empty();
4
});
5
</script>
24467 govind 6
<style>
7
.incoming_msg_img {
8
	display: inline-block;
9
	width: 6%;
10
}
11
 
12
.incoming_msg_img img {
13
	width: 100%;
14
}
15
.sent_msg p {
16
	background:#b8d1f3;
17
	border-radius: 12px 15px 15px 0;
18
	font-size: 14px;
19
	margin: 0;
20
	color: black;
21
	padding: 5px 10px 5px 12px;
24569 govind 22
	word-break: break-all;
24467 govind 23
	width: 100%;
24
}
25
 
26
.outgoing_msg {
27
	overflow: hidden;
28
	margin: 26px 0 26px;
29
}
30
 
31
.sent_msg {
32
	float: right;
33
	width: 46%;
34
}
35
.received_msg {
36
	display: inline-block;
37
	padding: 0 0 0 10px;
38
	vertical-align: top;
39
	width: 50%;
40
}
41
 
42
.received_withd_msg p {
43
	background: #dae5f4 none repeat scroll 0 0;
44
	border-radius: 0 15px 15px 15px;
45
	color: #646464;
46
	font-size: 14px;
47
	margin: 0;
48
	padding: 5px 10px 5px 12px;
24569 govind 49
	word-break: break-all;
24467 govind 50
	width: 100%;
51
}
52
 
53
.time_date {
54
	color: black;
55
	display: block;
56
	font-size: 12px;
57
	margin: 8px 0 0;
58
}
59
.blue_box, .green_box,.white_box {
60
    display: block;
61
    clear:both;
62
}
24530 amit.gupta 63
.modal-dialog {
24467 govind 64
    /* 80% of window height */
24530 amit.gupta 65
    max-height: 80%;
24467 govind 66
}
67
 
68
.modal-body {
24640 govind 69
	max-height:70vh;
24530 amit.gupta 70
    overflow-y: auto;
24467 govind 71
}
72
.outgoing_msg:after,.incoming_msg:after,.white_box:after {
73
  content: '\A';
74
    white-space: pre;
75
}
76
.incoming_msg:before,.white_box:before {
77
  content: '\A';
78
    white-space: pre;
79
}
80
.white_box span {
81
    background-color:#ebebeb;
82
     background-size: 5px 5px;
83
    word-break: break-all;
84
    color: black;
85
    display: block;
86
    padding:10px 10px;
87
    text-align: center
88
}
89
</style>
24439 govind 90
<section class="wrapper">
91
	<div class="row">
92
		<div class="col-lg-12">
93
			<h3 class="page-header"><i class="icon_document_alt"></i>TICKET</h3>
94
			<ol class="breadcrumb">
95
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
24569 govind 96
				<li><i class="icon_document_alt"></i>Manager Ticket</li>						  	
24439 govind 97
			</ol>
98
		</div>
99
	</div>
24699 govind 100
	<div class = "row">
101
				<div class="col-lg-2 form-group">
102
						<select class="form-control input-sm" id = "managerTicketStatus" name="managerTicketStatus" placeholder="Type">
103
						#foreach($ticketStatus in $ticketStatusValues)
104
						#if($selectedticketStatus==$ticketStatus)
105
						<option value="$ticketStatus" selected>$ticketStatus</option>
106
						#else
107
						<option value="$ticketStatus">$ticketStatus</option>
108
						#end
109
						#end
110
		             	</select>
111
				</div>
112
				<div class="col-lg-2 form-group">
113
						<select class="form-control input-sm" id = "managerTicketorderBy" name="managerTicketorderBy" placeholder="Type">
114
						#foreach($orderby in $orderByValues)
115
						#if($orderby=="UNSORTED")
116
						#else
117
						#if($selectedorderby==$orderby)
118
						#if($orderby=="ASCENDING")
119
						<option value="$orderby" selected>OLD TO NEW</option>
120
						#else
121
						<option value="$orderby" selected>NEW TO OLD</option>
122
						#end
123
						#else
124
						#if($orderby=="ASCENDING")
125
						<option value="$orderby">OLD TO NEW</option>
126
						#else
127
						<option value="$orderby">NEW TO OLD</option>
128
						#end
129
						#end
130
						#end
131
						#end
132
		             	</select>
133
				</div>
134
				</div>
24467 govind 135
<div id="manager-ticket-table">
24439 govind 136
		<div class="row">
137
	    	<div class="col-lg-12">
138
	    		<table class="table table-bordered">
139
	    			<tbody>
140
	    				<tr>
24569 govind 141
	    					<th>Ticket Id</th>
24439 govind 142
	    					<th>Partner</th>
143
	    					<th>SubCategory</th>
144
	    					<th>Assigned To</th>
145
	    					<th>Created TimeStamp</th>
24469 govind 146
	    					<th>Status</th>
24439 govind 147
	    					<th>Action</th>
148
	    				</tr>
24569 govind 149
	    				#if($tickets.size()>0)
24439 govind 150
	 							#foreach($ticket in $tickets)
151
	 							<tr>
24569 govind 152
	 							<td>$ticket.getId()</td>
24439 govind 153
	 							<td>$fofoIdsAndCustomRetailer.get($ticket.getFofoId()).getBusinessName()</td>
24500 govind 154
								<td><a href="#" data-toggle="modal" data-target="#myModal" data-ticketid="$ticket.getId()" id="activities" data-assignee="$authUserListMap.get($ticket.getId()).get(0).getFirstName()">$subCategoryIdAndSubCategoryMap.get($ticket.getSubCategoryId()).getName()</a></td>			    				
155
								<td>#foreach($authUser in $authUserListMap.get($ticket.getId()))
156
										<span>$authUser.getFirstName()<span><br/>
157
								#end
158
								</td>
24439 govind 159
			    				<td>$ticket.getFormattedCreateTimestamp()</td>
160
			    				#if($ticket.getCloseTimestamp())
24620 govind 161
			    				<td>Closed</td>
162
			    				<td><button class="btn btn-primary" id="edit-ticket" data-ticketid1="$ticket.getId()" data-target="#theModal" data-toggle="modal" data-backdrop="false" disabled>Edit</button></td>
24439 govind 163
			    				#else
24469 govind 164
			    						<td>Opened</td>
24620 govind 165
			    						<td><button class="btn btn-primary" id="edit-ticket" data-ticketid1="$ticket.getId()" data-target="#theModal" data-toggle="modal" data-backdrop="false">Edit</button></td>
24439 govind 166
			    				#end
167
			    				</tr>
168
			    				#end
169
			    				#else
170
			    				<tr>
171
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
172
		    				</tr>
173
			    				#end
174
	    			</tbody>
175
	    		</table>
24467 govind 176
 
24439 govind 177
	    	</div>
178
	    </div>
179
    </div>
180
    #if(!$tickets.isEmpty())
24467 govind 181
    	<div class="row" id="manager-tickets-paginated">
24439 govind 182
    		<div class="col-lg-9">
183
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
184
    		</div>
185
    		<div class="col-lg-3" style="text-align:right;">
186
				<div class="btn-group" style="width:40%">
187
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
188
				</div>
189
				<div class="btn-group" style="width:40%">
190
					#if($end >= $size)
191
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
192
					#else
193
						<button class="btn btn-primary next" style="width:100%">Next</button>
194
					#end
195
				</div>
196
	    	</div>
197
	    </div>
198
    #end
199
    </section>
24467 govind 200
<div id="manager-ticket-details-container" style="background:white;background-color:white;">
24439 govind 201
</div>
24469 govind 202
<div class="edit-container">
24439 govind 203
<div class="modal fade text-center" id="theModal">
204
  <div class="modal-dialog">
205
    <div class="modal-content">
206
    </div>
207
  </div>
24467 govind 208
</div>
24469 govind 209
</div>
210
 
211
		<div class="activity-container">
24467 govind 212
         <div class="modal fade" id="myModal" role="dialog" >
213
            <div class="modal-dialog">
214
               <!-- Modal content-->
215
               <div class="modal-content">
216
                  <div class="modal-header">
217
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
218
                     <h4 class="modal-title">Message History</h4>
219
                  </div>
220
                  <div class="modal-body">
221
 
222
                   </div><br><br>
223
                   <div class="modal-footer">
224
         <div class="col-lg-10 form-group">
225
         <input type=number id="ticketIdforactivity" hidden>
226
          <input type=number id="assigneeUser" hidden>
227
		<textarea class="form-control rounded-0" id="activityMessage" rows="2"></textarea>
228
			</div>
229
			<div class="col-lg-2">
230
						<input class="btn btn-primary submit-message-button" type="button" value="Submit">	
231
					</div>
232
     		 </div>
233
               </div>
234
            </div>
235
         </div>
24469 govind 236
         </div>