[Jifty-commit] r523 -
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jan 23 08:08:05 EST 2006
Author: jesse
Date: Mon Jan 23 08:08:03 2006
New Revision: 523
Modified:
/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
r22886 at truegrounds: jesse | 2006-01-23 14:05:03 +0100
* Mandatory form fields now have a css marker.
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Mon Jan 23 08:08:03 2006
@@ -320,7 +320,9 @@
sub render_wrapper_start {
my $self = shift;
- Jifty->web->out('<div class="form_field">' ."\n");
+ my @classes = qw(form_field);
+ if ($self->mandatory) { push @classes, 'mandatory' }
+ Jifty->web->out('<div class="'.join(' ', @classes).'">' ."\n");
}
=head2 render_wrapper_end
More information about the Jifty-commit
mailing list