%# BEGIN LICENSE BLOCK
%# 
%# Copyright (c) 1996-2003 Jesse Vincent <jesse@bestpractical.com>
%# 
%# (Except where explictly superceded by other copyright notices)
%# 
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
%# been provided with this software, but in any event can be snarfed
%# from www.gnu.org.
%# 
%# This work is distributed in the hope that it will be useful, but
%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%# General Public License for more details.
%# 
%# Unless otherwise specified, all modifications, corrections or
%# extensions to this work which alter its source code become the
%# property of Best Practical Solutions, LLC when submitted for
%# inclusion in the work.
%# 
%# 
%# END LICENSE BLOCK
<TABLE>
  <TR>
      <td class="label"><&|/l&>Subject</&>:</td>
      <td class="value"><input name=Subject value="<%$TicketObj->Subject|h%>" SIZE=50></td>
    </TR>

  <TR>
      <td class="label"><&|/l&>Status</&>:</td>
      <td class="value"><%$SelectStatus|n%></td>
    </TR>
  <TR>
      <td class="label"><&|/l&>Queue</&>:</td>
      <td class="value"><%$SelectQueue|n%></td>
    </TR>
  <TR>
      <td class="label"><&|/l&>Time Estimated</&>:</td>
      <td class="value"><input name=TimeEstimated value="<%$TicketObj->TimeEstimated|h%>" SIZE="5"></td>
    </TR>
  <TR>
      <td class="label"><&|/l&>Time Worked</&>:</td>
      <td class="value"><input name=TimeWorked value="<%$TicketObj->TimeWorked|h%>" SIZE="5"></td>
    </TR>
  <TR>
      <td class="label"><&|/l&>Time Left</&>:</td>
      <td class="value"><input name=TimeLeft value="<%$TicketObj->TimeLeft|h%>" SIZE="5"></td>
    </TR>

  <TR>
      <td class="label"><&|/l&>Priority</&>:</td>
      <td class="value"><input name=Priority value="<%$TicketObj->Priority|h%>" SIZE="5"></td>
    </TR>

  <TR>
      <td class="label"><&|/l&>Final Priority</&>:</td>
      <td class="value"><input name=FinalPriority value="<%$TicketObj->FinalPriority|h%>" SIZE="5"></td>
    </TR>


</TABLE>

<%INIT>
#It's hard to do this inline, so we'll preload the html of the selectstatus in here.
my $SelectStatus = $m->scomp("/Elements/SelectStatus", Name => 'Status', DefaultLabel => loc("[_1] (Unchanged)",$TicketObj->Status));
my $SelectQueue = $m->scomp("/Elements/SelectQueue", Name => 'Queue', Default =>$TicketObj->QueueObj->Id);

</%INIT>
<%ARGS>

$TicketObj => undef
</%ARGS>
