# --
# AgentPreferences.dtl - provides HTML form for AgentPreferences
# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
# --
# $Id: AgentPreferences.dtl,v 1.9 2011/06/15 09:57:20 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:Body -->
<div class="MainBox ARIARoleMain">
    <h1>$Text{"Edit your preferences"}</h1>

    <div class="LayoutGrid ColumnsWithSpacing">

<!-- dtl:block:Column -->
        <div class="Size1of3">
            <div class="WidgetSimple">
                <div class="Header">
                    <h2>$Text{"$Data{"Header"}"}</h2>
                </div>
                <div class="Content">

<!-- dtl:block:Item -->
                    <form action="$Env{"CGIHandle"}" method="post" class="Validate">
                        <input type="hidden" name="Action" value="$Env{"Action"}"/>
                        <input type="hidden" name="Subaction" value="Update"/>
                        <input type="hidden" name="Group" value="$QData{"Group"}"/>
                        <h3>$Text{"$Data{"Label"}"}</h3>

                        <p class="FieldExplanation">
                            $Text{"$Data{"Desc"}"}
                        </p>
                        <fieldset class="TableLike SpacingBottomMedium">
<!-- dtl:block:Block -->
<!-- dtl:block:InputKey -->
                            <label for="$QData{"Name"}">$Text{"$Data{"Key"}"}:</label>
                            <div class="Field">
                                <input type="text" name="$QData{"Name"}" id="$QData{"Name"}" value="$QData{"SelectedID"}" />
<!-- dtl:block:InputKeySingleBlock -->
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
<!-- dtl:block:InputKeySingleBlock -->
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:InputKey -->
<!-- dtl:block:Input -->
                            <label for="$QData{"Name"}">$Text{"$Data{"Key"}"}:</label>
                            <div class="Field">
                                <input type="text" name="$QData{"Name"}" id="$QData{"Name"}" value="$QData{"SelectedID"}" />
<!-- dtl:block:InputSingleBlock -->
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
<!-- dtl:block:InputSingleBlock -->
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:Input -->
<!-- dtl:block:Option -->
                            <label for="$QData{"Name"}">$Text{"$Data{"Key"}"}:</label>
                            <div class="FloatingField">
                                $Data{"Option"}
<!-- dtl:block:OptionSingleBlock -->
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
<!-- dtl:block:OptionSingleBlock -->
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:Option -->
<!-- dtl:block:Upload -->
                            <label for="$QData{"Name"}">$Text{"$Data{"Key"}"}:</label>
                            <div class="Field">
                                <input name="$QData{"Name"}" id="$QData{"Name"}" type="file" size="20" class="fixed"/>
                                <br/>
                                <a href="">$QData{"Filename"}</a>
<!-- dtl:block:UploadSingleBlock -->
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
<!-- dtl:block:UploadSingleBlock -->
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:Upload -->
<!-- dtl:block:Password -->
                            <label for="$QData{"Name"}">$Text{"$Data{"Key"}"}:</label>
                            <div class="Field">
                                <input name="$QData{"Name"}" id="$QData{"Name"}" type="password"/>
<!-- dtl:block:PasswordSingleBlock -->
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
<!-- dtl:block:PasswordSingleBlock -->
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:Password -->
<!-- dtl:block:OutOfOffice -->
                            <p class="FieldExplanation">$Text{"$Data{"Key"}"}</p>
                            <label>$Text{"Active"}:</label>
                            <div class="Field">
                                <input type="radio" name="OutOfOffice" id="OutOfOfficeOn" value="1" $Data{"OutOfOfficeOn"} />
                                <label for="OutOfOfficeOn">$Text{"On"}</label>
                                <input type="radio" name="OutOfOffice" id="OutOfOfficeOff" value="0" $Data{"OutOfOfficeOff"} />
                                <label for="OutOfOfficeOff">$Text{"Off"}</label>
                            </div>
                            <div class="Clear"></div>
                            <label>$Text{"Start"}:</label>
                            <div class="Field">
                                $Data{"OptionStart"}
                            </div>
                            <div class="Clear"></div>
                            <label>$Text{"End"}:</label>
                            <div class="Field">
                                $Data{"OptionEnd"}
                            </div>
                            <div class="Clear"></div>
<!-- dtl:block:OutOfOfficeSingleBlock -->
                            <div class="Field">
                                <button type="submit" id="$QData{"Name"}Update" value="$Text{"Update"}">$Text{"Update"}</button>
                            </div>
<!-- dtl:block:OutOfOfficeSingleBlock -->
<!-- dtl:block:OutOfOffice -->
<!-- dtl:block:Block -->
<!-- dtl:block:MultipleBlocks -->
                            <div class="Field">
                                <button type="submit" value="$Text{"Update"}">$Text{"Update"}</button>
                            </div>
<!-- dtl:block:MultipleBlocks -->
                        </fieldset>
                    </form>
<!-- dtl:block:Item -->
                </div>
            </div>
        </div>
<!-- dtl:block:Column -->
        <div class="Clear"></div>
    </div>
</div>
<!-- dtl:block:Body -->
