[freeside-commits] freeside/httemplate/edit/elements ApplicationCommon.html, 1.1.2.2, 1.1.2.3
Ivan,,,
ivan at wavetail.420.am
Sat Oct 4 23:07:39 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv3689/httemplate/edit/elements
Modified Files:
Tag: FREESIDE_1_7_BRANCH
ApplicationCommon.html
Log Message:
finish UI improvements wrt refunds: now you have to post a check or cash refund explicitly, no more implicit creation by 'applying' credits. don't show useless application links. don't enable apply button until you pick an invoice/refund. RT#3812
Index: ApplicationCommon.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/ApplicationCommon.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- ApplicationCommon.html 5 Jun 2008 05:07:55 -0000 1.1.2.2
+++ ApplicationCommon.html 5 Oct 2008 06:07:37 -0000 1.1.2.3
@@ -43,7 +43,7 @@
<% include('/elements/error.html') %>
-<FORM ACTION="<% $p1. $opt{'form_action'} %>" METHOD=POST>
+<FORM ACTION="<% $p1. $opt{'form_action'} %>" NAME="ApplicationForm" ID="ApplicationForm" METHOD=POST>
<% $src_thing %> #<B><% $src_pkeyvalue %></B><BR>
<INPUT TYPE="hidden" NAME="<% $src_pkey %>" VALUE="<% $src_pkeyvalue %>">
@@ -79,6 +79,13 @@
function changed(what) {
dst = what.options[what.selectedIndex].value;
+ if ( dst == '' ) {
+ what.form.submit.disabled=true;
+ return true;
+ }
+
+ what.form.submit.disabled=false;
+
% foreach my $dst ( @dst ) {
if ( dst == <% $dst->$dst_pkey %> ) {
@@ -97,7 +104,7 @@
<TR>
<TD ALIGN="right"><% $dst_thing %>: </TD>
<TD><SELECT NAME="<% $dst_pkey %>" SIZE=1 onChange="changed(this)">
-<OPTION VALUE="">
+<OPTION VALUE="">Select <% $dst_thing %>
% foreach my $dst ( @dst ) {
<OPTION<% $dst->$dst_pkey eq $dst_pkeyvalue ? ' SELECTED' : '' %> VALUE="<% $dst->$dst_pkey %>">#<% $dst->$dst_pkey %> - <% time2str("%D", $dst->_date) %> - $<% $dst->$dst_unapplied %>
@@ -115,7 +122,7 @@
</TABLE>
<BR>
-<CENTER><INPUT TYPE="submit" VALUE="Apply"></CENTER>
+<CENTER><INPUT TYPE="submit" VALUE="Apply" NAME="submit" ID="submit" DISABLED></CENTER>
</FORM>
More information about the freeside-commits
mailing list