[freeside-commits] freeside/httemplate/edit reason.html,NONE,1.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Oct 19 07:25:46 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv24160/httemplate/edit
Added Files:
reason.html
Log Message:
suspension and cancellation reasons
--- NEW FILE: reason.html ---
%
% $cgi->param('class') =~ /^(\w)$/ or die "illegal class";
% my $class=$1;
%
% my %classmap = ('C' => 'cancel',
% 'S' => 'suspend',
% );
% my $classname = $classmap{$class};
%
% my (@types) = qsearch( 'reason_type', { 'class' => $class } );
%
<% include( 'elements/edit.html',
'name' => ucfirst($classname) . ' Reason',
'table' => 'reason',
'labels' => {
'reasonnum' => ucfirst($classname) . ' Reason',
'reason_type' => ucfirst($classname) . ' Reason type',
'reason' => ucfirst($classname) . ' Reason',
'disabled' => 'Disabled',
'class' => '',
},
'fields' => [
{ 'field' => 'reason_type',
'type' => 'select',
'value' => { 'vcolumn' => 'typenum',
'ccolumn' => 'type',
'values' => \@types,
},
},
'reason',
{ 'field' => 'class',
'type' => 'fixedhidden',
'value' => $class,
},
{ 'field' => 'disabled',
'type' => 'checkbox',
'value' => 'Y'
},
],
'viewall_url' => $p . "browse/reason.html?class=$class",
)
%>
More information about the freeside-commits
mailing list