/[Frey]/trunk/lib/Frey/Run.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Run.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 335 by dpavlin, Sat Nov 8 16:12:39 2008 UTC revision 336 by dpavlin, Sat Nov 8 23:03:35 2008 UTC
# Line 59  sub html { Line 59  sub html {
59    
60          if ( @required ) {          if ( @required ) {
61                  $html = qq|<h1>$class params</h1><form method="post">|;                  $html = qq|<h1>$class params</h1><form method="post">|;
62                  foreach my $name ( $self->attribute_order ) {  
63                    my $a;
64                    my @attrs = map {  $a->{$_}++; $_ } $self->attribute_order;
65                    push @attrs, $_ foreach grep { ! $a->{$_} } map { $_->name } @required;
66                    warn "# attrs = ",dump( @attrs );
67    
68                    foreach my $name ( @attrs ) {
69                          my $attr = $class->meta->get_attribute( $name );                          my $attr = $class->meta->get_attribute( $name );
70                          my $type = $name =~ m/^pass/ ? 'password' : 'text';                          my $type = $name =~ m/^pass/ ? 'password' : 'text';
71                          my $value =                          my $value =

Legend:
Removed from v.335  
changed lines
  Added in v.336

  ViewVC Help
Powered by ViewVC 1.1.26