Subversion Repositories SmartDukaan

Rev

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