# --
# AgentTicketMerge.dtl - provides HTML form for ticket merge mask
# Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentTicketMerge.dtl,v 1.11 2007/01/09 03:24:16 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

<!-- start form -->
<script language="JavaScript" type="text/javascript">
<!--
function submit_compose() {
    if (document.compose.MainTicketNumber.value == "") {
        alert('$JSText{"You need to use a ticket number!"}');
        document.compose.Subject.focus();
        return false;
    }
    else {
        return true;
    }
}
//-->
</script>

<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"Ticket Merge"}: $QData{"TicketNumber"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td class="menu">
<!-- dtl:block:TicketBack -->
      <a href="$Env{"Baselink"}$Env{"LastScreenView"}" onmouseover="window.status='$JSText{"Back"}'; return true;" onmouseout="window.status='';" class="menuitem">$Text{"Back"}</a>
<!-- dtl:block:TicketBack -->
<!-- dtl:block:PropertiesLock -->
      <img border="0" src="$Env{"Images"}warning.png" alt="$Text{"Info"}">: <font color="red">$Text{"Ticket locked!"}</font> (<a href="$Env{"Baselink"}Action=AgentTicketLock&Subaction=Unlock&TicketID=$Data{"TicketID"}" onmouseover="window.status='$JSText{"Ticket unlock!"}'; return true;" onmouseout="window.status=''; ">$Text{"Ticket unlock!"}</a>)
<!-- dtl:block:PropertiesLock -->
    </td>
  </tr>
  <tr>
    <td class="mainbody">
      <br>
      <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="compose">
        <input type="hidden" name="Action" value="AgentTicketMerge">
        <input type="hidden" name="Subaction" value="Merge">
        <input type="hidden" name="TicketID" value="$Data{"TicketID"}">
        <table border="0" width="800" align="center" cellspacing="0" cellpadding="4">
          <tr>
            <td colspan="2" class="contenthead">$Text{"Options"}</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table border="0">
                <tr>
                  <td class="contentkey">$Text{"Merge to"} $Config{"Ticket::Hook"}:</td>
                  <td class="contentvalue"><input type="text" name="MainTicketNumber" value="$QData{"MainTicketNumber"}" size="30"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Inform sender"}:</td>
                  <td class="contentvalue"><input type="checkbox" name="InformSender" value="1"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"From"}:</td>
                  <td class="contentvalue">$QData{"QueueFrom"}<input type="hidden" name="From" value="$QData{"QueueFrom"}" size="60"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"To"}:</td>
                  <td class="contentvalue"><input type="text" name="To" value="$QData{"From"}" size="60"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Subject"}:</td>
                  <td class="contentvalue"><input type="text" name="Subject" value="$QData{"Subject"}" size="60"></td>
                </tr>
                <tr>
                  <td class="contentkey">$Text{"Text"}:</td>
                  <td class="contentvalue">
                    <textarea name="Body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaEmail"}" wrap="$Env{"BrowserWrap"}">
$Data{"Salutation"}

$Text{"$Config{"Ticket::Frontend::MergeText"}"}

$Data{"Signature"}

                    </textarea>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" accesskey="g" type="submit" value="$Text{"Submit"}" onclick="return submit_compose();">
            </td>
          </tr>
        </table>
      </form>
      <br>
    </td>
  </tr>
</table>
<!-- end form -->
