[freeside-commits] freeside/httemplate/search report_newtax.html, 1.2.4.1, 1.2.4.2 report_queued_newtax.cgi, 1.1.2.2, 1.1.2.3

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Jun 1 12:58:07 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv24375/httemplate/search

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	report_newtax.html report_queued_newtax.cgi 
Log Message:
add progressbar, redirection, and improve links RT#8274

Index: report_queued_newtax.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_queued_newtax.cgi,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- report_queued_newtax.cgi	13 May 2010 05:43:57 -0000	1.1.2.2
+++ report_queued_newtax.cgi	1 Jun 2010 19:58:05 -0000	1.1.2.3
@@ -1,16 +1,10 @@
-<% include("/elements/header.html", "Queue Tax Report") %>
-<% include("/elements/error.html") %>
-% unless ($error) {
-  <CENTER>
-  Report queued.  Check the job queue for status.
-  </CENTER>
-% }
-<% include("/elements/footer.html") %>
+<% $server->process %>
 <%init>
 
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
 
-my $error = FS::tax_rate::queue_liability_report($cgi);
+my $server =
+   new FS::UI::Web::JSRPC 'FS::tax_rate::queue_liability_report', $cgi;
 
 </%init>

Index: report_newtax.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_newtax.html,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -u -w -d -r1.2.4.1 -r1.2.4.2
--- report_newtax.html	13 May 2010 05:43:57 -0000	1.2.4.1
+++ report_newtax.html	1 Jun 2010 19:58:05 -0000	1.2.4.2
@@ -1,6 +1,6 @@
 <% include('/elements/header.html', 'Tax Report' ) %>
 
-<FORM ACTION="report_queued_newtax.cgi" METHOD="GET">
+<FORM NAME="newtax">
 
 <TABLE>
 
@@ -10,10 +10,17 @@
 
 </TABLE>
 
-<BR><INPUT TYPE="submit" VALUE="Get Report">
+<BR><INPUT TYPE="button" VALUE="Get Report" onClick="document.newtax.submit.disabled=true; process();">
 
 </FORM>
 
+<% include( '/elements/progress-init.html',
+            'newtax',
+            [ qw( agentnum beginning ending ) ],
+            'report_queued_newtax.cgi',
+          )
+%>
+
 <% include('/elements/footer.html') %>
 <%init>
 



More information about the freeside-commits mailing list