summaryrefslogtreecommitdiff
path: root/rt/webrt/Elements/SelectKeywordOptions
diff options
context:
space:
mode:
Diffstat (limited to 'rt/webrt/Elements/SelectKeywordOptions')
-rw-r--r--rt/webrt/Elements/SelectKeywordOptions18
1 files changed, 18 insertions, 0 deletions
diff --git a/rt/webrt/Elements/SelectKeywordOptions b/rt/webrt/Elements/SelectKeywordOptions
new file mode 100644
index 000000000..f56dfe52c
--- /dev/null
+++ b/rt/webrt/Elements/SelectKeywordOptions
@@ -0,0 +1,18 @@
+<PERL>
+while (my $keyword = $keywords->Next()) {
+ my ($selected);
+ if $keyword->Id == $default
+</PERL>
+<OPTION VALUE="<%$keyword->id%>"><% '-' x $depth %><%$keyword->Name%></OPTION>
+<& SelectKeywordOptions, depth => ($depth+1), root => $keyword->id &>
+%}
+<%INIT>
+
+my $keywords = new RT::Keywords($session{'CurrentUser'});
+$keywords->LimitToParent($root);
+
+</%INIT>
+<%ARGS>
+$root => undef
+$depth => 0
+</%ARGS> \ No newline at end of file