diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-07-18 19:29:59 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-23 21:15:28 -0500 |
commit | a5a3313d158c6584d84fc09f473042028230fe00 (patch) | |
tree | eaf99475eaedac4222992dba8bd2453b3ab748d0 /httemplate/elements/select-rt-queue.html | |
parent | 3f9532d7ae26b995d2292568801122050dc4b989 (diff) |
RT#38973: Bill for time worked on ticket resolution [fully functional, v3 reconcile]
Diffstat (limited to 'httemplate/elements/select-rt-queue.html')
-rw-r--r-- | httemplate/elements/select-rt-queue.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/httemplate/elements/select-rt-queue.html b/httemplate/elements/select-rt-queue.html new file mode 100644 index 000000000..4ae8bc942 --- /dev/null +++ b/httemplate/elements/select-rt-queue.html @@ -0,0 +1,24 @@ +<SELECT NAME="<% $opt{'name'} %>"<% $opt{'multiple'} ? ' MULTIPLE' : '' %>> +% while ( @fields ) { +% my $value = shift @fields; +% my $label = shift @fields; +<OPTION VALUE="<% $value %>"<% $curr_value{$value} ? ' SELECTED' : '' %>><% $label %></OPTION> +% } +</SELECT> +<%init> +my %opt = @_; + +my %curr_value = map { $_ => 1 } split(', ',$opt{'curr_value'}); + +my @fields; +push @fields, '', $opt{empty_label} if exists($opt{empty_label}); + +my $conf = new FS::Conf; + +if ($conf->config('ticket_system') eq 'RT_Internal') { + + push @fields, FS::TicketSystem->queues(); + +} + +</%init> |