[freeside-commits] freeside/httemplate/edit reason_type.html, NONE,
1.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Oct 19 07:25:53 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv24187/httemplate/edit
Added Files:
reason_type.html
Log Message:
suspension and cancellation reasons
--- NEW FILE: reason_type.html ---
%
%$cgi->param('class') =~ /^(\w)$/;
%my $class = $1;
%
%my %classmap = ( 'C' => 'Cancel',
% 'S' => 'Suspend',
% );
%
%my $classname = $classmap{$class};
%
<% include( 'elements/edit.html',
'name' => $classname . ' Reason Type',
'table' => 'reason_type',
'labels' => {
'typenum' => $classname . ' reason type',
'type' => $classname . ' reason type name',
'class' => '',
},
'fields' => [
'type',
{ 'field' => 'class',
'type' => 'hidden',
},
],
'viewall_url' => $p . "browse/reason_type.html?class=$class",
'new_hashref_callback' => sub {{ 'class' => $class }},
)
%>
More information about the freeside-commits
mailing list