[freeside-commits] freeside/httemplate/edit/elements edit.html, 1.11, 1.11.2.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Dec 4 10:19:09 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail:/tmp/cvs-serv22683/httemplate/edit/elements
Modified Files:
Tag: FREESIDE_1_7_BRANCH
edit.html
Log Message:
change credit reasons from freetext to new reason/reason type system (#2777)
Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -d -r1.11 -r1.11.2.1
--- edit.html 29 Dec 2006 08:51:32 -0000 1.11
+++ edit.html 4 Dec 2007 18:19:07 -0000 1.11.2.1
@@ -187,12 +187,20 @@
</TD>
% } elsif ( $type eq 'select' ) {
+%
+% my $aref = $f->{'value'}{'values'};
+% my $vkey = $f->{'value'}{'vcolumn'};
+% my $ckey = $f->{'value'}{'ccolumn'};
+%
+% if (scalar(@$aref) == 1) {
+
+ <TD BGCOLOR="#dddddd"><% @$aref[0]->$ckey %></TD>
+ <INPUT TYPE="hidden" NAME="<% $field %>" VALUE="<% @$aref[0]->$vkey %>">
+
+% }else{
<TD>
<SELECT NAME="<% $field %>"
-% my $aref = $f->{'value'}{'values'};
-% my $vkey = $f->{'value'}{'vcolumn'};
-% my $ckey = $f->{'value'}{'ccolumn'};
% foreach my $v (@$aref) {
<OPTION <% ($object->$field() eq $v->$vkey) ? 'SELECTED' : '' %>
VALUE="<% $v->$vkey %>"><% $v->$ckey %></OPTION>
@@ -200,6 +208,8 @@
</SELECT>
</TD>
+% }
+
% } else {
<TD>
More information about the freeside-commits
mailing list