[rt-commit] [svn] r498 - in rt/branches/rt-3.1/html: Elements Tools
Tools/Elements
leira at fsck.com
leira at fsck.com
Mon Mar 8 00:26:38 EST 2004
Author: leira
Date: Mon Mar 8 00:26:38 2004
New Revision: 498
Added:
rt/branches/rt-3.1/html/Tools/Elements/
rt/branches/rt-3.1/html/Tools/Elements/Tabs
rt/branches/rt-3.1/html/Tools/Offline.html
Modified:
rt/branches/rt-3.1/html/Elements/Tabs
Log:
Offline ticket creation.
Modified: rt/branches/rt-3.1/html/Elements/Tabs
==============================================================================
--- rt/branches/rt-3.1/html/Elements/Tabs (original)
+++ rt/branches/rt-3.1/html/Elements/Tabs Mon Mar 8 00:26:38 2004
@@ -46,6 +46,9 @@
B => { title => loc('Tickets'),
path => 'Search/Build.html'
},
+ C => { title => loc('Tools'),
+ path => 'Tools/Offline.html'
+ },
E => { title => loc('Configuration'),
path => 'Admin/'
},
Added: rt/branches/rt-3.1/html/Tools/Elements/Tabs
==============================================================================
--- (empty file)
+++ rt/branches/rt-3.1/html/Tools/Elements/Tabs Mon Mar 8 00:26:38 2004
@@ -0,0 +1,50 @@
+%# BEGIN LICENSE BLOCK
+%#
+%# Copyright (c) 1996-2003 Jesse Vincent <jesse at 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/Tabs,
+ tabs => $tabs,
+ current_toptab => 'Tools/Offline.html',
+ current_tab => $current_tab,
+ Title => $Title &>
+
+<%INIT>
+ my $tabs = { a => { title => loc('Offline'),
+ path => 'Tools/Offline.html',
+ },
+ };
+
+ foreach my $tab (sort keys %{$tabs}) {
+ if ($tabs->{$tab}->{'path'} eq $current_tab) {
+ $tabs->{$tab}->{"subtabs"} = $subtabs;
+ $tabs->{$tab}->{"current_subtab"} = $current_subtab;
+ }
+ }
+</%INIT>
+
+
+<%ARGS>
+$subtabs => undef
+$current_tab => undef
+$current_subtab => undef
+$Title => undef
+</%ARGS>
Added: rt/branches/rt-3.1/html/Tools/Offline.html
==============================================================================
--- (empty file)
+++ rt/branches/rt-3.1/html/Tools/Offline.html Mon Mar 8 00:26:38 2004
@@ -0,0 +1,71 @@
+%# BEGIN LICENSE BLOCK
+%#
+%# Copyright (c) 1996-2003 Jesse Vincent <jesse at 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("Offline upload") &>
+<& /Elements/Tabs,
+ current_toptab => "Ticket/Create.html",
+ Title => loc("Create a new ticket") &>
+
+<& /Elements/ListActions, actions => \@results &>
+
+<FORM>
+<textarea name=string cols=90 rows=30>
+<%$string%>
+</textarea>
+<& /Elements/Submit, Label => loc('Upload'), Caption => loc("Upload your changes"), color => "#993333" &>
+
+</FORM>
+
+<%INIT>
+
+my @results;
+if ($ARGS{'string'}) {
+ use RT::Action::CreateTickets;
+ my $action = new RT::Action::CreateTickets;
+ $action->Parse($ARGS{string});
+ $action->CreateByTemplate();
+ $action->UpdateByTemplate();
+}
+
+my $string = qq[===Create-Ticket: ticket1
+Queue: General
+Subject: <subject here>
+Status: new
+Content: <content here>
+ENDOFCONTENT
+Due:
+Starts:
+Started:
+Resolved:
+Owner:
+Requestor:
+Cc:
+AdminCc:
+TimeWorked:
+TimeEstimated:
+TimeLeft:
+InitialPriority:
+FinalPriority:
+];
+
+</%INIT>
More information about the Rt-commit
mailing list