1 package Reaction::UI::Widget::Field::Mutable::MatchingPasswords;
3 use Reaction::UI::WidgetClass;
4 use namespace::clean -except => [ qw(meta) ];
6 extends 'Reaction::UI::Widget::Field::Mutable::Password';
8 implements fragment check_field {
9 arg 'field_id' => event_id 'check_value';
10 arg 'field_name' => event_id 'check_value';
11 render 'field'; #piggyback!
14 implements fragment check_label {
15 if (my $label = $_{viewport}->check_label) {
16 arg label => localized $label;
21 __PACKAGE__->meta->make_immutable;
29 Reaction::UI::Widget::Field::Mutable::MatchingPasswords - Require double input of password
33 This is a subclass of L<Reaction::UI::Widget::Field::Mutable::Password> implementing
34 a second field to repeat the password input.
40 Will render the C<check_field> fragment after the original C<widget> fragment.
44 Renders C<field> with C<field_id> and C<field_name> set to the viewport's C<check_value> event.
48 Localises the C<label> argument with a value from the viewport's C<check_label> attribute if
49 one is specified and renders the C<label> fragment.
55 share/skin/base/layout/field/mutable/matching_passwords.tt
61 =item * L<Reaction::UI::Widget::Field::Mutable::Password>
67 See L<Reaction::Class> for authors.
71 See L<Reaction::Class> for the license.