Liu, Aaron | 16 Mar 04:21

Re: Suggestion for indivdual field scripting/styling

Here is the diff, I hope this will not break anything (I just inlined
the call to tr() and added parameter to it.)

===================================================================
--- FormBuilder_orig.pm Mon Mar 14 19:32:14 2005
+++ FormBuilder.pm      Wed Mar 16 03:16:58 2005
@@ -1120,7 +1120,6 @@

         # Get table stuff and reused calls
         my $table = $self->table;
-        my $tr    = $self->tr;
         my $td    = $self->td;
         $html .= $table . "\n";     # want newline regardless

@@ -1132,7 +1131,7 @@
         for my $field (@unhidden) {
             debug 2, "render: attacking normal field '$field'";
             if ($table) {
-                $html .= $tr . $td . $font;
+                $html .= $self->tr({id=>"tr_$field"}) . $td . $font; #
generate id for table row
                 if ($field->invalid) {
                     $html .= $self->{messages}->form_invalid_opentag;
                 } elsif ($field->required) {
===================================================================

> -----Original Message-----
> From: Nathan Wiger [mailto:nate <at> sun.com] 
> Sent: Wednesday, March 16, 2005 02:35
> To: Liu, Aaron
(Continue reading)


Gmane