X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Freason_type.html;h=e5f42e8398cdb13a720aa3a7a455db2f4554367d;hb=0549def83bcba56e53482ea0f33472e18b215649;hp=0cb6e7a395d4b9a867bfe27adadf1154685512f9;hpb=5ac8279c29897a5dc620047b5579f83a7ed0ae9c;p=freeside.git diff --git a/httemplate/browse/reason_type.html b/httemplate/browse/reason_type.html index 0cb6e7a39..e5f42e839 100644 --- a/httemplate/browse/reason_type.html +++ b/httemplate/browse/reason_type.html @@ -21,6 +21,8 @@ '', ], 'disable_total' => 1, + 'html_form' => qq!
!, + 'html_foot' => $html_foot, &> <%init> @@ -44,7 +46,8 @@ my $html_init = 'Reasons: ' . } keys (%FS::reason_type::class_name) ); -$html_init .= '

' . +$html_init .= include('/elements/init_overlib.html'). + '

' . $classname . ' reasons ' . $FS::reason_type::class_purpose{$class} . '. Reason types allow reasons to be grouped for reporting purposes.' . @@ -64,6 +67,10 @@ my $reasons_sub = sub { 'link' => $p. "edit/reason.html?class=$class&reasonnum=". $_->reasonnum, }, + { + 'data' => q!!, + 'align' => 'right', + }, ]; } $reason_type->enabled_reasons ), @@ -73,7 +80,8 @@ my $reasons_sub = sub { 'align' => 'left', 'link' => $p. "edit/reason.html?class=$class", 'data_style' => 'i', - } + }, + { 'data' => '' }, ] ]; @@ -86,4 +94,13 @@ $count_query .= $where_clause; my $link = [ $p.'edit/reason_type.html?class='.$class.'&typenum=', 'typenum' ]; +my $html_foot = include('/search/elements/checkbox-foot.html', + onclick => include( '/elements/popup_link_onclick.html', + js_action => q!'! . "${p}misc/reason-merge.html?" . q!' + toCGIString()!, + actionlabel => 'Merge reasons', + ), + label => 'merge selected reasons', + minboxes => 2, +) . '

'; +