diff options
Diffstat (limited to 'rt/webrt/Admin/Elements/SelectScrip')
-rwxr-xr-x | rt/webrt/Admin/Elements/SelectScrip | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/rt/webrt/Admin/Elements/SelectScrip b/rt/webrt/Admin/Elements/SelectScrip new file mode 100755 index 000000000..4ae15d8c3 --- /dev/null +++ b/rt/webrt/Admin/Elements/SelectScrip @@ -0,0 +1,25 @@ +<SELECT NAME=<%$Name%>> +<OPTION VALUE="" +<% $Default eq undef && 'SELECTED' %> +>-</OPTION> +%while (my $Scrip = $Scrips->Next) { +<OPTION VALUE=<%$Scrip->Id%> +<% $Scrip->Id == $Default && 'SELECTED' %> +><%$Scrip->Name%> +</OPTION> +%} +</SELECT> + +<%INIT> +my $Scrips = RT::Scrips->new($session{'CurrentUser'}); +$Scrips->UnLimit; + + + +</%INIT> +<%ARGS> + +$Default => undef +$Name => 'Scrip' + +</%ARGS> |