[freeside-commits] freeside/httemplate/misc order_pkg.html, 1.4, 1.5
Ivan,,,
ivan at wavetail.420.am
Sat Mar 29 01:32:19 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv1005
Modified Files:
order_pkg.html
Log Message:
in the unlikely error case, the order button should stay enabled
Index: order_pkg.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/order_pkg.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- order_pkg.html 29 Mar 2008 08:15:45 -0000 1.4
+++ order_pkg.html 29 Mar 2008 08:32:17 -0000 1.5
@@ -21,7 +21,7 @@
<TH ALIGN="right">Package</TH>
<TD>
<% include('/elements/select-cust-part_pkg.html',
- 'curr_value' => scalar( $cgi->param('pkgpart') ),
+ 'curr_value' => $pkgpart,
'cust_main' => $cust_main,
'onchange' => 'enable_order_pkg',
)
@@ -41,7 +41,7 @@
</TABLE>
<BR>
-<INPUT NAME="submit" TYPE="submit" VALUE="Order Package" disabled>
+<INPUT NAME="submit" TYPE="submit" VALUE="Order Package" <% $pkgpart ? '' : 'DISABLED' %>>
</FORM>
</BODY>
@@ -61,4 +61,6 @@
'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
});
+my $pkgpart = scalar($cgi->param('pkgpart'));
+
</%init>
More information about the freeside-commits
mailing list