[freeside-commits] freeside/httemplate/view/cust_main attachments.html, 1.2, 1.2.2.1
Mark Wells
mark at wavetail.420.am
Mon Nov 23 17:11:24 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv1610/httemplate/view/cust_main
Modified Files:
Tag: FREESIDE_1_9_BRANCH
attachments.html
Log Message:
cust_attachment improvement, RT#4964 and #6225
Index: attachments.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/attachments.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- attachments.html 10 Aug 2009 23:04:57 -0000 1.2
+++ attachments.html 24 Nov 2009 01:11:22 -0000 1.2.2.1
@@ -11,6 +11,7 @@
% }
<TH CLASS="grid" BGCOLOR="#cccccc">Person</TH>
<TH CLASS="grid" BGCOLOR="#cccccc">Filename</TH>
+ <TH CLASS="grid" BGCOLOR="#cccccc">Description</TH>
<TH CLASS="grid" BGCOLOR="#cccccc">Type</TH>
<TH CLASS="grid" BGCOLOR="#cccccc">Size</TH>
<TH CLASS="grid" BGCOLOR="#cccccc"></TH>
@@ -54,7 +55,8 @@
% my $clickjs = popup('edit/process/cust_main_attach.cgi?'.
% "custnum=$custnum;attachnum=$attachnum;".
% "purge=1",
-% 'Purge attachment');
+% 'Purge attachment',
+% 'Permanently remove this file?');
% $edit .= qq! <A HREF="javascript:void(0);" $clickjs>(purge)</A>!;
% }
% }
@@ -67,9 +69,9 @@
% }
% if($curuser->access_right('Delete attachment') ) {
% my $clickjs = popup('edit/process/cust_main_attach.cgi?'.
-% "custnum=$custnum;attachnum=$attachnum;".
-% "delete=1",
-% 'Delete attachment');
+% "custnum=$custnum;attachnum=$attachnum;delete=1",
+% 'Delete attachment',
+% 'Delete this file?');
% $edit .= qq! <A HREF="javascript:void(0);" $clickjs>(delete)</A>!;
% }
% if ($curuser->access_right('Download attachment') ) {
@@ -86,6 +88,8 @@
<% $attach->filename %>
</TD>
<TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
+ <% $attach->title %>
+ <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
<% $attach->mime_type %>
</TD>
<TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
@@ -135,15 +139,16 @@
}
sub popup {
- my ($url, $label) = @_;
+ my ($url, $label, $confirm) = @_;
my $onclick =
include('/elements/popup_link_onclick.html',
'action' => popurl(2).$url,
'actionlabel' => $label,
- 'width' => 616,
- 'height' => 408,
+ 'width' => 510,
+ 'height' => 315,
'frame' => 'top',
);
+ $onclick = qq!if(confirm('$confirm')) { $onclick }! if $confirm;
return qq!onclick="$onclick"!;
}
More information about the freeside-commits
mailing list