# --
# AgentSpelling.dtl - provides HTML form for AgentSpelling
# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
# --
# $Id: AgentSpelling.dtl,v 1.35 2010-10-06 13:54:30 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:SpellCheckerExtern -->
<div class="LayoutPopup">
    <div class="Content">
        <h1>$Text{"Spell Checker"}</h1>
        <h2>$QData{"SpellCounter"} $Text{"spelling error(s)"}</h2>
        <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="spelling">
            <input type="hidden" name="Action" value="AgentSpelling"/>
            <input type="hidden" name="Field" id="Field" value="$QData{"Field"}"/>
            <fieldset>
                $Text{"Language"}: $Data{"SpellLanguageString"}
            </fieldset>
            <table id="SpellCheck" class="DataTable">
                <thead>
                    <tr>
                        <th>$Text{"Line"}</th>
                        <th>$Text{"Word"}</th>
                        <th colspan="2">$Text{"replace with"}</th>
                        <th>$Text{"Change"}</th>
                        <th>$Text{"Ignore"}</th>
                    </tr>
                </thead>
                <tbody>
<!-- dtl:block:Row -->
                    <tr id="Row$QData{"Count"}">
                        <td align="center">$QData{"Line"}</td>
                        <td>
                            <strong>$QData{"Word"}</strong>
                            <input type="hidden" name="SpellCheckOld::$QData{"Count"}" value="$QData{"Word"}"/>
                        </td>
                        <td>$Data{"OptionList"}</td>
                        <td>
                            $Text{"or"}
                            <input type="text" name="SpellCheckOrReplace::$QData{"Count"}" value="" size="20" />
                        </td>
                        <td class="Center">
                            <input type="radio" id="ChangeWord$QData{"Count"}" name="SpellCheck::Replace::$QData{"Count"}" value="$QData{"Word"}" />
                        </td>
                        <td class="Center">
                            <input type="radio" id="IgnoreWord$QData{"Count"}" name="SpellCheck::Replace::$QData{"Count"}" value="" checked="checked" />
                        </td>
                    </tr>
<!-- dtl:block:Row -->
                </tbody>
            </table>
            <fieldset class="SpacingTop">
                <button type="submit" value="$Text{"Apply these changes"}">$Text{"Apply these changes"}</button>
            </fieldset>
            <fieldset class="SpacingTop">
                <textarea id="Body" name="Body" rows="22" cols="78">$QData{"Body"}</textarea>
            </fieldset>
            <fieldset class="SpacingTop">
                <button type="button" id="Apply" value="$Text{"Done"}">$Text{"Done"}</button>
                <button type="button" id="Cancel" value="$Text{"Cancel"}">$Text{"Cancel"}</button>
            </fieldset>
        </form>
    </div>
</div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    Core.Agent.TicketAction.InitSpellCheck();
//]]></script>
<!--dtl:js_on_document_complete-->
<!-- dtl:block:SpellCheckerExtern -->
