%# 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
<& Elements/Header, Title => loc("Create a ticket") &>
<FORM ACTION="<%$RT::WebPath%>/SelfService/ConfirmNewTicket.html" METHOD="POST" ENCTYPE="multipart/form-data">
<INPUT TYPE=HIDDEN Name="id" VALUE="new">
<TABLE>
<TR>
<TD class=label><&|/l&>Queue</&>:</TD>
<TD class=value>
<% $QueueObj->Name %>
<INPUT TYPE=HIDDEN NAME=Queue Value="<%$QueueObj->Name%>">
<INPUT TYPE=HIDDEN NAME=Status Value="new">
</TD>
</TR>
<TR>
<TD>
<&|/l&>Requestors</&>:
</TD>
<TD>
<INPUT Name="Requestors" Value="<%$session{CurrentUser}->EmailAddress%>" SIZE=20>
</TD>
</TR>
<TR>
<TD>
<&|/l&>Cc</&>:
</TD>
<TD>
<INPUT NAME="Cc" SIZE=20>
</TD>
</TR>
<TR>
<TD>
<&|/l&>Subject</&>:
</TD>
<TD>
<INPUT Name="Subject" SIZE=60 MAXSIZE=100 value="">
</TD>
</TR>
<TR>
<TD COLSPAN=6>
<& /Ticket/Elements/EditCustomFields, QueueObj => $QueueObj &>
</TD>
</TR>
<TR>
<TD>
<&|/l&>Attach file</&>:
</TD>
<TD>
<INPUT Name="Attach" type=file>
</TD>
</TR>
<TR>
<TD COLSPAN=2>
<&|/l&>Describe the issue below</&>:<br>
<& /Elements/MessageBox &>
</TD>
</TR>
</TABLE>
<& /Elements/Submit, Label => loc("Create ticket")&>
</FORM>
<%INIT>
my $QueueObj = new RT::Queue($session{'CurrentUser'});
$QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
my $CFs = $QueueObj->CustomFields();
</%INIT>
<%ARGS>
$Queue => undef
</%ARGS>