Reaction::UI::Widget::Field::Mutable::MatchingPasswords - Require double input of password


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::Widget::Field::Mutable::MatchingPasswords - Require double input of password

DESCRIPTION

Top

This is a subclass of Reaction::UI::Widget::Field::Mutable::Password implementing a second field to repeat the password input.

FRAGMENTS

Top

widget

Will render the check_field fragment after the original widget fragment.

check_field

Renders field with field_id and field_name set to the viewport's check_value event.

check_label

Localises the label argument with a value from the viewport's check_label attribute if one is specified and renders the label fragment.

LAYOUT SETS

Top

base

  share/skin/base/layout/field/mutable/matching_passwords.tt

SEE ALSO

Top

* Reaction::UI::Widget::Field::Mutable::Password

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

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__;