File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use Act::Template::HTML;
13
13
use Act::Util;
14
14
15
15
my $form = Act::Form-> new(
16
- optional => [qw( donation) ],
16
+ optional => [qw( donation friend-of-perl future-friend-of-perl ) ],
17
17
constraints => {
18
18
donation => ' numeric' ,
19
19
}
@@ -102,6 +102,18 @@ sub handler
102
102
name => localize(' Donation' ),
103
103
};
104
104
}
105
+ if ($ok && $fields -> {' friend-of-perl' }) {
106
+ push @items , {
107
+ amount => 250,
108
+ name => localize(' Friend of Perl' ),
109
+ };
110
+ }
111
+ if ($ok && $fields -> {' future-friend-of-perl' }) {
112
+ push @items , {
113
+ amount => 100,
114
+ name => localize(' Future Friend of Perl' ),
115
+ };
116
+ }
105
117
$ok = @items > 0 if $ok ;
106
118
if ($ok ) {
107
119
# always a use a newly created order
You can’t perform that action at this time.
0 commit comments