X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch-html.html;h=3ea38aee8489881b85f1c780f674b8547b0f0ac6;hp=12f6c1e046710e85342a7fbb610ff3323952cd8f;hb=9cb01b1aed97bcbe897e779dc268800a2b1538ae;hpb=4496a23e58b830db4c2d10ad17dfb0d531b15859
diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html
index 12f6c1e04..3ea38aee8 100644
--- a/httemplate/search/elements/search-html.html
+++ b/httemplate/search/elements/search-html.html
@@ -136,22 +136,36 @@
- <% $opt{'download_label'} || 'Download full results' %>
+ <% $opt{'download_label'} || 'Download results:' %>
% $cgi->param('_type', "$xlsname.xls" );
- as query_string %>">Excel spreadsheet
+ query_string %>">Spreadsheet |
% $cgi->param('_type', 'csv');
- as query_string %>">CSV file
+ query_string %>">CSV |
% if ( defined($opt{xml_elements}) ) {
% $cgi->param('_type', 'xml');
- as query_string %>">XML file
+ query_string %>">XML |
% }
% $cgi->param('_type', 'html-print');
- as query_string %>">printable copy
+ query_string %>">webpage
+%# "save search" -- for now, obey disable_download and the 'Download
+%# report data' ACL, because saving a search allows the user to receive
+%# copies of the data.
+
+%# XXX should do a check here on whether the user already has this
+%# search saved...
+ <& /elements/popup_link.html,
+ 'action' => $fsurl.'/edit/saved_search.html?title='.
+ uri_escape($opt{title}),
+ 'label' => 'Save this search',
+ 'actionlabel' => 'Save this search',
+ 'width' => 650,
+ 'height' => 500,
+ &>
|
% $cgi->param('_type', "html" );
% }