2013-01-27 19:10:06 +00:00
|
|
|
{include file='header' pageTitle='chat.acp.room.'|concat:$action}
|
2012-02-04 20:57:39 +00:00
|
|
|
|
2013-09-08 12:45:40 +00:00
|
|
|
{include file='aclPermissions'}
|
|
|
|
{if !$roomID|isset}
|
|
|
|
{include file='aclPermissionJavaScript' containerID='groupPermissions'}
|
|
|
|
{else}
|
|
|
|
{include file='aclPermissionJavaScript' containerID='groupPermissions' objectID=$roomID}
|
|
|
|
{/if}
|
2012-02-26 16:55:44 +00:00
|
|
|
|
2012-04-18 18:49:23 +00:00
|
|
|
<header class="boxHeadline">
|
2013-04-27 20:38:06 +00:00
|
|
|
<h1>{lang}chat.acp.room.{$action}{/lang}</h1>
|
2012-02-04 20:57:39 +00:00
|
|
|
</header>
|
|
|
|
|
2013-10-06 16:14:11 +00:00
|
|
|
{include file='formError'}
|
2012-02-04 20:57:39 +00:00
|
|
|
|
|
|
|
{if $success|isset}
|
2013-08-01 08:30:26 +00:00
|
|
|
<p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
|
2012-02-04 20:57:39 +00:00
|
|
|
{/if}
|
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<div class="contentNavigation">
|
2013-04-20 15:19:17 +00:00
|
|
|
{hascontent}
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
{content}
|
2013-04-29 18:05:23 +00:00
|
|
|
<li><a href="{link application='chat' controller='RoomList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}chat.acp.menu.link.room.list{/lang}</span></a></li>
|
2013-04-20 15:19:17 +00:00
|
|
|
{event name='contentNavigationButtonsTop'}
|
|
|
|
{/content}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{/hascontent}
|
2012-02-04 20:57:39 +00:00
|
|
|
</div>
|
|
|
|
|
2013-04-20 15:19:17 +00:00
|
|
|
<form method="post" action="{if $action == 'add'}{link application='chat' controller='RoomAdd'}{/link}{else}{link application='chat' controller='RoomEdit' id=$roomID}{/link}{/if}">
|
|
|
|
<div class="container containerPadding marginTop">
|
2012-02-04 20:57:39 +00:00
|
|
|
<fieldset>
|
2013-04-20 15:19:17 +00:00
|
|
|
<legend>{lang}wcf.global.form.data{/lang}</legend>
|
2012-02-04 20:57:39 +00:00
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<dl{if $errorField == 'title'} class="formError"{/if}>
|
2013-01-27 19:10:06 +00:00
|
|
|
<dt><label for="title">{lang}chat.acp.room.title{/lang}</label></dt>
|
2012-02-04 20:57:39 +00:00
|
|
|
<dd>
|
|
|
|
<input type="text" id="title" name="title" value="{$title}" autofocus="autofocus" class="long" />
|
|
|
|
{if $errorField == 'title'}
|
2012-04-14 21:47:09 +00:00
|
|
|
<small class="innerError">
|
2012-02-04 20:57:39 +00:00
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
2013-01-27 19:10:06 +00:00
|
|
|
{lang}chat.acp.room.title.error.{@$errorType}{/lang}
|
2012-02-04 20:57:39 +00:00
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-01-30 15:52:08 +00:00
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false}
|
2012-02-04 20:57:39 +00:00
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<dl{if $errorField == 'topic'} class="formError"{/if}>
|
2013-01-27 19:10:06 +00:00
|
|
|
<dt><label for="topic">{lang}chat.acp.room.topic{/lang}</label></dt>
|
2012-02-04 20:57:39 +00:00
|
|
|
<dd>
|
|
|
|
<input type="text" id="topic" name="topic" value="{$topic}" class="long" />
|
|
|
|
{if $errorField == 'topic'}
|
2012-04-14 21:47:09 +00:00
|
|
|
<small class="innerError">
|
2012-02-04 20:57:39 +00:00
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
2013-01-27 19:10:06 +00:00
|
|
|
{lang}chat.acp.room.topic.error.{@$errorType}{/lang}
|
2012-02-04 20:57:39 +00:00
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-01-30 15:52:08 +00:00
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='topic' forceSelection=false}
|
2012-02-26 16:55:44 +00:00
|
|
|
|
2015-01-09 23:46:14 +00:00
|
|
|
<dl{if $errorField == 'maxUsers'} class="formError"{/if}>
|
|
|
|
<dt><label for="maxUsers">{lang}chat.acp.room.maxUsers{/lang}</label></dt>
|
|
|
|
<dd>
|
|
|
|
<input id="maxUsers" class="tiny" type="number" min="0" value="{$maxUsers}" name="maxUsers" />
|
|
|
|
{if $errorField == 'topic'}
|
|
|
|
<small class="innerError">
|
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
|
|
|
{lang}chat.acp.room.topic.error.{@$errorType}{/lang}
|
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2012-02-26 16:55:44 +00:00
|
|
|
<dl id="groupPermissions">
|
2013-05-10 15:05:23 +00:00
|
|
|
<dt>{lang}wcf.acl.permissions{/lang}</dt>
|
2012-02-26 16:55:44 +00:00
|
|
|
<dd></dd>
|
|
|
|
</dl>
|
2012-02-04 20:57:39 +00:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<div class="formSubmit">
|
2012-02-04 20:57:39 +00:00
|
|
|
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
|
2013-10-06 16:14:11 +00:00
|
|
|
{@SECURITY_TOKEN_INPUT_TAG}
|
2012-02-04 20:57:39 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2013-08-01 08:30:26 +00:00
|
|
|
{include file='footer'}
|