24301b59b9e17d8cda01de9db772c5dc70f2d998
[freeside.git] / httemplate / elements / select-cgp_rule_action.html
1 %# XXX CSS to verticially align the select vs. the textarea
2 <% include( 'select.html',
3               %opt,
4               'options' => \@actions, #reverse order if we ever need to specify
5               'labels'  => { '' => 'Select Action' },
6           )
7 %>
8     <TEXTAREA NAME          = "<% $opt{field} %>_params"
9 %#              ID            = "<% $opt{id} %>"
10 %#              <% $rows %>
11 %#              <% $cols %>
12 %#              <% $onchange %>
13 %#    ><% $curr_value |h %></TEXTAREA>
14     >
15 %# XXX curr value
16     </TEXTAREA>
17 <%init>
18
19 my %opt = @_;
20
21 my @actions = (
22   '',
23   'Stop Processing',
24   'Discard',
25   'Reject With',
26   'Mark',
27   'Add Header',
28   'Tag Subject',
29   'Store in',
30   'Redirect to',
31   'Forward to',
32   'Mirror to',
33   'Reply with',
34   'Reply to All with',
35   'React with',
36   'store Encrypted in',
37   'Copy attachments into',
38   'Execute',
39   'ExternalFilter',
40   'Accept Request',
41 );
42
43 #XXX hmm, hide textarea w/Stop Processing,Discard like _condition.html
44
45 </%Init>