[freeside-commits] freeside/httemplate/edit cust_main_attach.cgi, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Wed Dec 16 09:36:01 PST 2009
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.13, 1.324.2.14 Record.pm, 1.196.2.3, 1.196.2.4 cust_bill.pm, 1.263.2.11, 1.263.2.12 cust_location.pm, 1.2, 1.2.4.1 cust_main.pm, 1.464.2.12, 1.464.2.13 cust_pkg.pm, 1.139.2.5, 1.139.2.6
- Next message: [freeside-commits] freeside/httemplate/edit cust_main_attach.cgi, 1.3.2.2, 1.3.2.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv27742
Modified Files:
cust_main_attach.cgi
Log Message:
tweak attachment adding UI: table consistency, input sizes and maxlengths, RT#4964
Index: cust_main_attach.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main_attach.cgi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cust_main_attach.cgi 14 Dec 2009 01:41:28 -0000 1.5
+++ cust_main_attach.cgi 16 Dec 2009 17:35:59 -0000 1.6
@@ -8,22 +8,22 @@
<BR><BR>
-<% include('/elements/table.html') %>
+<TABLE BGCOLOR="#cccccc" CELLSPACING=0>
% if(defined $attach) {
% if($curuser->access_right("Download attachment")) {
<A HREF="<% $p.'view/attachment.html?'.$attachnum %>">Download this file</A><BR>
% }
<TR><TD> Filename </TD>
-<TD><INPUT TYPE="text" NAME="filename" SIZE=32 MAXLENGTH=32 VALUE="<% $attach->filename %>"<% $disabled %>></TD></TR>
+<TD><INPUT TYPE="text" NAME="filename" SIZE=40 MAXLENGTH=255 VALUE="<% $attach->filename %>"<% $disabled %>></TD></TR>
<TR><TD> Description </TD>
-<TD><INPUT TYPE="text" NAME="title" SIZE=32 MAXLENGTH=32 VALUE="<% $attach->title %>"<% $disabled %></TD></TR>
+<TD><INPUT TYPE="text" NAME="title" SIZE=40 MAXLENGTH=80 VALUE="<% $attach->title %>"<% $disabled %></TD></TR>
<TR><TD> MIME type </TD>
<TD><INPUT TYPE="text" NAME="mime_type" VALUE="<% $attach->mime_type %>"<% $disabled %></TD></TR>
<TR><TD> Size </TD><TD><% $attach->size %></TD></TR>
% }
% else { # !defined $attach
-<TR><TD> Filename </TD><TD><INPUT TYPE="file" SIZE=32 NAME="file"></TD></TR>
-<TR><TD> Description </TD><TD><INPUT TYPE="text" NAME="title" SIZE=32 MAXLENGTH=32></TD></TR>
+<TR><TD> Filename </TD><TD><INPUT TYPE="file" SIZE=24 NAME="file"></TD></TR>
+<TR><TD> Description </TD><TD><INPUT TYPE="text" NAME="title" SIZE=40 MAXLENGTH=80></TD></TR>
% }
</TABLE>
<BR>
@@ -44,7 +44,7 @@
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
-die "access denied" if !$curuser->access_right('View attachments');
+
my $attachnum = '';
my $attach;
if ( $cgi->param('error') ) {
- Previous message: [freeside-commits] freeside/FS/FS Conf.pm, 1.324.2.13, 1.324.2.14 Record.pm, 1.196.2.3, 1.196.2.4 cust_bill.pm, 1.263.2.11, 1.263.2.12 cust_location.pm, 1.2, 1.2.4.1 cust_main.pm, 1.464.2.12, 1.464.2.13 cust_pkg.pm, 1.139.2.5, 1.139.2.6
- Next message: [freeside-commits] freeside/httemplate/edit cust_main_attach.cgi, 1.3.2.2, 1.3.2.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list