[rt-devel] Patches: current_subtab
Bruce Campbell
bruce_campbell at ripe.net
Wed Jan 30 10:21:37 EST 2002
I've noticed that webrt/Elements/Tabs knows about $current_subtab, and I
really do like having extra shadings on my configuration windows.
rt/webrt/NoAuth/webrt.css needs:
40a41,42
> .subtab { background-color: #cccccc; }
>
rt/webrt/Elements/Tabs needs:
50c50,55
< [<A HREF="<%$RT::WebPath%>/<% $subtabs->{$tab}->{'path'}%>"><% $subtabs->{$tab}->{'title'}%></A>]
---
> [<A
> % if ($current_subtab eq $subtabs->{$tab}->{'path'}) {
> class='subtab'
> % }
> HREF="<%$RT::WebPath%>/<% $subtabs->{$tab}->{'path'}%>"><% $subtabs->{$tab}->{'title'}%>
> </A>]
rt/webrt/Admin/Elements/QueueTabs needs
1c1
< <& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => 'Admin/Queues/' &>
---
> <& /Admin/Elements/Tabs, subtabs => $subtabs, current_tab => 'Admin/Queues/', current_subtab => $current_subtab &>
35a36
> $current_subtab => undef
Below here we go into Queue Specifics.
rt/webrt/Admin/Queues/GroupRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>
---
> <& /Admin/Elements/QueueTabs, id => $id, current_subtab => 'Admin/Queues/GroupRights.html?id='.$id &>
rt/webrt/Admin/Queues/Keywords.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>
---
> <& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => 'Admin/Queues/Keywords.html?id='.$QueueObj->Id &>
rt/webrt/Admin/Queues/Modify.html needs:
1,2c1,2
< <& /Admin/Elements/Header, Title => 'Admin/Queue/Basics' &>
< <& /Admin/Elements/QueueTabs, id => $QueueObj->id &>
---
> <& /Admin/Elements/Header, title => 'Admin/Queue/Basics' &>
> <& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => 'Admin/Queues/Modify.html?id='.$QueueObj->Id &>
rt/webrt/Admin/Queues/People.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>
---
> <& /Admin/Elements/QueueTabs, id => $id, current_subtab => 'Admin/Queues/People.html?id='.$id &>
rt/webrt/Admin/Queues/Scrips.html needs:
2c2,4
< <& /Admin/Elements/QueueTabs, id => $QueueObj->Id &>
---
>
> <& /Admin/Elements/QueueTabs, id => $QueueObj->Id, current_subtab => 'Admin/Queues/Scrips.html?id='.$id &>
>
rt/webrt/Admin/Queues/Template.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue &>
---
> <& /Admin/Elements/QueueTabs, id => $Queue, current_subtab => 'Admin/Queues/Template.html?id='.$Queue &>
rt/webrt/Admin/Queues/Templates.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $Queue->id &>
---
> <& /Admin/Elements/QueueTabs, id => $Queue->id, current_subtab => 'Admin/Queues/Templates.html?id='.$Queue->id &>
rt/webrt/Admin/Queues/UserRights.html needs:
2c2
< <& /Admin/Elements/QueueTabs, id => $id &>
---
> <& /Admin/Elements/QueueTabs, id => $id, current_subtab => 'Admin/Queues/UserRights.html?id='.$id &>
--
Bruce Campbell RIPE
Systems/Network Engineer NCC
www.ripe.net - PGP562C8B1B Operations
More information about the Rt-devel
mailing list