Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fixes #53

Merged
merged 15 commits into from
Sep 16, 2013
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ sub setup_form {
$self->_result_from_object( $self->result, $init_object );
}
elsif ( !$self->posted ) {
# no initial object. empty form form must be initialized
# no initial object. empty form must be initialized
$self->_result_from_fields( $self->result );
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/BuildFields.pm
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ sub _merge_updates {
$all_updates = merge( $all_updates, { tags => $self->form->widget_tags } );
}
}
# get updates from compund field update_subfields and widget_tags
# get updates from compound field update_subfields and widget_tags
if ( $self->has_flag('is_compound') ) {
my $comp_field_updates = $self->update_subfields;
my $comp_all_updates = {};
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Captcha.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use HTTP::Date;
=head1 SYNOPSIS

A Captcha class using GD::SecurityImage.
Requires that that three methods be available from a form object:
Requires that three methods be available from a form object:

$self->form->get_captcha;
$self->form->set_captcha;
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sub get_class_messages {
sub date_deflate {
my ( $self, $value ) = @_;

# if not a DateTime, assume correctly formated string and return
# if not a DateTime, assume correctly formatted string and return
return $value unless ref $value eq 'DateTime';
my $format = $self->get_strf_format;
my $string = $value->strftime($format);
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Email.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ apply(

=head1 DESCRIPTION

Validates that the input looks like an email address uisng L<Email::Valid>.
Validates that the input looks like an email address using L<Email::Valid>.
Widget type is 'text'.

If form has 'is_html5' flag active it will render <input type="email" ... />
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Money.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ apply(

=head1 DESCRIPTION

Validates that a postive or negative real value is entered.
Validates that a positive or negative real value is entered.
Formatted with two decimal places.

Uses a period for the decimal point. Widget type is 'text'.
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Repeatable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This class represents an array. It can either be an array of hashrefs
The 'contains' keyword is used for elements that do not have names
because they are not hash elements.

This field node will build arrays of fields from the the parameters or an
This field node will build arrays of fields from the parameters or an
initial object, or empty fields for an empty form.

The name of the element fields will be an array index,
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Field/Select.pm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Setting the select element to disabled:
return @selections;
}

You can also devide the options up into option groups. See the section on
You can also divide the options up into option groups. See the section on
rendering.

=head2 Reloading options
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Fields.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ num_fields, has_fields, and set_field_at methods.

=head2 field( $full_name )

Return the field objct with the full_name passed. Will return undef
Return the field object with the full_name passed. Will return undef
if the field is not found, or will die if passed a second parameter.

=head2 field_index
Expand Down
4 changes: 2 additions & 2 deletions lib/HTML/FormHandler/Manual/FromDFV.pod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ to add, patches are welcome.
In a general way, FormHandler doesn't have nearly so many "special"
checks as Data::FormValidator. It would be possible to implement many
of them, but there hasn't been much demand for them. So far FormHandler
users seem to be satisfed with the "do your own checks in a Perl method"
users seem to be satisfied with the "do your own checks in a Perl method"
solution. Because of the greater complexity of FormHandler's data model -
with Repeatable arrays and nested compounds, etc - it's somewhat harder
to do some of them automatically.
Expand Down Expand Up @@ -72,7 +72,7 @@ directly in a FormHandler form:

=item email

Use the 'Email' field type, or use the the FH Moose Type, 'email'.
Use the 'Email' field type, or use the FH Moose Type, 'email'.

has_field 'email' => ( type => 'Email' );
-- or --
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Manual/FromFF.pod
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ things in the form's 'validate' sub.

=item Email

Use the 'Email' field type, or use the the FH Moose Type, 'email'.
Use the 'Email' field type, or use the FH Moose Type, 'email'.

has_field 'email' => ( type => 'Email' );
-- or --
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Manual/Intro.pod
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ template.
The form object will give you a hashref of values suitable for
filling in the form with C<< $form->fif >>.

By default FormHandler structures fields (and renders thems) in a way
By default FormHandler structures fields (and renders them) in a way
that matches the database. If you want to organize the rendering output
in different ways, you can use blocks to organize your fields.

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Manual/Rendering.pod
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ The 'first_fset' block will render like this:
</fieldset>

In order to actually get this block to be used when you render with
C<< $form->render >>, you need to supply a 'render_list' on the the form
C<< $form->render >>, you need to supply a 'render_list' on the form
level:

sub build_render_list { ['first_fset', 'submit_btn'] }
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Model/CDBI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ The active column name is determined by calling:
: $field->active_column;

Which allows setting the name of the active column globally if
your tables are consistantly named (all lookup tables have the same
your tables are consistently named (all lookup tables have the same
column name to indicate they are active), or on a per-field basis.

In addition, if the foreign class is the same as the item's class (or the class returned
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormHandler/Render/Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Output an HTML string for a 'checkbox' widget

Output an HTML string for a 'radio_group' selection widget.
This widget should be for a field that inherits from 'Select',
since it requires the existance of an 'options' array.
since it requires the existence of an 'options' array.

=head2 render_textarea

Expand Down