summaryrefslogtreecommitdiff
path: root/httemplate/edit/cgp_rule.html
diff options
context:
space:
mode:
authorivan <ivan>2010-04-29 07:40:46 +0000
committerivan <ivan>2010-04-29 07:40:46 +0000
commit2ac302e18d723563692cdbbd74f3e9e5331a3014 (patch)
treece25a3f91382098fa749f0d8c5dde7c77699b631 /httemplate/edit/cgp_rule.html
parentfa6176ab2df85c4b66026e9fe2a7242293d20ce5 (diff)
communigate (phase 2): rules: adding conditions and actions to rule edit. RT#7514
Diffstat (limited to 'httemplate/edit/cgp_rule.html')
-rw-r--r--httemplate/edit/cgp_rule.html32
1 files changed, 17 insertions, 15 deletions
diff --git a/httemplate/edit/cgp_rule.html b/httemplate/edit/cgp_rule.html
index 6f2d80161..adf993f25 100644
--- a/httemplate/edit/cgp_rule.html
+++ b/httemplate/edit/cgp_rule.html
@@ -10,29 +10,31 @@
},
'fields' => [ 'name',
'comment',
- { 'field' => 'priority',
- 'type' => 'select',
- 'options' => [ 0 .. 10 ],
- 'labels' => { 0 => 'Inactive' },
+ { 'field' => 'priority',
+ 'type' => 'select',
+ 'options' => [ 0 .. 10 ],
+ 'labels' => { 0 => 'Inactive' },
},
- { 'field' => 'svcnum', 'type' => 'hidden', },
- { 'type' => 'tablebreak-tr-title',
- 'value' => 'Conditions',
+ { 'field' => 'svcnum', 'type' => 'hidden', },
+ { 'type' => 'tablebreak-tr-title',
+ 'value' => 'Conditions',
},
- { 'field' => 'ruleconditionnum',
- 'type' => 'select-cgp_rule_condition',
+ { 'field' => 'ruleconditionnum',
+ 'type' => 'select-cgp_rule_condition',
'o2m_table' => 'cgp_rule_condition',
- 'm2_label' => 'Condition',
+ 'm2_label' => 'Condition',
#XXX m2_error_callback
+ 'm2_error_callback' => sub {},
},
- { 'type' => 'tablebreak-tr-title',
- 'value' => 'Actions',
+ { 'type' => 'tablebreak-tr-title',
+ 'value' => 'Actions',
},
- { 'field' => 'ruleactionnum',
- 'type' => 'select-cgp_rule_action',
+ { 'field' => 'ruleactionnum',
+ 'type' => 'select-cgp_rule_action',
'o2m_table' => 'cgp_rule_action',
- 'm2_label' => 'Action',
+ 'm2_label' => 'Action',
#XXX m2_error_callback
+ 'm2_error_callback' => sub {},
},
],
'new_callback' => sub { my( $cgi, $cgp_rule ) = @_;