diff options
| author | cvs2git <cvs2git> | 2002-08-12 06:17:10 +0000 |
|---|---|---|
| committer | cvs2git <cvs2git> | 2002-08-12 06:17:10 +0000 |
| commit | 160be29a0dc62e79a4fb95d2ab8c0c7e5996760e (patch) | |
| tree | 94ebadb17321b138fd7bfd9a5c379eec97c5d328 /rt/webrt/Admin/Queues/Template.html | |
| parent | 3ef62a0570055da710328937e7f65dbb2c027c62 (diff) | |
This commit was manufactured by cvs2svn to create branch 'BESTPRACTICAL'.
Diffstat (limited to 'rt/webrt/Admin/Queues/Template.html')
| -rwxr-xr-x | rt/webrt/Admin/Queues/Template.html | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/rt/webrt/Admin/Queues/Template.html b/rt/webrt/Admin/Queues/Template.html deleted file mode 100755 index 61ee418a6..000000000 --- a/rt/webrt/Admin/Queues/Template.html +++ /dev/null @@ -1,68 +0,0 @@ -<& /Admin/Elements/Header, title => "Modify template ".$TemplateObj->id&> -<& /Admin/Elements/QueueTabs, id => $Queue &> -<& /Elements/ListActions, actions => \@results &> - -<& /Elements/TitleBoxStart, title => $title &> - -<FORM METHOD=POST ACTION="Template.html"> -%if ($create ) { -<INPUT TYPE=HIDDEN NAME=template VALUE="new"> -% } else { -<INPUT TYPE=HIDDEN NAME=template VALUE="<%$TemplateObj->Id%>"> -% } - -%# hang onto the queue id -<INPUT TYPE=HIDDEN name="Queue" value="<%$Queue%>"> - - -Name: <input name="Name" VALUE="<%$TemplateObj->Name%>" SIZE=20><BR> -Description: <input name="Description" VALUE="<%$TemplateObj->Description%>" SIZE=80><BR> - -<TEXTAREA NAME=Content ROWS=25 COLS=80 WRAP=SOFT> -<%$TemplateObj->Content%></TEXTAREA> - -<& /Elements/TitleBoxEnd&> -<&/Elements/Submit&> -</FORM> - - - -<%INIT> - -my $TemplateObj = new RT::Template($session{'CurrentUser'}); -my ($title, @results); - -if ($create) { - $title = "Create a template"; -} - -else { - if ($template eq 'new') { - my ($val, $msg) = $TemplateObj->Create(Queue => $Queue, Name => $Name); - Abort("Could not create template: $msg") unless ($val); - push @results, $msg; - $title = 'Created template ' . $TemplateObj->Name(); - } - else { - $TemplateObj->Load($template) || Abort('No Template'); - $title = 'Editing template ' . $TemplateObj->Name(); - } - - -} -if ($TemplateObj->Id()) { - $Queue = $TemplateObj->Queue; - - my @attribs = qw( Description Content Queue Name); - my @aresults = UpdateRecordObject( AttributesRef => \@attribs, - Object => $TemplateObj, - ARGSRef => \%ARGS); - push @results, @aresults; -} -</%INIT> -<%ARGS> -$Queue => undef -$template => undef -$create => undef -$Name => undef -</%ARGS> |
