1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00
Tims-Chat/acptemplates/commandTriggerAdd.tpl

69 lines
2.3 KiB
Smarty
Raw Normal View History

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>
2023-11-04 16:18:57 +00:00
<li><a href="{link application='chat' controller='CommandTriggerList'}{/link}" class="button">{icon name='list'} <span>{lang}chat.acp.command.trigger.list{/lang}</span></a></li>
2018-08-16 22:30:59 +00:00
{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">
{csrfToken}
2018-08-16 22:30:59 +00:00
</div>
</form>
{include file='footer'}