[freeside-commits] branch FREESIDE_3_BRANCH updated. d36faae4e6fe7d4dad126dbe9875ba43b05a5ba4
Ivan
ivan at 420.am
Wed Apr 9 13:25:43 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via d36faae4e6fe7d4dad126dbe9875ba43b05a5ba4 (commit)
from 16055ddbd7cf41399df4a24a337584225c34c91b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d36faae4e6fe7d4dad126dbe9875ba43b05a5ba4
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Apr 9 13:25:42 2014 -0700
installers, RT#16584
diff --git a/httemplate/elements/select-ticketing_queueid.html b/httemplate/elements/select-ticketing_queueid.html
new file mode 100644
index 0000000..540b38d
--- /dev/null
+++ b/httemplate/elements/select-ticketing_queueid.html
@@ -0,0 +1,33 @@
+<SELECT NAME="ticketing_queueid">
+
+ <OPTION VALUE="" <% ! $opt{curr_value} ? 'SELECTED' : '' %>><% $opt{empty_label} %>
+
+% foreach my $queueid ( sort { $a <=> $b } keys %queues ) {
+ <OPTION VALUE="<% $queueid %>" <% $opt{curr_value} == $queueid ? ' SELECTED' : '' %>><% $queueid %>: <% $queues{$queueid} %>
+% }
+
+% while ( @post_options ) {
+% my $post_opt = shift(@post_options);
+% my $post_label = shift(@post_options);
+% my $selected = ( $opt{curr_value} eq $post_opt );
+ <OPTION VALUE="<% $post_opt %>"
+ <% $selected ? 'SELECTED' : '' %>
+ ><% $post_label %>
+% }
+
+</SELECT>
+
+<%init>
+
+my %opt = @_;
+
+my $conf = new FS::Conf;
+
+my %queues = ();
+if ( $conf->config('ticket_system') ) {
+ %queues = FS::TicketSystem->queues();
+}
+
+my @post_options = $opt{post_options} ? @{ $opt{post_options} } : ();
+
+</%init>
diff --git a/httemplate/elements/tr-select-ticketing_queueid.html b/httemplate/elements/tr-select-ticketing_queueid.html
new file mode 100644
index 0000000..cfa4cf3
--- /dev/null
+++ b/httemplate/elements/tr-select-ticketing_queueid.html
@@ -0,0 +1,11 @@
+<TR>
+ <TD ALIGN="right"><% $opt{'label'} || 'Ticketing queue' %></TD>
+ <TD>
+ <% include( '/elements/select-ticketing_queueid.html', %opt ) %>
+ </TD>
+</TR>
+<%init>
+
+my %opt = @_;
+
+</%init>
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/select-ticketing_queueid.html | 33 ++++++++++++++++++++
.../elements/tr-select-ticketing_queueid.html | 11 ++++++
2 files changed, 44 insertions(+), 0 deletions(-)
create mode 100644 httemplate/elements/select-ticketing_queueid.html
create mode 100644 httemplate/elements/tr-select-ticketing_queueid.html
More information about the freeside-commits
mailing list