summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cgp_rule.html
blob: f427b6ccfc2477eab019d2c668988eede984eea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% include( 'elements/process.html',
              'table'       => 'cgp_rule',
              'redirect'    => $redirect,
              'process_o2m' => [
                {
                  'table' => 'cgp_rule_condition',
                  'fields' => [qw( condition op params )],
                },
                {
                  'table' => 'cgp_rule_action',
                  'fields' => [qw( action params )],
                },
              ],
          )
%>
<%init>

my $redirect = sub {
  my($cgi, $new) = @_;
  my $svcnum = $new->svcnum;
  popurl(3)."browse/cgp_rule.html?svcnum=$svcnum;rulenum=";
};

</%init>