Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24417 govind 1
<script>
2
$('#myModal').on('hidden.bs.modal', function (e) {
24469 govind 3
  $(".activity-container .modal-body").empty();
24417 govind 4
});
5
</script>
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;
22
	width: 100%;
23
}
24
 
25
.outgoing_msg {
26
	overflow: hidden;
27
	margin: 26px 0 26px;
28
}
29
 
30
.sent_msg {
31
	float: right;
32
	width: 46%;
33
}
34
.received_msg {
35
	display: inline-block;
36
	padding: 0 0 0 10px;
37
	vertical-align: top;
38
	width: 50%;
39
}
40
 
41
.received_withd_msg p {
42
	background: #dae5f4 none repeat scroll 0 0;
43
	border-radius: 0 15px 15px 15px;
44
	color: #646464;
45
	font-size: 14px;
46
	margin: 0;
47
	padding: 5px 10px 5px 12px;
48
	width: 100%;
49
}
50
 
51
.time_date {
52
	color: black;
53
	display: block;
54
	font-size: 12px;
55
	margin: 8px 0 0;
56
}
57
.blue_box, .green_box,.white_box {
58
    display: block;
59
    clear:both;
60
}
61
.modal-dialog,
62
.modal-content {
63
    /* 80% of window height */
64
    height: 80%;
65
}
66
 
67
.modal-body {
68
    /* 100% = dialog height, 120px = header + footer */
69
    max-height: calc(100% - 120px);
70
    overflow-y: scroll;
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>
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>
96
				<li><i class="icon_document_alt"></i>My Ticket</li>						  	
97
			</ol>
98
		</div>
99
	</div>
100
<div id="my-ticket-table">
101
		<div class="row">
102
	    	<div class="col-lg-12">
103
	    		<table class="table table-bordered">
104
	    			<tbody>
105
	    				<tr>
106
	    					#if($roleType)
107
	    					<th>Partner</th>
108
	    					#end
109
	    					<th>SubCategory</th>
110
	    					#if(!$roleType)
111
	    					<th>Assigned To</th>
112
	    					#end
113
	    					<th>Created TimeStamp</th>
114
	    					#if($roleType)
115
	    					<th>Action</th>
116
	    					#else
24439 govind 117
	    					<th>HappyCode</th>
24417 govind 118
	    					<th>Status</th>
119
	    					#end
120
	    				</tr>
121
	    				#if(!$tickets.isEmpty())
122
	 							#foreach($ticket in $tickets)
123
	 							<tr>
124
	 							#if($roleType)
125
	 							<td>$fofoIdsAndCustomRetailer.get($ticket.getFofoId()).getBusinessName()</td>
126
	    						#end
24469 govind 127
			    				<td  data-toggle="modal" data-target="#myModal" data-ticketid="$ticket.getId()" id="activities" data-assignee="$authUserIdAndAuthUserMap.get($ticket.getAssigneeId()).getFirstName()"><a href="#">$subCategoryIdAndSubCategoryMap.get($ticket.getSubCategoryId()).getName()</a></td>
24417 govind 128
			    				#if(!$roleType)
129
			    					<td>$authUserIdAndAuthUserMap.get($ticket.getAssigneeId()).getFirstName()</td>
130
			    					#end
131
			    					<td>$ticket.getFormattedCreateTimestamp()</td>
132
			    					#if($roleType)
133
			    						#if($ticket.getCloseTimestamp())
134
			    							<td>$ticket.getFormattedCloseTimestamp()</td>
135
			    						#else
136
			    							<td><button class="btn btn-primary" id="close-ticket" data-ticketid="$ticket.getId()">Close</button></td>
137
			    						#end
138
	    							#else
139
	    								#if($ticket.getCloseTimestamp())
24439 govind 140
	    									<td>$ticket.getHappyCode()</td>
24417 govind 141
	    									<td>Closed</td>
142
	    								#else
24439 govind 143
	    								<td>$ticket.getHappyCode()</td>
24417 govind 144
	    								<td>Opened</td>
145
	    								#end
146
	    							#end
147
			    				</tr>
148
			    				#end
149
			    				#else
150
			    				<tr>
151
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
152
		    				</tr>
153
			    				#end
154
	    			</tbody>
155
	    		</table>
156
	    	</div>
157
	    </div>
158
    </div>
159
    #if(!$tickets.isEmpty())
160
    	<div class="row" id="tickets-paginated">
161
    		<div class="col-lg-9">
162
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
163
    		</div>
164
    		<div class="col-lg-3" style="text-align:right;">
165
				<div class="btn-group" style="width:40%">
166
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
167
				</div>
168
				<div class="btn-group" style="width:40%">
169
					#if($end >= $size)
170
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
171
					#else
172
						<button class="btn btn-primary next" style="width:100%">Next</button>
173
					#end
174
				</div>
175
	    	</div>
176
	    </div>
177
    #end
178
    </section>
179
<div id="ticket-details-container" style="background:white;background-color:white;">
180
</div>
24469 govind 181
<div class="activity-container">
24417 govind 182
         <div class="modal fade" id="myModal" role="dialog" >
183
            <div class="modal-dialog">
184
               <!-- Modal content-->
185
               <div class="modal-content">
186
                  <div class="modal-header">
187
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
188
                     <h4 class="modal-title">Message History</h4>
189
                  </div>
190
                  <div class="modal-body">
191
 
192
                   </div><br><br>
193
                   <div class="modal-footer">
194
         <div class="col-lg-10 form-group">
195
         <input type=number id="ticketIdforactivity" hidden>
196
          <input type=number id="assigneeUser" hidden>
197
		<textarea class="form-control rounded-0" id="activityMessage" rows="2"></textarea>
198
			</div>
199
			<div class="col-lg-2">
200
						<input class="btn btn-primary submit-message-button" type="button" value="Submit">	
201
					</div>
202
     		 </div>
203
               </div>
204
            </div>
205
         </div>
206
      </div>
207