# --
# AgentTicketBounce.dtl - provides HTML form for bounce mask
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentTicketBounce.dtl,v 1.52 2012-02-14 08:28:08 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.
# --

<!-- start bounce form -->
<form action="$Env{"CGIHandle"}" method="post" name="bounce" class="Validate">
    <input type="hidden" name="Action"     value="$Env{"Action"}"/>
    <input type="hidden" name="Subaction"  value="Store"/>
    <input type="hidden" name="QueueID"    value="$QData{"QueueID"}"/>
    <input type="hidden" name="TicketID"   value="$QData{"TicketID"}"/>
    <input type="hidden" name="ArticleID"  value="$QData{"ArticleID"}"/>
    <input type="hidden" name="NextScreen" value="$QData{"NextScreen"}"/>

    <div class="LayoutPopup ARIARoleMain">

        <div class="Header">
            <h1>$Text{"Bounce Ticket"}: $QData{"TicketNumber"} - $QData{"Title","60"}</h1>

<!-- dtl:block:TicketBack -->
            <p>
                <a class="CancelClosePopup" href="#">$Text{"Cancel & close window"}</a>
            </p>
<!-- dtl:block:TicketBack -->
<!-- dtl:block:PropertiesLock -->
            <p>
                $Text{"The ticket has been locked"}.
                <a class="UndoClosePopup" href="$Env{"Baselink"}Action=AgentTicketLock;Subaction=Unlock;TicketID=$Data{"TicketID"};$QEnv{"ChallengeTokenParam"}">
                    $Text{"Undo & close window"}
                </a>
            </p>
<!-- dtl:block:PropertiesLock -->

        </div>

        <div class="Content">

            <div class="Header">
                <h2>$Text{"Options"}</h2>
            </div>

            <fieldset class="TableLike FixedLabel">
                <label for="BounceTo">$Text{"Bounce to"}:</label>
                <div class="Field">
                    <input type="text" name="BounceTo" id="BounceTo" value="" class="W50pc Validate_Required $QData{"BounceToInvalid"}"/>
                    <div id="BounceToError" class="TooltipErrorMessage" ><p>$Text{"You need a email address."}</p></div>
                    <div id="BounceToServerError" class="TooltipErrorMessage"><p>$Text{"Need a valid email address or don't use a local email address."}</p></div>
                </div>
                <div class="Clear"></div>

                <label for="BounceStateID">$Text{"Next ticket state"}:</label>
                <div class="Field">
                    $Data{"NextStatesStrg"}
                </div>
                <div class="Clear"></div>

                <label for="InformSender">$Text{"Inform sender"}:</label>
                <div class="Field">
                    <input type="checkbox" name="InformSender" id="InformSender" value="1"/>
                </div>
                <div class="Clear"></div>

                <label>$Text{"From"}:</label>
                <div class="Field">
                    <input type="hidden" name="From" value="$QData{"From"}"/>
                    $QData{"From"}
                </div>
                <div class="Clear"></div>

                <label for="To">$Text{"To"}:</label>
                <div class="Field">
                    <input type="text" name="To" id="To" value="$QData{"To"}" class="W50pc Validate_Required $QData{"ToInvalid"}"/>
                    <div id="ToError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
                    <div id="ToServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                </div>
                <div class="Clear"></div>

                <label for="Subject">$Text{"Subject"}:</label>
                <div class="Field">
                    <input type="text" name="Subject" id="Subject" value="$QData{"Subject"}" class="W50pc Validate_Required $QData{"SubjectInvalid"}"/>
                    <div id="SubjectError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
                    <div id="SubjectServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                </div>
                <div class="Clear"></div>

                <label for="RichText">$Text{"Text"}:</label>
                <div class="RichTextField">
<!-- dtl:block:RichText -->
$Include{"RichTextEditor"}
<!-- dtl:block:RichText -->
                    <textarea id="RichText" class="RichText Validate_Required $QData{"BodyInvalid"}" name="Body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaEmail"}">$Data{"InformationFormat"}</textarea>
                    <div id="RichTextError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                    <div id="RichTextServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                </div>
                <div class="Clear"></div>

            </fieldset>
        </div>
        <div class="Footer">
            <button class="Primary" id="submitRichText" accesskey="g" title="$Text{"Send mail!"} (g)" type="submit" value="$Text{"Send mail!"}">$Text{"Send mail!"}</button>
        </div>
    </div>
</form>
<!-- end bounce form -->
