my ($self, $attr, $args) = @_;
if ($attr->has_valid_values) { # There's probably a better way to do this
$self->_build_simple_field(attribute => $attr, class => ChooseOne, %$args);
+ } else {
+ $self->_build_simple_field(attribute => $attr, class => Text, %$args);
}
- $self->_build_simple_field(attribute => $attr, class => Text, %$args);
};
implements _build_fields_for_type_Password => as {