Add `id`s to sections in SettingsForm
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 12 Feb 2021 13:36:32 +0000 (14:36 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 12 Feb 2021 13:37:36 +0000 (14:37 +0100)
Resolves #3972

com.woltlab.wcf/templates/settings.tpl

index 8f068198b87faae8907fa5d9eb86dce66f44a306..7ab57efe08ccd1163dc82df6cf2b0ba332491da4 100644 (file)
@@ -15,7 +15,7 @@
 <form method="post" action="{link controller='Settings'}{/link}">
        {if $category == 'general'}
                {if $availableLanguages|count > 1}
-                       <section class="section">
+                       <section class="section" id="language">
                                <h2 class="sectionTitle">{lang}wcf.user.language{/lang}</h2>
                                
                                <dl>
@@ -69,7 +69,7 @@
                {/if}
                
                {if $availableStyles|count > 1}
-                       <section class="section">
+                       <section class="section" id="style">
                                <h2 class="sectionTitle">{lang}wcf.user.styles{/lang}</h2>
                                
                                <dl>
@@ -90,7 +90,7 @@
                {/if}
                
                {if MODULE_TROPHY && $__wcf->getSession()->getPermission('user.profile.trophy.maxUserSpecialTrophies') > 0 && $availableTrophies|count}
-                       <section class="section">
+                       <section class="section" id="trophy">
                                <h2 class="sectionTitle">{lang}wcf.user.trophy.trophies{/lang}</h2>
                                <dl{if $errorField == 'specialTrophies'} class="formError"{/if}>
                                        <dt>{lang}wcf.user.trophy.specialTrophies{/lang}</dt>
        
        {if !$optionTree|empty}
                {foreach from=$optionTree[0][categories][0][categories] item=optionCategory}
-                       <section class="section">
+                       <section class="section" id="optionCategory_{@$optionCategory[object]->categoryName}">
                                <h2 class="sectionTitle">{lang}wcf.user.option.category.{@$optionCategory[object]->categoryName}{/lang}</h2>
                                
                                {include file='userProfileOptionFieldList' options=$optionCategory[options] langPrefix='wcf.user.option.'}