[freeside-commits] freeside/httemplate/search report_newtax.html, 1.3, 1.4 report_queued_newtax.cgi, 1.1, 1.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Jun 1 12:58:30 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv24458/httemplate/search
Modified Files:
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
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- report_queued_newtax.cgi 13 May 2010 05:43:21 -0000 1.1
+++ report_queued_newtax.cgi 1 Jun 2010 19:58:28 -0000 1.2
@@ -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.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- report_newtax.html 13 May 2010 05:43:22 -0000 1.3
+++ report_newtax.html 1 Jun 2010 19:58:28 -0000 1.4
@@ -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