Improve readability of conditions in applicationManagement.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 8 May 2023 14:26:53 +0000 (16:26 +0200)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 14:26:53 +0000 (16:26 +0200)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
wcfsetup/install/files/acp/templates/applicationManagement.tpl

index 6037473332925ccc9e760e3921cf02ccd293a109..bc6e587e53e5c2412e47e28b0fc1c4754b19a6c1 100644 (file)
                                                        <td class="columnText columnLandingPageID">
                                                                <select name="landingPageID[{$application->packageID}]" required>
                                                                        <option value="">{lang}wcf.global.noSelection{/lang}</option>
-                                                                       <option value="0"{if $application->getAbbreviation() !== 'wcf'}{if $application->landingPageID === null} selected{/if}{else} disabled{/if}>{lang}wcf.acp.application.landingPage.default{/lang}</option>
+                                                                       <option value="0"{if $application->getAbbreviation() === 'wcf'} disabled{elseif $application->landingPageID === null} selected{/if}>{lang}wcf.acp.application.landingPage.default{/lang}</option>
                                                                        
                                                                        {foreach from=$pageNodeList item=pageNode}
                                                                                {if !$pageNode->isDisabled && !$pageNode->requireObjectID && !$pageNode->excludeFromLandingPage}