my $key = $c->categorycode . "-" . $i->itemtype . "-" . $notification;
$key =~ s/\*/_/g;
my @classes;
+ my $text = " ";
if ($disabled{$key}) {
push @classes, 'disabled';
+ $text = "Disabled for $where->{branchcode}";
}
if ($default{$key}) {
push @classes, 'default';
+ $text = "Disabled for all";
}
- push @{$row->{items}}, { class => join(' ', @classes), id => $key };
+ push @{$row->{items}}, {
+ class => join(' ', @classes),
+ id => $key,
+ text => $text,
+ };
}
}
return \@grid;
=head3 $pref->id
+=cut
+
=head3 $pref->branchcode
+=cut
+
=head3 $pref->categorycode
+=cut
+
=head3 $pref->item_type
+=cut
+
=head3 $pref->notification
=cut
=cut
1;
-
-# Local Variables: ***
-# mode: cperl ***
-# indent-tabs-mode: nil ***
-# cperl-close-paren-offset: -4 ***
-# cperl-continued-statement-offset: 4 ***
-# cperl-indent-level: 4 ***
-# cperl-indent-parens-as-block: t ***
-# cperl-tab-always-indent: nil ***
-# End: ***
-# vim:tabstop=8 softtabstop=4 shiftwidth=4 shiftround expandtab