%# BEGIN LICENSE BLOCK %# %# Copyright (c) 2002-2003 Jesse Vincent %# %# This program is free software; you can redistribute it and/or modify %# it under the terms of version 2 of the GNU General Public License %# as published by the Free Software Foundation. %# %# A copy of that license should have arrived with this %# software, but in any event can be snarfed from www.gnu.org. %# %# This program is distributed in the hope that it will be useful, %# but WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %# GNU General Public License for more details. %# %# END LICENSE BLOCK <& /RTFM/Admin/Elements/ClassTabs, current_tab => 'RTFM/Admin/Classes/', current_subtab => 'RTFM/Admin/Classes/', Title => loc("Select a Class") &>
<%$caption%>:
    %if ($Classes->Count == 0) {
  • <&|/l&>No Classes matching search criteria found. % } %while ( $Class = $Classes->Next) {
  • <%$Class->Name%>
  • %}
<&|/l&>Include disabled classes in listing.
<%INIT> my ($Class, $caption); my $Classes = new RT::FM::ClassCollection($session{'CurrentUser'}); if ($FindDisabledClasses) { $caption = loc("All Classes"); $Classes->{'find_disabled_rows'} = 1; $Classes->UnLimit(); } else { $caption = loc("Enabled Classes"); $Classes->LimitToEnabled(); } <%ARGS> $FindDisabledClasses => 0