Subversion Repositories SmartDukaan

Rev

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