aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Widget/Field
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-14 21:21:45 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-06-14 21:21:45 +0000
commit577fe414348267534faf952536025a61a3c0598f (patch)
tree002dd3dc6ae6dced494e9ce266c97054e5e9cc5e /lib/Reaction/UI/Widget/Field
parent283e06d64e1039a4df9e29bbd7ba815a532ab1ce (diff)
downloadreaction-577fe414348267534faf952536025a61a3c0598f.tar.gz
reaction-577fe414348267534faf952536025a61a3c0598f.zip
improvements to MatchingPassword to have a better layout, label, and error messages as well as cleanup to Mutable role
Diffstat (limited to 'lib/Reaction/UI/Widget/Field')
-rw-r--r--lib/Reaction/UI/Widget/Field/Mutable/MatchingPasswords.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Widget/Field/Mutable/MatchingPasswords.pm b/lib/Reaction/UI/Widget/Field/Mutable/MatchingPasswords.pm
index 44c7103..02ec220 100644
--- a/lib/Reaction/UI/Widget/Field/Mutable/MatchingPasswords.pm
+++ b/lib/Reaction/UI/Widget/Field/Mutable/MatchingPasswords.pm
@@ -5,12 +5,21 @@ use aliased 'Reaction::UI::Widget::Field::Mutable::Password';
class MatchingPasswords is Password, which {
- implements fragment check_value {
+ implements fragment check_field {
arg 'field_id' => event_id 'check_value';
arg 'field_name' => event_id 'check_value';
+ arg 'label' => 'Confirm:';
render 'field'; #piggyback!
};
+ implements fragment check_label {
+ if (my $label = $_{viewport}->check_label) {
+ arg label => $label;
+ render 'label';
+ }
+ };
+
+
};
1;