[freeside-commits] freeside/httemplate/browse cgp_rule.html, NONE, 1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Thu Apr 22 23:43:42 PDT 2010
- Previous message: [freeside-commits] freeside/FS/FS cgp_rule_action.pm, 1.1.2.1, 1.1.2.2 cgp_rule_condition.pm, 1.1.2.1, 1.1.2.2 cgp_rule.pm, 1.1.2.1, 1.1.2.2 Mason.pm, 1.19.2.5, 1.19.2.6
- Next message: [freeside-commits] freeside/httemplate/edit cgp_rule.html, NONE, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv14733/httemplate/browse
Added Files:
Tag: FREESIDE_1_9_BRANCH
cgp_rule.html
Log Message:
communigate (phase 2): rules. RT#7514
--- NEW FILE: cgp_rule.html ---
<% include('elements/browse.html',
'title' => "Rules for $svc_label: $svc_value",
'name_singular' => 'rule',
'html_init' => $html_init,
'query' => { 'table' => 'cgp_rule',
'hashref' => { 'svcnum' => $svcnum },
'order_by' => 'ORDER BY priority DESC',
},
'count_query' => $count_query,
'header' => [ 'Priority', 'Name', '' ],
'fields' => [ sub { shift->priority || 'Inactive'; },
'name',
sub { 'Delete'; },
],
#'align'
'links' => [ $edit_sub, $edit_sub, $del_sub ],
)
%>
<%init>
$cgi->param('svcnum') =~ /^(\d+)$/ or die 'no svcnum';
my $svcnum = $1;
#agent virt so you can't do cross-agent communigate rules
my $cust_svc = qsearchs('cust_svc', { 'svcnum' => $svcnum })
or die 'unknown svcnum';
my $count_query = "SELECT COUNT(*) FROM cgp_rule WHERE svcnum = $svcnum";
my($svc_label, $svc_value, $svcdb) = $cust_svc->label;
my $view = FS::UI::Web::svc_url( 'm' => $m,
'action' => 'view',
'part_svc' => $cust_svc->part_svc,
'svc' => $cust_svc,
);
my $html_init =
qq(<A HREF="$view">View this $svc_label</A><BR><BR>).
qq!<A HREF="${p}edit/cgp_rule.html?svcnum=$svcnum">Add new rule</A><BR><BR>!;
my $edit_sub = [ $p.'edit/cgp_rule.html?', 'rulenum' ];
my $del_sub = [ $p.'misc/delete-cgp_rule.html?', 'rulenum' ]; #XXX javascript areyousure or something
</%init>
- Previous message: [freeside-commits] freeside/FS/FS cgp_rule_action.pm, 1.1.2.1, 1.1.2.2 cgp_rule_condition.pm, 1.1.2.1, 1.1.2.2 cgp_rule.pm, 1.1.2.1, 1.1.2.2 Mason.pm, 1.19.2.5, 1.19.2.6
- Next message: [freeside-commits] freeside/httemplate/edit cgp_rule.html, NONE, 1.1.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list