Subversion Repositories SmartDukaan

Rev

Rev 24500 | Rev 24534 | 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,
24530 amit.gupta 62
 {
24417 govind 63
    /* 80% of window height */
24530 amit.gupta 64
    max-height: 80%;
24417 govind 65
}
66
 
67
.modal-body {
68
    /* 100% = dialog height, 120px = header + footer */
24530 amit.gupta 69
    overflow-y: auto;
24417 govind 70
}
71
.outgoing_msg:after,.incoming_msg:after,.white_box:after {
72
  content: '\A';
73
    white-space: pre;
74
}
75
.incoming_msg:before,.white_box:before {
76
  content: '\A';
77
    white-space: pre;
78
}
79
.white_box span {
80
    background-color:#ebebeb;
81
     background-size: 5px 5px;
82
    word-break: break-all;
83
    color: black;
84
    display: block;
85
    padding:10px 10px;
86
    text-align: center
87
}
88
</style>
89
<section class="wrapper">
90
	<div class="row">
91
		<div class="col-lg-12">
92
			<h3 class="page-header"><i class="icon_document_alt"></i>TICKET</h3>
93
			<ol class="breadcrumb">
94
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
95
				<li><i class="icon_document_alt"></i>My Ticket</li>						  	
96
			</ol>
97
		</div>
98
	</div>
99
<div id="my-ticket-table">
100
		<div class="row">
101
	    	<div class="col-lg-12">
102
	    		<table class="table table-bordered">
103
	    			<tbody>
104
	    				<tr>
105
	    					#if($roleType)
106
	    					<th>Partner</th>
107
	    					#end
108
	    					<th>SubCategory</th>
109
	    					#if(!$roleType)
110
	    					<th>Assigned To</th>
111
	    					#end
112
	    					<th>Created TimeStamp</th>
113
	    					#if($roleType)
114
	    					<th>Action</th>
115
	    					#else
24439 govind 116
	    					<th>HappyCode</th>
24417 govind 117
	    					<th>Status</th>
118
	    					#end
119
	    				</tr>
120
	    				#if(!$tickets.isEmpty())
121
	 							#foreach($ticket in $tickets)
122
	 							<tr>
123
	 							#if($roleType)
124
	 							<td>$fofoIdsAndCustomRetailer.get($ticket.getFofoId()).getBusinessName()</td>
125
	    						#end
24500 govind 126
			    				<td><a href="#" data-toggle="modal" data-target="#myModal" data-ticketid="$ticket.getId()" id="activities" data-assignee="$authUserIdAndAuthUserMap.get($ticket.getId()).getFirstName()">$subCategoryIdAndSubCategoryMap.get($ticket.getSubCategoryId()).getName()</a></td>
24417 govind 127
			    				#if(!$roleType)
24500 govind 128
			    					<td>$authUserIdAndAuthUserMap.get($ticket.getId()).getFirstName()</td>
24417 govind 129
			    					#end
130
			    					<td>$ticket.getFormattedCreateTimestamp()</td>
131
			    					#if($roleType)
132
			    						#if($ticket.getCloseTimestamp())
133
			    							<td>$ticket.getFormattedCloseTimestamp()</td>
134
			    						#else
135
			    							<td><button class="btn btn-primary" id="close-ticket" data-ticketid="$ticket.getId()">Close</button></td>
136
			    						#end
137
	    							#else
138
	    								#if($ticket.getCloseTimestamp())
24439 govind 139
	    									<td>$ticket.getHappyCode()</td>
24417 govind 140
	    									<td>Closed</td>
141
	    								#else
24439 govind 142
	    								<td>$ticket.getHappyCode()</td>
24417 govind 143
	    								<td>Opened</td>
144
	    								#end
145
	    							#end
146
			    				</tr>
147
			    				#end
148
			    				#else
149
			    				<tr>
150
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
151
		    				</tr>
152
			    				#end
153
	    			</tbody>
154
	    		</table>
155
	    	</div>
156
	    </div>
157
    </div>
158
    #if(!$tickets.isEmpty())
159
    	<div class="row" id="tickets-paginated">
160
    		<div class="col-lg-9">
161
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
162
    		</div>
163
    		<div class="col-lg-3" style="text-align:right;">
164
				<div class="btn-group" style="width:40%">
165
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
166
				</div>
167
				<div class="btn-group" style="width:40%">
168
					#if($end >= $size)
169
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
170
					#else
171
						<button class="btn btn-primary next" style="width:100%">Next</button>
172
					#end
173
				</div>
174
	    	</div>
175
	    </div>
176
    #end
177
    </section>
178
<div id="ticket-details-container" style="background:white;background-color:white;">
179
</div>
24469 govind 180
<div class="activity-container">
24417 govind 181
         <div class="modal fade" id="myModal" role="dialog" >
182
            <div class="modal-dialog">
183
               <!-- Modal content-->
184
               <div class="modal-content">
185
                  <div class="modal-header">
186
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
187
                     <h4 class="modal-title">Message History</h4>
188
                  </div>
189
                  <div class="modal-body">
190
 
191
                   </div><br><br>
192
                   <div class="modal-footer">
193
         <div class="col-lg-10 form-group">
194
         <input type=number id="ticketIdforactivity" hidden>
195
          <input type=number id="assigneeUser" hidden>
196
		<textarea class="form-control rounded-0" id="activityMessage" rows="2"></textarea>
197
			</div>
198
			<div class="col-lg-2">
199
						<input class="btn btn-primary submit-message-button" type="button" value="Submit">	
200
					</div>
201
     		 </div>
202
               </div>
203
            </div>
204
         </div>
205
      </div>
206