Subversion Repositories SmartDukaan

Rev

Rev 24569 | Rev 24640 | 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 {
24530 amit.gupta 69
    overflow-y: auto;
24467 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>
24439 govind 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>
24569 govind 95
				<li><i class="icon_document_alt"></i>Manager Ticket</li>						  	
24439 govind 96
			</ol>
97
		</div>
98
	</div>
24467 govind 99
<div id="manager-ticket-table">
24439 govind 100
		<div class="row">
101
	    	<div class="col-lg-12">
102
	    		<table class="table table-bordered">
103
	    			<tbody>
104
	    				<tr>
24569 govind 105
	    					<th>Ticket Id</th>
24439 govind 106
	    					<th>Partner</th>
107
	    					<th>SubCategory</th>
108
	    					<th>Assigned To</th>
109
	    					<th>Created TimeStamp</th>
24469 govind 110
	    					<th>Status</th>
24439 govind 111
	    					<th>Action</th>
112
	    				</tr>
24569 govind 113
	    				#if($tickets.size()>0)
24439 govind 114
	 							#foreach($ticket in $tickets)
115
	 							<tr>
24569 govind 116
	 							<td>$ticket.getId()</td>
24439 govind 117
	 							<td>$fofoIdsAndCustomRetailer.get($ticket.getFofoId()).getBusinessName()</td>
24500 govind 118
								<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>			    				
119
								<td>#foreach($authUser in $authUserListMap.get($ticket.getId()))
120
										<span>$authUser.getFirstName()<span><br/>
121
								#end
122
								</td>
24439 govind 123
			    				<td>$ticket.getFormattedCreateTimestamp()</td>
124
			    				#if($ticket.getCloseTimestamp())
24620 govind 125
			    				<td>Closed</td>
126
			    				<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 127
			    				#else
24469 govind 128
			    						<td>Opened</td>
24620 govind 129
			    						<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 130
			    				#end
131
			    				</tr>
132
			    				#end
133
			    				#else
134
			    				<tr>
135
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
136
		    				</tr>
137
			    				#end
138
	    			</tbody>
139
	    		</table>
24467 govind 140
 
24439 govind 141
	    	</div>
142
	    </div>
143
    </div>
144
    #if(!$tickets.isEmpty())
24467 govind 145
    	<div class="row" id="manager-tickets-paginated">
24439 govind 146
    		<div class="col-lg-9">
147
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
148
    		</div>
149
    		<div class="col-lg-3" style="text-align:right;">
150
				<div class="btn-group" style="width:40%">
151
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
152
				</div>
153
				<div class="btn-group" style="width:40%">
154
					#if($end >= $size)
155
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
156
					#else
157
						<button class="btn btn-primary next" style="width:100%">Next</button>
158
					#end
159
				</div>
160
	    	</div>
161
	    </div>
162
    #end
163
    </section>
24467 govind 164
<div id="manager-ticket-details-container" style="background:white;background-color:white;">
24439 govind 165
</div>
24469 govind 166
<div class="edit-container">
24439 govind 167
<div class="modal fade text-center" id="theModal">
168
  <div class="modal-dialog">
169
    <div class="modal-content">
170
    </div>
171
  </div>
24467 govind 172
</div>
24469 govind 173
</div>
174
 
175
		<div class="activity-container">
24467 govind 176
         <div class="modal fade" id="myModal" role="dialog" >
177
            <div class="modal-dialog">
178
               <!-- Modal content-->
179
               <div class="modal-content">
180
                  <div class="modal-header">
181
                     <button type="button" class="close" data-dismiss="modal">&times;</button>
182
                     <h4 class="modal-title">Message History</h4>
183
                  </div>
184
                  <div class="modal-body">
185
 
186
                   </div><br><br>
187
                   <div class="modal-footer">
188
         <div class="col-lg-10 form-group">
189
         <input type=number id="ticketIdforactivity" hidden>
190
          <input type=number id="assigneeUser" hidden>
191
		<textarea class="form-control rounded-0" id="activityMessage" rows="2"></textarea>
192
			</div>
193
			<div class="col-lg-2">
194
						<input class="btn btn-primary submit-message-button" type="button" value="Submit">	
195
					</div>
196
     		 </div>
197
               </div>
198
            </div>
199
         </div>
24469 govind 200
         </div>