TabMenu and SubTabMenu working now
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2011 12:58:24 +0000 (14:58 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2011 12:58:24 +0000 (14:58 +0200)
wcfsetup/install/files/acp/templates/userGroupAdd.tpl

index 2903001df499c2116e89b46f396b1f3161da0ea5..7646d0843a25a5953d3941fe2a255acc8c4b62ce 100644 (file)
                {if $additionalFieldSets|isset}{@$additionalFieldSets}{/if}
                
                <!-- ToDo: Something's wrong with the structure of the tab-menu and the enclosed sub-menu! Tab-menus should have the same mark-up as on other pages and allow for an active state -->
-               <div class="tabMenuContainer">
+               <div class="tabMenuContainer" data-active="{$activeSubTabMenuItem}" data-store="activeTabMenuItem">
                        <nav>
                                <ul class="tabMenu">
                                        {foreach from=$optionTree item=categoryLevel1}
-                                               <li id="{@$categoryLevel1[object]->categoryName}"><a onclick="tabMenu.showSubTabMenu('{@$categoryLevel1[object]->categoryName}');"><span>{lang}wcf.acp.group.option.category.{@$categoryLevel1[object]->categoryName}{/lang}</span></a></li>
+                                               <li id="{@$categoryLevel1[object]->categoryName}"><a href="#{@$categoryLevel1[object]->categoryName}">{lang}wcf.acp.group.option.category.{@$categoryLevel1[object]->categoryName}{/lang}</a></li>
                                        {/foreach}
                                </ul>
                        </nav>
                        
                        {foreach from=$optionTree item=categoryLevel1}
-                               <div class="tabMenuContainer">
+                               <div class="tabMenuContainer" id="{@$categoryLevel1[object]->categoryName}" data-active="{$activeTabMenuItem}" data-store="activeSubTabMenuItem">
                                        <nav>
                                                <ul class="menu">
                                                        {foreach from=$categoryLevel1[categories] item=$categoryLevel2}