| Reaction documentation | Contained in the Reaction distribution. |
Reaction::UI::Widget::Field::Mutable::MatchingPasswords - Require double input of password
This is a subclass of Reaction::UI::Widget::Field::Mutable::Password implementing a second field to repeat the password input.
Will render the check_field fragment after the original widget fragment.
Renders field with field_id and field_name set to the viewport's check_value event.
Localises the label argument with a value from the viewport's check_label attribute if
one is specified and renders the label fragment.
share/skin/base/layout/field/mutable/matching_passwords.tt
See Reaction::Class for authors.
See Reaction::Class for the license.
| Reaction documentation | Contained in the Reaction distribution. |
package Reaction::UI::Widget::Field::Mutable::MatchingPasswords; use Reaction::UI::WidgetClass; use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::UI::Widget::Field::Mutable::Password'; implements fragment check_field { arg 'field_id' => event_id 'check_value'; arg 'field_name' => event_id 'check_value'; render 'field'; #piggyback! }; implements fragment check_label { if (my $label = $_{viewport}->check_label) { arg label => localized $label; render 'label'; } }; __PACKAGE__->meta->make_immutable; 1; __END__;