2018-08-16 22:30:59 +00:00
|
|
|
{include file='header' pageTitle='chat.acp.command.trigger.'|concat:$action}
|
|
|
|
|
|
|
|
<header class="contentHeader">
|
|
|
|
<div class="contentHeaderTitle">
|
|
|
|
<h1 class="contentTitle">{lang}chat.acp.command.trigger.{$action}{/lang}</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<nav class="contentHeaderNavigation">
|
|
|
|
<ul>
|
|
|
|
<li><a href="{link application='chat' controller='CommandTriggerList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}chat.acp.command.trigger.list{/lang}</span></a></li>
|
|
|
|
|
|
|
|
{event name='contentHeaderNavigation'}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
2021-08-15 10:50:51 +00:00
|
|
|
{include file='formNotice'}
|
2018-08-16 22:30:59 +00:00
|
|
|
|
|
|
|
<form method="post" action="{if $action == 'add'}{link application='chat' controller='CommandTriggerAdd'}{/link}{else}{link application='chat' controller='CommandTriggerEdit' id=$triggerID}{/link}{/if}">
|
|
|
|
<div class="section">
|
|
|
|
<div class="section">
|
|
|
|
<dl{if $errorField == 'commandTrigger'} class="formError"{/if}>
|
|
|
|
<dt><label for="commandTrigger">{lang}chat.acp.command.trigger{/lang}</label></dt>
|
|
|
|
<dd>
|
|
|
|
<input type="text" id="commandTrigger" name="commandTrigger" value="{$commandTrigger}" autofocus class="medium">
|
|
|
|
{if $errorField == 'commandTrigger'}
|
|
|
|
<small class="innerError">
|
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
|
|
|
{lang}chat.acp.command.trigger.commandTrigger.error.{@$errorType}{/lang}
|
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<dl{if $errorField == 'className'} class="formError"{/if}>
|
|
|
|
<dt><label for="className">{lang}chat.acp.command.className{/lang}</label></dt>
|
|
|
|
<dd>
|
|
|
|
<select id="className" name="className">
|
|
|
|
{foreach from=$availableCommands item=$command}
|
|
|
|
<option value="{$command->className}"{if $command->className === $className} selected{/if}>{$command->className}</option>
|
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
{if $errorField == 'className'}
|
|
|
|
<small class="innerError">
|
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
|
|
|
{lang}chat.acp.command.trigger.className.error.{@$errorType}{/lang}
|
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="formSubmit">
|
|
|
|
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
|
2021-08-15 10:48:36 +00:00
|
|
|
{csrfToken}
|
2018-08-16 22:30:59 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{include file='footer'}
|
|
|
|
|