improvements to MatchingPassword to have a better layout, label, and error messages...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Mutable / MatchingPasswords.pm
1 package Reaction::UI::Widget::Field::Mutable::MatchingPasswords;
2
3 use Reaction::UI::WidgetClass;
4 use aliased 'Reaction::UI::Widget::Field::Mutable::Password';
5
6 class MatchingPasswords is Password, which {
7
8   implements fragment check_field {
9     arg 'field_id'   => event_id 'check_value';
10     arg 'field_name' => event_id 'check_value';
11     arg 'label' => 'Confirm:';
12     render 'field'; #piggyback!
13   };
14
15   implements fragment check_label {
16     if (my $label = $_{viewport}->check_label) {
17       arg label => $label;
18       render 'label';
19     }
20   };
21
22
23 };
24
25 1;