summaryrefslogtreecommitdiff
path: root/rt/html/Ticket/Elements/EditBasics
blob: 5d66b1fc12ce8be41d1c18ca17e9f30532e2f860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
%# 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>
    <table>
      <td class="label"><&|/l&>Subject</&>:</td>
      <td class="value">
        <input name=Subject value="<%$TicketObj->Subject|h%>" SIZE=50>
      </td>
    </table>
  </td></TR>
  <TR><td>
    <table>
      <TD>
        <& /Elements/ShadedBox, 
            title => loc('Status'),
            content => $SelectStatus &>
      </TD>
      <TD>
        <& /Elements/ShadedBox,
	    title => loc('Time Worked'),
	    content => "<input name=TimeWorked value=\"".$TicketObj->TimeWorked."\" SIZE=5>" &>
      </TD>
      <TD>
        <& /Elements/ShadedBox,
	    title => loc('Time Left'),
	    content => "<input name=TimeLeft value=\"".$TicketObj->TimeLeft."\" SIZE=5>" 
&>
      </TD>
      <TD>
        <& /Elements/ShadedBox,
	    title => loc('Priority'),
	    content => "<input name=Priority value=\"".$TicketObj->Priority."\" SIZE=3>" &>
      </TD>
      <TD>
        <& /Elements/ShadedBox,
	    title => loc('Final Priority'),
	    content => "<input name=FinalPriority value=\"".$TicketObj->FinalPriority."\" SIZE=3>" &>
      </TD>
      <TD>
        <& /Elements/ShadedBox,
            title => loc('Queue'),
            content => "$SelectQueue" &>
      </TD>
    </table>
  </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', Default=> $TicketObj->Status);
my $SelectQueue = $m->scomp("/Elements/SelectQueue", Name => 'Queue', Default =>$TicketObj->QueueObj->Id);

</%INIT>
<%ARGS>

$TicketObj => undef
</%ARGS>