[Jifty-commit] r7531 - in jifty/trunk/lib/Jifty: Action
Jifty commits
jifty-commit at lists.jifty.org
Fri Oct 9 08:31:06 EDT 2009
Author: clkao
Date: Fri Oct 9 08:31:04 2009
New Revision: 7531
Modified:
jifty/trunk/lib/Jifty/Action/Record.pm
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
by-pass additional column attributes of models to corresponding
form fields of model actions.
Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm Fri Oct 9 08:31:04 2009
@@ -296,7 +296,7 @@
# If we're hand-coding a render_as, hints or label, let's use it.
for (
- qw(render_as label hints display_length max_length mandatory sort_order container documentation)
+ qw(render_as label hints display_length max_length mandatory sort_order container documentation attributes)
)
{
if ( defined( my $val = $column->$_ ) ) {
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 Fri Oct 9 08:31:04 2009
@@ -123,7 +123,7 @@
name type sticky sticky_value default_value action
mandatory ajax_validates ajax_canonicalizes autocompleter preamble hints
placeholder focus render_mode display_length max_length _element_id
- disable_autocomplete multiple
+ disable_autocomplete multiple attributes
);
my @semiexposed_fields = qw(
@@ -216,6 +216,12 @@
For the purposes of L<Jifty::Web::Form::Element>, the unique id of
this field is its input name.
+=head2 attributes
+
+If the field object is generated by L<Jifty::Action::Record>, this
+holds the additional attributes declared to the corresponding column
+of the model.
+
=cut
sub id {
More information about the Jifty-commit
mailing list