# --
# AgentDashboard.dtl - provides HTML for global dashboard
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentDashboard.dtl,v 1.58 2012/01/06 12:34:19 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:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    Core.Agent.Dashboard.Init();
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:Content -->
<div class="MainBox ARIARoleMain LayoutFixedSidebar SidebarLast">
    <h1>$Text{"Dashboard"}</h1>

    <div class="SidebarColumn">
        <div class="DontPrint WidgetSimple Collapsed Animate">
            <div class="Header">
                <div class="WidgetAction Toggle">
                    <a href="#" title="$Text{"Show or hide the content"}"></a>
                </div>
                <h2>$Text{"Settings"}</h2>
            </div>
            <div class="Content">
                <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="Action" value="$Env{"Action"}"/>
                    <input type="hidden" name="Subaction" value="UpdateSettings"/>
                    <ul>
<!-- dtl:block:ContentSettings -->
                        <li>
                            <span title="$Text{"$Data{"Description"}"}">
                                <input type="checkbox" name="Backend" id="Settings$QData{"Name"}" value="$QData{"Name"}" $Data{"Checked"}/>
                                <label for="Settings$QData{"Name"}">$Text{"$Data{"Title"}"}</label>
                            </span>
                        </li>
<!-- dtl:block:ContentSettings -->
                    </ul>
                    <button class="button" accesskey="g" title="$Text{"Save"} (g)" type="submit" value="$Text{"Save"}">$Text{"Save"}</button>
                </form>
            </div>
        </div>

<!-- dtl:block:ContentSmall -->
        <div class="WidgetSimple CanDrag" id="Dashboard$QData{"Name"}-box">
            <div class="Header">
                <div class="ActionMenu">
<!-- dtl:block:ContentSmallPreferences -->
                    <div class="WidgetAction Settings">
                        <a href="#" id="Dashboard$QData{"Name"}-toggle" title="$Text{"Settings"}"></a>
                    </div>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
Core.UI.RegisterToggleTwoContainer($('#Dashboard$QData{"Name"}-toggle'), $('#Dashboard$QData{"Name"}-setting'), $('#Dashboard$QData{"Name"}'));
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:ContentSmallPreferences -->
                    <div class="WidgetAction Close">
                        <a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=UpdateRemove;Name=$LQData{"Name"};$QEnv{"ChallengeTokenParam"}" title="$Text{"Close"}"></a>
                    </div>
                    <div class="Clear"></div>
                </div>
                <h2 title="$Text{"$Data{"Description"}"}">$Text{"$Data{"Title"}"}</h2>
            </div>
            <div class="Content">
                <div id="Dashboard$QData{"Name"}-setting" class="Hidden">
                    <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="Dashboard$QData{"NameForm"}_setting_form" id="Dashboard$QData{"NameForm"}_setting_form">
                        <input type="hidden" name="Action" value="$Env{"Action"}"/>
                        <input type="hidden" name="Subaction" value="UpdatePreferences"/>
                        <input type="hidden" name="Name" value="$QData{"Name"}"/>
                        <fieldset class="TableLike DontPrint">
<!-- dtl:block:ContentSmallPreferencesItem -->
<!-- dtl:block:ContentSmallPreferencesItemOption -->
                            <label>$Text{"$Data{"Desc"}"}:</label>
                            <div class="Field DontPrint">
                                $Data{"Option"}
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentSmallPreferencesItemOption -->
<!-- dtl:block:ContentSmallPreferencesItemInput -->
                            <label class="DontPrint">$Text{"$Data{"Desc"}"}:</label>
                            <div class="Field DontPrint">
                                <input type="text" class="W100pc" name="$QData{"NamePref"}" value="$QData{"Data"}"/>
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentSmallPreferencesItemInput -->
<!-- dtl:block:ContentSmallPreferencesItemTextArea -->
                            <label class="DontPrint">$Text{"$Data{"Desc"}"}:</label>
                            <div class="Field DontPrint">
                                <textarea rows="$QData{"Rows"}" cols="$QData{"Cols"}" name="$QData{"NamePref"}">$QData{"Data"}</textarea>
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentSmallPreferencesItemTextArea -->
<!-- dtl:block:ContentSmallPreferencesItem -->
                            <button id="Dashboard$QData{"Name"}_submit" class="button DontPrint" type="submit" value="$Text{"Submit"}">$Text{"Submit"}</button>
                            <button id="Dashboard$QData{"Name"}_cancel" class="button DontPrint" type="submit" value="$Text{"Cancel"}">$Text{"Cancel"}</button>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
Core.Agent.Dashboard.RegisterUpdatePreferences($('#Dashboard$QData{"Name"}_submit'), 'Dashboard$QData{"Name"}', $('#Dashboard$QData{"NameForm"}_setting_form'));
Core.UI.RegisterToggleTwoContainer($('#Dashboard$QData{"Name"}_cancel'), $('#Dashboard$QData{"Name"}-setting'), $('#Dashboard$QData{"Name"}'));
//]]></script>
<!--dtl:js_on_document_complete-->
                        </fieldset>
                    </form>
                </div>
                <div id="Dashboard$QData{"Name"}">
                    $Data{"Content"}
                </div>
