Subversion Repositories SmartDukaan

Rev

Rev 3137 | Rev 3168 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#set($messages = $action.getActionErrors())
#if($messages && $messages.size() != 0)
    #foreach($message in $messages)
        $message <br/>
    #end
#else
<div id="top-infopane">
    <table id="tickets" class="display">
        <thead>
            <tr>
                <th>Ticket Id</th>
                <th>Customer Id</th>
                <th>Category</th>
                <th>Date Opened</th>
                <th>Date Closed</th>
                <th>Assignee</th>
                <th>Status</th>
                <th>Priority</th>
                <th>Mobile Number</th>
            </tr>
        </thead>
        <tbody>
            #foreach($ticket in $action.getTickets())
            #set( $ticketId = $ticket.getId() )
            #set( $user = $action.getUser($ticket.getCustomerId()) )
            #set($openDate = $action.convertDate($ticket.getOpenDate()))
            #set($closeDate = $action.convertDate($ticket.getCloseDate()))
            <tr id="ticket-row-$ticketId">
                <td>
                    <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" class="show-ticket-details">
                        $ticketId
                    </a>
                </td>
                <td class="truncated-text">$user.getEmail()</td>
                <td class="truncated-text">$ticket.getCategory().name()</td>
                <td title="$openDate" class="truncated-text">$openDate</td>
                <td class="truncated-text" title="$closeDate">$closeDate</td>
                <td class="truncated-text">
                    #if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
                        $action.getAgent($ticket.getAssigneeId()).getEmailId()
                    #else
                        N/A
                    #end
                </td>
                <td class="truncated-text">$ticket.getStatus().name()</td>
                <td class="truncated-text">$ticket.getPriority().name()</td>
                <td class="truncated-text">$user.getMobileNumber()</td>
            </tr>
            #end
        </tbody>
    </table>
</div>
<div id="bottom-infopane">
</div>
#end
<script >
$(document).ready(function() {
    $(".truncated-text").truncate({width: 75, addtitle: true});
});
</script>