2013-01-27 20:10:06 +01:00
|
|
|
{include file='header' pageTitle='chat.acp.room.'|concat:$action}
|
2012-02-04 21:57:39 +01:00
|
|
|
|
2013-09-08 14:45:40 +02:00
|
|
|
{include file='aclPermissions'}
|
|
|
|
{if !$roomID|isset}
|
|
|
|
{include file='aclPermissionJavaScript' containerID='groupPermissions'}
|
|
|
|
{else}
|
|
|
|
{include file='aclPermissionJavaScript' containerID='groupPermissions' objectID=$roomID}
|
|
|
|
{/if}
|
2012-02-26 17:55:44 +01:00
|
|
|
|
2012-04-18 20:49:23 +02:00
|
|
|
<header class="boxHeadline">
|
2013-04-27 22:38:06 +02:00
|
|
|
<h1>{lang}chat.acp.room.{$action}{/lang}</h1>
|
2012-02-04 21:57:39 +01:00
|
|
|
</header>
|
|
|
|
|
2013-10-06 18:14:11 +02:00
|
|
|
{include file='formError'}
|
2012-02-04 21:57:39 +01:00
|
|
|
|
|
|
|
{if $success|isset}
|
2013-08-01 10:30:26 +02:00
|
|
|
<p class="success">{lang}wcf.global.success.{$action}{/lang}</p>
|
2012-02-04 21:57:39 +01:00
|
|
|
{/if}
|
|
|
|
|
2012-04-14 23:47:09 +02:00
|
|
|
<div class="contentNavigation">
|
2013-04-20 17:19:17 +02:00
|
|
|
{hascontent}
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
{content}
|
2013-04-29 20:05:23 +02: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 17:19:17 +02:00
|
|
|
{event name='contentNavigationButtonsTop'}
|
|
|
|
{/content}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{/hascontent}
|
2012-02-04 21:57:39 +01:00
|
|
|
</div>
|
|
|
|
|
2013-04-20 17:19:17 +02: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 21:57:39 +01:00
|
|
|
<fieldset>
|
2013-04-20 17:19:17 +02:00
|
|
|
<legend>{lang}wcf.global.form.data{/lang}</legend>
|
2012-02-04 21:57:39 +01:00
|
|
|
|
2012-04-14 23:47:09 +02:00
|
|
|
<dl{if $errorField == 'title'} class="formError"{/if}>
|
2013-01-27 20:10:06 +01:00
|
|
|
<dt><label for="title">{lang}chat.acp.room.title{/lang}</label></dt>
|
2012-02-04 21:57:39 +01:00
|
|
|
<dd>
|
|
|
|
<input type="text" id="title" name="title" value="{$title}" autofocus="autofocus" class="long" />
|
|
|
|
{if $errorField == 'title'}
|
2012-04-14 23:47:09 +02:00
|
|
|
<small class="innerError">
|
2012-02-04 21:57:39 +01:00
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
2013-01-27 20:10:06 +01:00
|
|
|
{lang}chat.acp.room.title.error.{@$errorType}{/lang}
|
2012-02-04 21:57:39 +01:00
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-01-30 16:52:08 +01:00
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=false}
|
2012-02-04 21:57:39 +01:00
|
|
|
|
2012-04-14 23:47:09 +02:00
|
|
|
<dl{if $errorField == 'topic'} class="formError"{/if}>
|
2013-01-27 20:10:06 +01:00
|
|
|
<dt><label for="topic">{lang}chat.acp.room.topic{/lang}</label></dt>
|
2012-02-04 21:57:39 +01:00
|
|
|
<dd>
|
|
|
|
<input type="text" id="topic" name="topic" value="{$topic}" class="long" />
|
|
|
|
{if $errorField == 'topic'}
|
2012-04-14 23:47:09 +02:00
|
|
|
<small class="innerError">
|
2012-02-04 21:57:39 +01:00
|
|
|
{if $errorType == 'empty'}
|
|
|
|
{lang}wcf.global.form.error.empty{/lang}
|
|
|
|
{else}
|
2013-01-27 20:10:06 +01:00
|
|
|
{lang}chat.acp.room.topic.error.{@$errorType}{/lang}
|
2012-02-04 21:57:39 +01:00
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2013-01-30 16:52:08 +01:00
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='topic' forceSelection=false}
|
2012-02-26 17:55:44 +01:00
|
|
|
|
2015-01-10 00:46:14 +01: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" />
|
2015-03-21 23:38:53 +01:00
|
|
|
{if $errorField == 'maxUsers'}
|
2015-01-10 00:46:14 +01:00
|
|
|
<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 17:55:44 +01:00
|
|
|
<dl id="groupPermissions">
|
2013-05-10 17:05:23 +02:00
|
|
|
<dt>{lang}wcf.acl.permissions{/lang}</dt>
|
2012-02-26 17:55:44 +01:00
|
|
|
<dd></dd>
|
|
|
|
</dl>
|
2012-02-04 21:57:39 +01:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
|
2012-04-14 23:47:09 +02:00
|
|
|
<div class="formSubmit">
|
2012-02-04 21:57:39 +01:00
|
|
|
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
|
2013-10-06 18:14:11 +02:00
|
|
|
{@SECURITY_TOKEN_INPUT_TAG}
|
2012-02-04 21:57:39 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2013-08-01 10:30:26 +02:00
|
|
|
{include file='footer'}
|