[freeside-commits] branch master updated. 894abb5d8a74080711b632daeb200565dcdeff19

Jonathan Prykop jonathan at 420.am
Mon May 9 18:16:26 PDT 2016


The branch, master has been updated
       via  894abb5d8a74080711b632daeb200565dcdeff19 (commit)
      from  dbc85ed7e7020bd91f63cdb58039731e2abe44ca (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 894abb5d8a74080711b632daeb200565dcdeff19
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