[Jifty-commit] r1022 - in jifty/trunk: lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon May 8 19:19:55 EDT 2006
Author: trs
Date: Mon May 8 19:19:54 2006
New Revision: 1022
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
r10363 at zot: tom | 2006-05-08 19:19:29 -0400
Include the .argument-<name> class in the surrounding .form_field div
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 May 8 19:19:54 2006
@@ -331,6 +331,7 @@
my $self = shift;
my @classes = qw(form_field);
if ($self->mandatory) { push @classes, 'mandatory' }
+ if ($self->name) { push @classes, 'argument-'.$self->name }
Jifty->web->out('<div class="'.join(' ', @classes).'">' ."\n");
}
More information about the Jifty-commit
mailing list