Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 25 Apr 2013 23:52:46 +0000 (01:52 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 25 Apr 2013 23:52:46 +0000 (01:52 +0200)
wcfsetup/install/files/acp/templates/styleAdd.tpl

index bf3f45510ebd1010bed34ecd8b71cac528b6cc6a..682ae574322f5d27e328ea7585491d9577da92f1 100644 (file)
                                                <small>{lang}wcf.acp.style.image.description{/lang}</small>
                                        </dd>
                                </dl>
-                               {hascontent}
+                               {if $availableTemplateGroups|count}
                                        <dl{if $errorField == 'templateGroupID'} class="formError"{/if}>
                                                <dt><label for="templateGroupID">{lang}wcf.acp.style.templateGroupID{/lang}</label></dt>
                                                <dd>
                                                        <select name="templateGroupID" id="templateGroupID">
-                                                               <option value="0"></option>
-                                                               {content}
-                                                                       {foreach from=$availableTemplateGroups item=templateGroup}
-                                                                               <option value="{@$templateGroup->templateGroupID}">{$templateGroup->templateGroupName}</option>
-                                                                       {/foreach}
-                                                               {/content}
+                                                               <option value="0">{lang}wcf.acp.template.group.default{/lang}</option>
+                                                               {foreach from=$availableTemplateGroups item=templateGroup}
+                                                                       <option value="{@$templateGroup->templateGroupID}"{if $templateGroup->templateGroupID == $templateGroupID} selected="selected"{/if}>{$templateGroup->templateGroupName}</option>
+                                                               {/foreach}
                                                        </select>
                                                        {if $errorField == 'templateGroupID'}
                                                                <small class="innerError">
                                                        {/if}
                                                </dd>
                                        </dl>
-                               {/hascontent}
+                               {/if}
                                <dl{if $errorField == 'imagePath'} class="formError"{/if}>
                                        <dt><label for="imagePath">{lang}wcf.acp.style.imagePath{/lang}</label></dt>
                                        <dd>