<!-- dtl:block:ContentSmallMore -->
                <a href="$Data{"Link"}" title="$Text{"$Data{"LinkTitle"}"}" class="small">$Text{"more"} &#187;</a>
<!-- dtl:block:ContentSmallMore -->
            </div>
        </div>
<!-- dtl:block:ContentSmall -->
    </div>

    <div class="ContentColumn">
<!-- dtl:block:ContentLarge -->
        <div class="WidgetSimple CanDrag" id="Dashboard$QData{"Name"}-box">
            <div class="Header">
                <div class="ActionMenu">
<!-- dtl:block:ContentLargePreferences -->
                    <div class="WidgetAction Settings">
                        <a href="#" id="Dashboard$QData{"Name"}-toggle" title="$Text{"Settings"}"></a>
                    </div>
<!-- dtl:js_on_document_complete -->
<script type="text/javascript">//<![CDATA[
Core.UI.RegisterToggleTwoContainer($('#Dashboard$QData{"Name"}-toggle'), $('#Dashboard$QData{"Name"}-setting'), $('#Dashboard$QData{"Name"}'));
//]]></script>
<!-- dtl:js_on_document_complete -->
<!-- dtl:block:ContentLargePreferences -->
                    <div class="WidgetAction Close">
                        <a href="$Env{"Baselink"}Action=$Env{"Action"};Subaction=UpdateRemove;Name=$LQData{"Name"};$QEnv{"ChallengeTokenParam"}" title="$Text{"Close"}"></a>
                    </div>
                    <div class="Clear"></div>
                </div>
                <h2 title="$Text{"$Data{"Description"}"}">$Text{"$Data{"Title"}"}</h2>
            </div>

            <div class="Content">
                <div id="Dashboard$QData{"Name"}-setting" class="Hidden">
                    <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="Dashboard$QData{"NameForm"}_setting_form" id="Dashboard$QData{"NameForm"}_setting_form">
                        <input type="hidden" name="Action" value="$Env{"Action"}"/>
                        <input type="hidden" name="Subaction" value="UpdatePreferences"/>
                        <input type="hidden" name="Name" value="$QData{"Name"}"/>
                        <fieldset class="TableLike FixedLabelSmall DontPrint">
<!-- dtl:block:ContentLargePreferencesItem -->
<!-- dtl:block:ContentLargePreferencesItemOption -->
                            <label class="DontPrint">$Text{"$Data{"Desc"}"}:</label>
                            <div class="DontPrint Field">
                                $Data{"Option"}
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentLargePreferencesItemOption -->
<!-- dtl:block:ContentLargePreferencesItemInput -->
                            <label class="DontPrint">$Text{"$Data{"Desc"}"}:</label>
                            <div class="Field DontPrint">
                                <input type="text" class="W100pc" name="$QData{"NamePref"}" value="$QData{"Data"}"/>
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentLargePreferencesItemInput -->
<!-- dtl:block:ContentLargePreferencesItemTextArea -->
                            <label class="DontPrint">$Text{"$Data{"Desc"}"}:</label>
                            <div class="Field DontPrint">
                                <textarea rows="$QData{"Rows"}" cols="$Data{"Cols"}" name="$QData{"NamePref"}">$QData{"Data"}</textarea>
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:ContentLargePreferencesItemTextArea -->
<!-- dtl:block:ContentLargePreferencesItem -->
                            <button id="Dashboard$QData{"Name"}_submit" class="button DontPrint" type="submit" value="$Text{"Submit"}">$Text{"Submit"}</button>
                            <button id="Dashboard$QData{"Name"}_cancel" class="button DontPrint" type="submit" value="$Text{"Cancel"}">$Text{"Cancel"}</button>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
Core.Agent.Dashboard.RegisterUpdatePreferences($('#Dashboard$QData{"Name"}_submit'), 'Dashboard$QData{"Name"}',$('#Dashboard$QData{"NameForm"}_setting_form'));
Core.UI.RegisterToggleTwoContainer($('#Dashboard$QData{"Name"}_cancel'), $('#Dashboard$QData{"Name"}-setting'), $('#Dashboard$QData{"Name"}'));
//]]></script>
<!--dtl:js_on_document_complete-->
                        </fieldset>
                    </form>
                </div>

                <div id="Dashboard$QData{"Name"}">
                    $Data{"Content"}
                </div>
<!-- dtl:block:ContentLargeMore -->
                <a href="$Data{"Link"}" title="$Text{"$Data{"LinkTitle"}"}" class="small">$Text{"more"} &#187;</a>
<!-- dtl:block:ContentLargeMore -->
            </div>
        </div>
<!-- dtl:block:ContentLarge -->
    </div>
    <div class="Clear"></div>
</div>
<!-- dtl:block:Content -->
