summaryrefslogtreecommitdiff
path: root/rt/webrt/Admin/Queues/index.html
blob: 52dfb73c817739bad1050d71b8b9ba15a8431151 (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
<& /Admin/Elements/Header, Title => 'Admin queues' &>
<& /Admin/Elements/Tabs, current_tab => 'Admin/Queues/' &>


<& /Elements/TitleBoxStart, title => 'Select a queue' &>

<TABLE>
<TR>
<TD VALIGN=TOP>

<FORM METHOD=POST ACTION="<% $RT::WebPath %>/Admin/Queues/">

<input type="checkbox" name="FindDisabledQueues"> Include disabled queues in listing.
<BR>
<div align=right><input type=submit value="Go!"></div> 
</FORM>
</TD>
<TD VALIGN=TOP>
<UL>
% if ($session{'CurrentUser'}->HasSystemRight('AdminQueue')) {
<LI><A HREF="<%$RT::WebPath%>/Admin/Queues/Modify.html?Create=1">Create a new queue</A><BR><BR></LI>
</UL>
% }

<%$caption%><BR>
<UL>
%if ($queues->Count == 0) {
<LI> <i>No queues matching search criteria found.</i>
% }
%while ( $queue = $queues->Next) {
<LI><A HREF="Modify.html?id=<%$queue->id%>"><%$queue->Name%></a></LI>
%}

</UL>
</TD>
</TR>
</TABLE>
<& /Elements/TitleBoxEnd &>

<%INIT>
my ($queue, $caption);
my $queues = new RT::Queues($session{'CurrentUser'});
$queues->UnLimit();

if ($FindDisabledQueues) {
	$queues->{'find_disabled_rows'} = 1;
}

</%INIT>
<%ARGS>
$FindDisabledQueues => 0
</%ARGS>