X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Freason.html;h=7f62ada8476654831649ef67826484e5be5a1876;hb=ada2ac371279555b1009db1f995861eee2fa4bf2;hp=b017f8f587018e2215c58c02d35869af4db8a9ee;hpb=15777da47bab33e8f0021e6dd9aa6b434fa9be30;p=freeside.git diff --git a/httemplate/browse/reason.html b/httemplate/browse/reason.html index b017f8f58..7f62ada84 100644 --- a/httemplate/browse/reason.html +++ b/httemplate/browse/reason.html @@ -1,31 +1,25 @@ <% include( 'elements/browse.html', 'title' => ucfirst($classname) . ' Reasons', - 'menubar' => [ # 'Main menu' => $p, - ucfirst($classname) . ' Reason Types' => - $p.'browse/reason_type.html?class='. - $class, + 'menubar' => [ ucfirst($classname).' Reason Types' => + $p."browse/reason_type.html?class=$class" ], 'html_init' => $html_init, 'name' => $classname . ' reasons', + 'disableable' => 1, + 'disabled_statuspos' => 3, 'query' => { 'table' => 'reason', 'hashref' => {}, - 'extra_sql' => $where_clause . - 'ORDER BY reason_type', + 'extra_sql' => $where_clause. + ' ORDER BY reason_type', 'addl_from' => 'LEFT JOIN reason_type ON reason_type.typenum = reason.reason_type', }, 'count_query' => $count_query, - 'header' => [ '#', - ucfirst($classname) . ' Reason Type', - ucfirst($classname) . ' Reason', - ], - 'fields' => [ 'reasonnum', - sub { shift->reasontype->type }, - 'reason', - ], - 'links' => [ $link, - $link, - '', - ], + 'header' => \@header, + 'fields' => \@fields, + 'links' => \@links, + 'align' => $align, + 'html_form' => qq!
'; + %init>