mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
f5a7f6d940
To comply with WoltLab/WCF@ef1f1061b6
77 lines
2.5 KiB
Smarty
77 lines
2.5 KiB
Smarty
{include file='header'}
|
|
|
|
<header class="wcf-mainHeading">
|
|
<img src="{@$__wcf->getPath('wcf')}icon/{$action}1.svg" alt="" />
|
|
<hgroup>
|
|
<h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1>
|
|
</hgroup>
|
|
</header>
|
|
|
|
{if $errorField}
|
|
<p class="wcf-error">{lang}wcf.global.form.error{/lang}</p>
|
|
{/if}
|
|
|
|
{if $success|isset}
|
|
<p class="wcf-success">{lang}wcf.global.form.{$action}.success{/lang}</p>
|
|
{/if}
|
|
|
|
<div class="wcf-contentHeader">
|
|
<nav>
|
|
<ul class="wcf-largeButtons">
|
|
<li><a href="{link controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<form method="post" action="{if $action == 'add'}{link controller='ChatRoomAdd'}{/link}{else}{link controller='ChatRoomEdit'}{/link}{/if}">
|
|
<div class="wcf-border wcf-content">
|
|
<fieldset>
|
|
<legend>{lang}wcf.acp.chat.room.data{/lang}</legend>
|
|
|
|
<dl{if $errorField == 'title'} class="wcf-formError"{/if}>
|
|
<dt><label for="title">{lang}wcf.acp.chat.room.title{/lang}</label></dt>
|
|
<dd>
|
|
<input type="text" id="title" name="title" value="{$title}" autofocus="autofocus" class="long" />
|
|
{if $errorField == 'title'}
|
|
<small class="wcf-innerError">
|
|
{if $errorType == 'empty'}
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
{else}
|
|
{lang}wcf.acp.chat.room.title.error.{@$errorType}{/lang}
|
|
{/if}
|
|
</small>
|
|
{/if}
|
|
</dd>
|
|
</dl>
|
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='title'}
|
|
|
|
<dl{if $errorField == 'topic'} class="wcf-formError"{/if}>
|
|
<dt><label for="topic">{lang}wcf.acp.chat.room.topic{/lang}</label></dt>
|
|
<dd>
|
|
<input type="text" id="topic" name="topic" value="{$topic}" class="long" />
|
|
{if $errorField == 'topic'}
|
|
<small class="wcf-innerError">
|
|
{if $errorType == 'empty'}
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
{else}
|
|
{lang}wcf.acp.chat.room.topic.error.{@$errorType}{/lang}
|
|
{/if}
|
|
</small>
|
|
{/if}
|
|
</dd>
|
|
</dl>
|
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='topic'}
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="wcf-formSubmit">
|
|
<input type="reset" value="{lang}wcf.global.button.reset{/lang}" accesskey="r" />
|
|
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
|
|
{@SID_INPUT_TAG}
|
|
{if $roomID|isset}<input type="hidden" name="id" value="{@$roomID}" />{/if}
|
|
</div>
|
|
</form>
|
|
|
|
{include file='footer'} |