Subversion Repositories SmartDukaan

Rev

Rev 3519 | Rev 3578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3519 Rev 3546
Line -... Line 1...
-
 
1
<div id="bottom-infopane">
1
#set($messages = $action.getActionErrors())
2
#set($messages = $action.getActionErrors())
2
#if($messages && $messages.size() != 0)
3
#if($messages && $messages.size() != 0)
3
    #foreach($message in $messages)
4
    #foreach($message in $messages)
4
        $message <br/>
5
        $message <br/>
5
    #end
6
    #end
Line 49... Line 50...
49
                <col width="120px"/>
50
                <col width="120px"/>
50
                <col width="200px"/>
51
                <col width="200px"/>
51
                <col width="300px"/>
52
                <col width="300px"/>
52
            </colgroup>
53
            </colgroup>
53
            #if($ticket.isSetCustomerId())
54
            #if($ticket.isSetCustomerId())
-
 
55
            #set($user = $action.getUser())
-
 
56
                <tr >
-
 
57
                    <td >Customer Name: </td>
-
 
58
                    <td >$user.getName()</td>
-
 
59
                    <td ></td>
-
 
60
                    <td >Customer Mobile No: </td>
-
 
61
                    <td >$user.getMobileNumber()</td>
-
 
62
                </tr>
54
            #else
63
            #else
55
                <tr >
64
                <tr >
56
                    <td >Customer Name: </td>
65
                    <td >Customer Name: </td>
57
                    <td >
66
                    <td >
58
                        #if($ticket.isSetCustomerName())
67
                        #if($ticket.isSetCustomerName())
Line 92... Line 101...
92
                <td></td>
101
                <td></td>
93
                <td ><label>Order Id:</label></td>
102
                <td ><label>Order Id:</label></td>
94
                <td >
103
                <td >
95
                    #if($ticket.isSetOrderId())
104
                    #if($ticket.isSetOrderId())
96
                        <a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$ticket.getOrderId()">
105
                        <a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$ticket.getOrderId()">
97
                            <span class="truncated-text">
-
 
98
                                $ticket.getOrderId()
106
                                $ticket.getOrderId()
99
                            </span>
-
 
100
                        </a>
107
                        </a>
101
                    #else
108
                    #else
102
                        N/A
109
                        N/A
103
                    #end
110
                    #end
104
                </td>
111
                </td>
Line 185... Line 192...
185
                <td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
192
                <td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
186
            </tr>
193
            </tr>
187
        </table>
194
        </table>
188
    </form>
195
    </form>
189
</div>
196
</div>
-
 
197
#if($action.getOrders() && ($action.getCurrentAgentEmailId().equals("anand.sinha@shop2020.in") || $action.getCurrentAgentEmailId().equals("admin@shop2020.in")))
-
 
198
<h2 >Orders</h2>
-
 
199
<div id="bottom-infopane-middle">
-
 
200
    <table id="order-table" class="display">
-
 
201
        <thead>
-
 
202
            <tr>
-
 
203
                <th>Order Id</th>
-
 
204
                <th>Product</th>
-
 
205
                <th>Created</th>
-
 
206
                <th>Amount</th>
-
 
207
                <th>Shipping Address</th>
-
 
208
                <th></th>
-
 
209
                <th></th>
-
 
210
            </tr>
-
 
211
        </thead>
-
 
212
        <tbody>
-
 
213
            #foreach($order in $action.getOrders())
-
 
214
            #set($orderId = $order.getId())
-
 
215
            #set($trClass = "table-tr-odd")
-
 
216
            #if($velocityCount % 2 == 0)
-
 
217
                #set($trClass = "table-tr-even")
-
 
218
            #end
-
 
219
            <tr id="order-row-$orderId" class="$trClass">
-
 
220
                <td>
-
 
221
                    <a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$orderId">
-
 
222
                        $orderId
-
 
223
                    </a>
-
 
224
                </td>
-
 
225
                <td class="truncated-text-for-order-table">$action.getProductName($order.getLineitems().get(0))</td>
-
 
226
                <td class="truncated-text-for-order-table">$action.convertDate($order.getCreated_timestamp())</td>
-
 
227
                <td>$order.getTotal_amount()</td>
-
 
228
                <td class="truncated-text-for-order-table" title="$action.getAddress($order)">$order.getCustomer_city()</td>
-
 
229
                <td ><input type="button" value="COD verified" ticketId="$ticketId" orderId="$orderId" orderStatus="SUBMITTED_FOR_PROCESSING" class="update-order-status"/> </td>
-
 
230
                <td ><input type="button" value="Cancel order" ticketId="$ticketId" orderId="$orderId" orderStatus="CANCELED" class="update-order-status"/> </td>
-
 
231
            </tr>
-
 
232
            #end
-
 
233
        </tbody>
-
 
234
    </table>
-
 
235
</div>
-
 
236
#end
-
 
237
<br />
190
<h2 >Activities</h2>
238
<h2 >Activities</h2>
191
<div id="bottom-infopane-lower">
239
<div id="bottom-infopane-lower">
192
    <table id="activity-table" class="display">
240
    <table id="activity-table" class="display">
193
        <thead >
241
        <thead >
194
            <tr class="table-tr-header">
242
            <tr class="table-tr-header">
Line 247... Line 295...
247
                #if($activity.getCustomerMobileNumber())
295
                #if($activity.getCustomerMobileNumber())
248
                    $activity.getCustomerMobileNumber()
296
                    $activity.getCustomerMobileNumber()
249
                #else
297
                #else
250
                    N/A
298
                    N/A
251
                #end
299
                #end
252
                </td-->                
300
                </td-->
253
            </tr>
301
            </tr>
254
        #end
302
        #end
255
        </tbody>
303
        </tbody>
256
    </table>
304
    </table>
257
</div>
305
</div>
258
</div>
306
</div>
259
#end
307
#end
-
 
308
</div>
260
<script >
309
<script >
261
$(document).ready(
310
$(document).ready(
262
    function () {
311
    function () {
263
        $(".truncated-text-for-activity-table").truncate({
312
        $(".truncated-text-for-activity-table").truncate({
264
            width : 65,
313
            width : 65,
265
            addtitle : true
314
            addtitle : true
266
        });
315
        });
-
 
316
 
-
 
317
        $(".truncated-text-for-order-table").truncate({
-
 
318
            width : 100,
-
 
319
            addtitle : true
-
 
320
        });
267
    }
321
    }
268
);
322
);
269
</script>
323
</script>