diff options
Diffstat (limited to 'rt/webrt/SelfService/Elements')
-rwxr-xr-x | rt/webrt/SelfService/Elements/GotoTicket | 1 | ||||
-rwxr-xr-x | rt/webrt/SelfService/Elements/Header | 55 | ||||
-rw-r--r-- | rt/webrt/SelfService/Elements/MyRequests | 41 | ||||
-rw-r--r-- | rt/webrt/SelfService/Elements/Tabs | 49 |
4 files changed, 0 insertions, 146 deletions
diff --git a/rt/webrt/SelfService/Elements/GotoTicket b/rt/webrt/SelfService/Elements/GotoTicket deleted file mode 100755 index 0c0c8b67a..000000000 --- a/rt/webrt/SelfService/Elements/GotoTicket +++ /dev/null @@ -1 +0,0 @@ -<FORM ACTION="<%$RT::WebPath%>/SelfService/Display.html"><input type=submit value="Goto ticket"> <input size=4 name=id></FORM> diff --git a/rt/webrt/SelfService/Elements/Header b/rt/webrt/SelfService/Elements/Header deleted file mode 100755 index ecf58f461..000000000 --- a/rt/webrt/SelfService/Elements/Header +++ /dev/null @@ -1,55 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" - "http://www.w3.org/TR/REC-html40/loose.dtd"> -<HTML> -<HEAD> -<TITLE><%$Title%></TITLE> -% if ($Code) { -<META NAME="HTTP-EQUIV" VALUE="<%$Code%> <%$Why%>"> -% } - -<link rel="stylesheet" href="<%$RT::WebPath%>/NoAuth/webrt.css" type="text/css"> -</HEAD> -<BODY BGCOLOR="<%$BgColor%>"> -<TABLE BORDER=0 WIDTH=100% CELLSPACING=0 BGCOLOR="#993333"> -<TR VALIGN=TOP> -<TD WIDTH=32> - <IMG SRC="<%$RT::LogoURL%>" alt="RT"> -</TD> -<TD VALIGN=CENTER ALIGN=LEFT> -<font size=+2 color=#ffffff> -<B> -<%$Title%> -</B> -</font> -</TD> -<TD ALIGN=RIGHT> -<font color="#ffffff"> -% if ($session{'CurrentUser'} ) { -Signed in as <b><%$session{'CurrentUser'}->Name%></b>.<BR> -% if ($session{'CurrentUser'}->HasSystemRight('ModifySelf')) { -[<A class='inverse' HREF="<%$RT::WebPath%>/SelfService/Prefs.html" >Preferences</A>] -% } -% unless ($RT::WebExternalAuth) { - [<A class='inverse' HREF="<%$RT::WebPath%>/NoAuth/Logout.html">Logout</a>] -% } -% } else { -Not logged in. -% } -</font> -</TD> -</TR> -</TABLE> - -<BR> -<& /SelfService/Elements/Tabs &> - -<%ARGS> -$Title => '' -$Code => undef -$Why => undef -$BgColor => '#ffffff' -</%ARGS> -<%INIT> -$Title = "RT/$RT::rtname: ".$Title; -</%INIT> - diff --git a/rt/webrt/SelfService/Elements/MyRequests b/rt/webrt/SelfService/Elements/MyRequests deleted file mode 100644 index ce268d58d..000000000 --- a/rt/webrt/SelfService/Elements/MyRequests +++ /dev/null @@ -1,41 +0,0 @@ -<& /Elements/TitleBoxStart, title => "Your $friendly_status requests" &> -<TABLE BORDER=0 cellspacing=1 cellpadding=1 BGCOLOR="#eeeeee" WIDTH=100%> -<TR> -<TH>Subject</TH> -<TH>Status</TH> -<TH>Owner</TH> -<TH> </TH> -</TR> -<TR> -% while (my $Ticket = $MyTickets->Next) { -<TR> -<TD> -<%$Ticket->Id%>: <%$Ticket->Subject%> -</TD> -<TD> -<%$Ticket->Status%> -</TD><TD> -<%$Ticket->OwnerObj->Name%> -</TD><TD ALIGN=RIGHT> -[<A HREF="<% $RT::WebPath %>/SelfService/Display.html?id=<%$Ticket->Id%>">Details</A>] -</TD> -</TR> -% } -</TABLE> -<& /Elements/TitleBoxEnd &> - - -<%INIT> -my $MyTickets; -$MyTickets = new RT::Tickets ($session{'CurrentUser'}); -$MyTickets->LimitRequestor(VALUE => $session{'CurrentUser'}->EmailAddress); - -foreach my $status (@status) { - - $MyTickets->LimitStatus(VALUE => $status); -} -</%INIT> -<%ARGS> -$friendly_status => 'open' -@status => ('open', 'new', 'stalled') -</%ARGS> diff --git a/rt/webrt/SelfService/Elements/Tabs b/rt/webrt/SelfService/Elements/Tabs deleted file mode 100644 index d689d8a72..000000000 --- a/rt/webrt/SelfService/Elements/Tabs +++ /dev/null @@ -1,49 +0,0 @@ -<TABLE WIDTH=100%> -<TR> -% foreach $tab (sort keys %{$tabs}) { -<TD ALIGN=CENTER> -[<A HREF="<%$RT::WebPath%>/<% $tabs->{"$tab"}->{'path'}%>"><% $tabs->{"$tab"}->{'title'}%></A>] -</TD> -%} - -% if ($actions) { - -<TD ALIGN=RIGHT> -<TABLE><TR> -% foreach my $action (sort keys %{$actions}) { -<TD> -<FONT SIZE=-1> -% if ($actions->{"$action"}->{'html'}) { -<%$actions->{"$action"}->{'html'} |n%> -% } else { -<A HREF="<%$RT::WebPath%>/<% $actions->{$action}->{'path'}%>"><% $actions->{$action}->{'title'}%></A> -% } -</FONT> -</TD> -% } -</TR> -</TABLE> -</TD> -%} -</TR> -</TABLE> -<hr> -<%INIT> -my ($tab); -my $tabs = { A => { title => 'Open requests', - path => 'SelfService/', - }, - B => { title => 'Closed requests', - path => 'SelfService/Closed.html', - }, - C => { title => 'New request', - path => 'SelfService/Create.html' - } - }; -my $actions = { - B => { html => $m->scomp('GotoTicket') - } - }; -</%INIT> - - |