<script data-relocate="true">
require(['WoltLabSuite/Core/Ui/ItemList/User'], function(UiItemListUser) {
- UiItemListUser.init('user', {
- maxItems: 25
- });
+ {if $action == 'add'}
+ UiItemListUser.init('user', {
+ maxItems: 25
+ });
+ {/if}
elBySel('input[name=useCustomDescription]').addEventListener('click', function () {
if (elBySel('input[name=useCustomDescription]').checked) {
elById('userTrophyDescriptionDL').style.display = 'block';
- } else {
+ }
+ else {
elById('userTrophyDescriptionDL').style.display = 'none';
}
});
<div class="contentHeaderTitle">
<h1 class="contentTitle">{lang}wcf.acp.menu.link.userTrophy.{$action}{/lang}</h1>
</div>
-
+
<nav class="contentHeaderNavigation">
<ul>
<li><a href="{link controller='UserTrophyList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.userTrophy.list{/lang}</span></a></li>
-
+
{event name='contentHeaderNavigation'}
</ul>
</nav>
{/if}
</dd>
</dl>
-
+
<dl{if $errorField == 'trophyID'} class="formError"{/if}>
<dt><label for="trophyID">{lang}wcf.acp.trophy{/lang}</label></dt>
<dd>
{else}
<select name="trophyID" id="trophyID"{if $action == 'edit'} disabled{/if}>
<option value="0">{lang}wcf.global.noSelection{/lang}</option>
-
+
{foreach from=$trophyCategories item=category}
<optgroup label="{$category->getTitle()}">
{foreach from=$category->getTrophies(true) item=trophy}
{/if}
</dd>
</dl>
-
+
<dl>
<dt></dt>
<dd>
</dd>
</dl>
{include file='multipleLanguageInputJavascript' elementIdentifier='description' forceSelection=false}
-
+
{event name='dataFields'}
</div>