# --
# AgentDashboardCustomerUserList.dtl - provides HTML for global dashboard
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentDashboardCustomerUserList.dtl,v 1.11 2012/11/27 14:53:38 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<!-- dtl:block:ContentLargeCustomerUserListNavBar -->
<span class="Pagination">
    $Data{"SiteNavBar"}
</span>
<!-- dtl:block:ContentLargeCustomerUserListNavBar -->
<!-- dtl:block:ContentLargeCustomerUserAdd -->
<h2><a class="CallForAction Plus" href="$Env{"Baselink"}Action=AdminCustomerUser;Subaction=Add;CustomerID=$LQData{"CustomerID"}"><span>$Text{"Add Customer"}</span></a></h2>
<!-- dtl:block:ContentLargeCustomerUserAdd -->

<table class="DataTable">
    <thead>
        <tr>
            <th>$Text{"Customer login"}</th>
            <th>$Text{"Customer information"}</th>
            <th>$Text{"Open"}</th>
            <th>$Text{"Closed"}</th>
            <th>$Text{"Phone ticket"}</th>
            <th>$Text{"Email ticket"}</th>
<!-- dtl:block:OverviewResultSwitchToCustomer -->
            <th>$Text{"Login as"}</th>
<!-- dtl:block:OverviewResultSwitchToCustomer -->
        </tr>
    </thead>
    <tbody>
<!-- dtl:block:ContentLargeCustomerUserListRow -->
        <tr>
            <td>
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerKeyLink -->
                <a href="$Env{"Baselink"}Action=AdminCustomerUser;Subaction=Change;ID=$LQData{"CustomerKey"};Nav=Agent" class="AsBlock MasterActionLink">
                    $QData{"CustomerKey"}
                </a>
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerKeyLink -->
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerKeyText -->
                $QData{"CustomerKey"}
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerKeyText -->
            </td>
            <td>
                $QData{"CustomerListEntry"}
            </td>
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerUserTicketsOpen -->
            <td>
                <a href="$Env{"Baselink"}Action=AgentTicketSearch;Subaction=Search;StateType=Open;CustomerUserLogin=$LQData{"CustomerKeySQL"}" title="$Text{"%s open ticket(s) of %s", "$QData{"Count"}", "$QData{"CustomerKey"}"}" class="AsBlock">
                    $QData{"Count"}
                </a>
            </td>
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerUserTicketsOpen -->
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerUserTicketsClosed -->
            <td>
                <a href="$Env{"Baselink"}Action=AgentTicketSearch;Subaction=Search;StateType=Closed;CustomerUserLogin=$LQData{"CustomerKeySQL"}" title="$Text{"%s closed ticket(s) of %s", "$QData{"Count"}", "$QData{"CustomerKey"}"}" class="AsBlock">
                    $QData{"Count"}
                </a>
            </td>
<!-- dtl:block:ContentLargeCustomerUserListRowCustomerUserTicketsClosed -->
            <td>
                <a href="$Env{"Baselink"}Action=AgentTicketPhone;Subaction=StoreNew;ExpandCustomerName=2;CustomerUser=$LQData{"CustomerKey"}" title="$Text{"New phone ticket from %s", "$QData{"CustomerKey"}"}">
                    <span>$Text{"Create"}</span>
                </a>
            </td>
            <td>
                <a href="$Env{"Baselink"}Action=AgentTicketEmail;Subaction=StoreNew;ExpandCustomerName=2;CustomerUser=$LQData{"CustomerKey"}" title="$Text{"New email ticket to %s", "$QData{"CustomerKey"}"}">
                    <span>$Text{"Create"}</span>
                </a>
            </td>
<!-- dtl:block:OverviewResultRowSwitchToCustomer -->
            <td>
                <a class="AsBlock" href="$Env{"Baselink"}Action=AdminCustomerUser;Subaction=Switch;ID=$LQData{"CustomerKey"};$QEnv{"ChallengeTokenParam"}" target="_blank">$Text{"Switch to customer"}</a>
            </td>
<!-- dtl:block:OverviewResultRowSwitchToCustomer -->
        </tr>
<!-- dtl:block:ContentLargeCustomerUserListRow -->
<!-- dtl:block:ContentLargeCustomerUserListNone -->
        <tr>
            <td>
                $Text{"none"}
            </td>
        </tr>
<!-- dtl:block:ContentLargeCustomerUserListNone -->
    </tbody>
</table>
