This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / rt / share / html / index.html
1 <!DOCTYPE html 
2      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <!--
5 % $m->out('--'.'>');
6 % $m->comp('/Elements/Header', Title=>loc("RT at a glance"), Refresh => $session{'home_refresh_interval'}||RT->Config->Get('HomePageRefreshInterval', $session{'CurrentUser'} ));
7 % if (0) {
8 %# -->
9 <html><head>
10 <meta http-equiv="refresh" content="30; url=http://bestpractical.com/rt/rt-broken-install.html">
11 <title>Almost there!</title></head>
12 <body>
13
14 <img src="http://www.bestpractical.com/images/unconfigured-rtlogo.jpg" />
15 <br /><br />
16 <h1>You're almost there!</h1>
17 You haven't yet configured your webserver to run RT.
18
19 You appear to have installed RT's web interface correctly, but haven't yet configured your web
20 server to "run" the RT server which powers the web interface.
21
22 The next step is to edit your webserver's configuration file to instruct it to use
23 RT's <strong>mod_perl</strong>, <strong>FastCGI</strong> or <strong>SpeedyCGI</strong> handler.
24
25 If you need commercial support, please contact us at sales@bestpractical.com.
26
27
28 <!--
29 % }
30
31 %# BEGIN BPS TAGGED BLOCK {{{
32 %#
33 %# COPYRIGHT:
34 %#
35 %# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
36 %#                                          <sales@bestpractical.com>
37 %#
38 %# (Except where explicitly superseded by other copyright notices)
39 %#
40 %#
41 %# LICENSE:
42 %#
43 %# This work is made available to you under the terms of Version 2 of
44 %# the GNU General Public License. A copy of that license should have
45 %# been provided with this software, but in any event can be snarfed
46 %# from www.gnu.org.
47 %#
48 %# This work is distributed in the hope that it will be useful, but
49 %# WITHOUT ANY WARRANTY; without even the implied warranty of
50 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
51 %# General Public License for more details.
52 %#
53 %# You should have received a copy of the GNU General Public License
54 %# along with this program; if not, write to the Free Software
55 %# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
56 %# 02110-1301 or visit their web page on the internet at
57 %# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
58 %#
59 %#
60 %# CONTRIBUTION SUBMISSION POLICY:
61 %#
62 %# (The following paragraph is not intended to limit the rights granted
63 %# to you to modify and distribute this software under the terms of
64 %# the GNU General Public License and is only of importance to you if
65 %# you choose to contribute your changes and enhancements to the
66 %# community by submitting them to Best Practical Solutions, LLC.)
67 %#
68 %# By intentionally submitting any modifications, corrections or
69 %# derivatives to this work, or any other work intended for use with
70 %# Request Tracker, to Best Practical Solutions, LLC, you confirm that
71 %# you are the copyright holder for those contributions and you grant
72 %# Best Practical Solutions,  LLC a nonexclusive, worldwide, irrevocable,
73 %# royalty-free, perpetual, license to use, copy, create derivative
74 %# works based on those contributions, and sublicense and distribute
75 %# those contributions and any derivatives thereof.
76 %#
77 %# END BPS TAGGED BLOCK }}}
78 <& /Elements/Tabs, 
79     Title          => loc("RT at a glance"),
80     current_tab    => 'index.html',
81     current_toptab => 'index.html',
82     tabs           => $tabs,
83     actions        => $actions,
84     &>
85 <& /Elements/ListActions, actions => \@results &>    
86 <& /Elements/MyRT &>
87 <%init>
88
89 my @results;
90 my $skip_create = 0;
91
92 $m->callback( ARGSRef => \%ARGS, results => \@results, CallbackName => 'Initial', 
93               skip_create => \$skip_create );
94
95 if ( $ARGS{'QuickCreate'} ) {
96     my $QueueObj = new RT::Queue($session{'CurrentUser'});
97     $QueueObj->Load($ARGS{Queue}) or Abort(loc("Queue could not be loaded."));
98     
99     my $CFs = $QueueObj->TicketCustomFields();
100     
101     my $ValidCFs = $m->comp(
102         '/Elements/ValidateCustomFields',
103         CustomFields => $CFs,
104         ARGSRef => \%ARGS
105     );
106
107
108     if ( $ValidCFs && !$skip_create ) {
109         my ($t, $msg) = CreateTicket( 
110                         Queue => $ARGS{'Queue'},
111                         Owner => $ARGS{'Owner'},
112                         Status => $ARGS{'Status'}||'new',
113                         # yes! it's Requestors, not Requestor
114                         Requestors => $ARGS{'Requestors'},
115                         From => $session{'CurrentUser'}->EmailAddress,
116                         Content => $ARGS{'Content'},
117                         Subject => $ARGS{'Subject'});
118         if ( $t && $t->Id && RT->Config->Get('DisplayAfterQuickCreate', $session{'CurrentUser'}) ) {
119           RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Ticket/Display.html?id=". $t->Id);
120         } else {
121           push @results, $msg;
122         }
123     }
124     elsif ( !$ValidCFs ) {
125         push @results, "can't quickly create ticket in queue " .
126             $QueueObj->Name . ' because some custom fields need to be set, please go to normal ticket creation page to do that.';
127     }
128 }
129
130
131 if ( $ARGS{'q'} ) {
132     RT::Interface::Web::Redirect(RT->Config->Get('WebURL')."Search/Simple.html?q=".$m->interp->apply_escapes($ARGS{q}));
133 }
134
135 my $actions;
136 if ($session{'CurrentUser'}->HasRight(Right => 'ModifySelf', Object => $RT::System)) {
137     $actions = {
138         A => { title => loc('Edit'),
139                path  => 'Prefs/MyRT.html',
140              },
141     };
142 }
143
144 my $tabs = $m->comp("/Elements/DashboardTabs");
145 </%init>
146
147 %# --></body></html>