summaryrefslogtreecommitdiff
path: root/rt/share/html/m/ticket/select_create_queue
diff options
context:
space:
mode:
authormark <mark>2011-04-27 08:31:03 +0000
committermark <mark>2011-04-27 08:31:03 +0000
commit68fcc90d8e95f1efe0efe07b2f59e5fab2d8c535 (patch)
tree77e67410169c23cfa4499d9bbf779b0005a045fd /rt/share/html/m/ticket/select_create_queue
parent9d5ada5763fdeca4f90a7357ab7c384b52c1c41c (diff)
RT mobile UI, #11630
Diffstat (limited to 'rt/share/html/m/ticket/select_create_queue')
-rw-r--r--rt/share/html/m/ticket/select_create_queue18
1 files changed, 18 insertions, 0 deletions
diff --git a/rt/share/html/m/ticket/select_create_queue b/rt/share/html/m/ticket/select_create_queue
new file mode 100644
index 000000000..88cf2033b
--- /dev/null
+++ b/rt/share/html/m/ticket/select_create_queue
@@ -0,0 +1,18 @@
+<%init>
+my $queues = RT::Queues->new($session{'CurrentUser'});
+$queues->UnLimit();
+
+</%init>
+<&| /m/_elements/wrapper, title => loc("Create a ticket") &>
+<div class="select_queue">
+<&|/Widgets/TitleBox, title => loc("Select a queue") &>
+<ul class="menu">
+% while (my $q = $queues->Next()) {
+% next if (! $q->CurrentUserHasRight('CreateTicket'));
+<li><a href="<%RT->Config->Get('WebPath')%>/m/ticket/create?Queue=<%$q->id%>"><%$q->Name%></a></li>
+% }
+</ul>
+</&>
+</div>
+</&>
+