Fixed issue in box management
authorMarcel Werk <burntime@woltlab.com>
Tue, 26 Jul 2016 15:36:49 +0000 (17:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 26 Jul 2016 15:36:49 +0000 (17:36 +0200)
wcfsetup/install/files/acp/templates/boxAdd.tpl

index ed53d968d779f10b9db9b59604472838be26b133..aff4cbb3f7f9161de2e4e6ab24cfb32a870e9b47 100644 (file)
                                        </dd>
                                </dl>
                                
-                               <dl id="boxControllerContainer"{if $errorField == 'boxControllerID'} class="formError"{/if}{if !$boxController} style="display: none;"{/if}>
-                                       <dt><label for="boxControllerID">{lang}wcf.acp.box.boxController{/lang}</label></dt>
-                                       <dd>
-                                               <select name="boxControllerID" id="boxControllerID">
-                                                       {foreach from=$availableBoxControllers item=availableBoxController}
-                                                               <option value="{@$availableBoxController->objectTypeID}"{if $boxController && $availableBoxController->objectTypeID == $boxController->objectTypeID} selected{/if} data-supported-positions='[{implode from=$availableBoxPositions[$availableBoxController->objectTypeID] item=$__position}"{$__position}"{/implode}]'>{lang}wcf.acp.box.boxController.{@$availableBoxController->objectType}{/lang}</option>
-                                                       {/foreach}
-                                               </select>
-                                               
-                                               {if $errorField == 'boxType'}
-                                                       <small class="innerError">
-                                                               {if $errorType == 'empty'}
-                                                                       {lang}wcf.global.form.error.empty{/lang}
-                                                               {else}
-                                                                       {lang}wcf.acp.box.boxController.error.{@$errorType}{/lang}
-                                                               {/if}
-                                                       </small>
-                                               {/if}
-                                       </dd>
-                               </dl>
+                               {if $boxType == 'system'}
+                                       <dl id="boxControllerContainer"{if $errorField == 'boxControllerID'} class="formError"{/if}{if !$boxController} style="display: none;"{/if}>
+                                               <dt><label for="boxControllerID">{lang}wcf.acp.box.boxController{/lang}</label></dt>
+                                               <dd>
+                                                       <select name="boxControllerID" id="boxControllerID">
+                                                               {foreach from=$availableBoxControllers item=availableBoxController}
+                                                                       <option value="{@$availableBoxController->objectTypeID}"{if $boxController && $availableBoxController->objectTypeID == $boxController->objectTypeID} selected{/if} data-supported-positions='[{implode from=$availableBoxPositions[$availableBoxController->objectTypeID] item=$__position}"{$__position}"{/implode}]'>{lang}wcf.acp.box.boxController.{@$availableBoxController->objectType}{/lang}</option>
+                                                               {/foreach}
+                                                       </select>
+                                                       
+                                                       {if $errorField == 'boxType'}
+                                                               <small class="innerError">
+                                                                       {if $errorType == 'empty'}
+                                                                               {lang}wcf.global.form.error.empty{/lang}
+                                                                       {else}
+                                                                               {lang}wcf.acp.box.boxController.error.{@$errorType}{/lang}
+                                                                       {/if}
+                                                               </small>
+                                                       {/if}
+                                               </dd>
+                                       </dl>
+                               {/if}
                                
                                <dl{if $errorField == 'position'} class="formError"{/if}>
                                        <dt><label for="position">{lang}wcf.acp.box.position{/lang}</label></dt>