[freeside-commits] branch FREESIDE_4_BRANCH updated. d395e2bb1e17100a8fc5eb223270f40344b3a5ed

Jonathan Prykop jonathan at 420.am
Mon May 9 18:24:10 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  d395e2bb1e17100a8fc5eb223270f40344b3a5ed (commit)
      from  8d0311978235dffa845531d8f920636fbfee40e6 (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 d395e2bb1e17100a8fc5eb223270f40344b3a5ed
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Mon May 9 20:15:47 2016 -0500

    RT#42236: Select installers to show on calendar when setting appointment

diff --git a/httemplate/misc/make_appointment.html b/httemplate/misc/make_appointment.html
index 6f308e0..79c3c2c 100644
--- a/httemplate/misc/make_appointment.html
+++ b/httemplate/misc/make_appointment.html
@@ -6,13 +6,10 @@
 
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $cgi->param('custnum') |h %>">
 
-% my @sched_item = qsearch('sched_item', { 'disabled' => '', });
-% my @username = map $_->access_user->username, @sched_item;
-% foreach my $username (@username) { 
-  <INPUT TYPE="hidden" NAME="username" VALUE="<% $username |h %>">
-% }
-
-Length: 
+<TABLE>
+<TR>
+<TD STYLE="text-align: right">Length:</TD>
+<TD>
 <SELECT NAME="LengthMin">
 %  for ( my $hours = .5; $hours < 10.5; $hours += .5 ) {
 %    my $min = $hours * 60;
@@ -21,9 +18,26 @@ Length:
      ><% $hours %> hour<% $hours > 1 ? 's' : '' %>
 %  }
 </SELECT>
-<BR>
-<BR>
+</TD>
+</TR>
+
+% my @sched_item = qsearch('sched_item', { 'disabled' => '', });
+% my @username = map $_->access_user->username, @sched_item;
+
+<TR>
+<TD STYLE="text-align: right">Installer:</TD>
+<TD>
+<SELECT NAME="username" ID="username_select" MULTIPLE>
+% foreach my $username (@username) { 
+  <OPTION SELECTED><% $username |h %></OPTION>
+% }
+</SELECT>
+</TD>
+</TR>
 
+</TABLE>
+
+<BR>
 <INPUT TYPE="submit" VALUE="Schedule appointment">
 
 </FORM>

-----------------------------------------------------------------------

Summary of changes:
 httemplate/misc/make_appointment.html |   32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)




More information about the freeside-commits mailing list