2012-10-15 08:51:47 +00:00
|
|
|
{include file='header' pageTitle='wcf.acp.chat.room.'|concat:$action}
|
2012-02-04 20:57:39 +00:00
|
|
|
|
2012-02-26 16:55:44 +00:00
|
|
|
<script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/WCF.ACL.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//<![CDATA[
|
|
|
|
$(function() {
|
|
|
|
WCF.Icon.addObject({
|
2012-05-31 16:17:23 +00:00
|
|
|
'wcf.icon.delete': '{@$__wcf->getPath('wcf')}icon/delete.svg',
|
|
|
|
'wcf.icon.user': '{@$__wcf->getPath('wcf')}icon/user.svg',
|
|
|
|
'wcf.icon.users': '{@$__wcf->getPath('wcf')}icon/users.svg'
|
2012-02-26 16:55:44 +00:00
|
|
|
});
|
|
|
|
|
2012-03-03 20:28:35 +00:00
|
|
|
new WCF.ACL.List($('#groupPermissions'), {@$objectTypeID}, ''{if $roomID|isset}, {@$roomID}{/if});
|
2012-02-26 16:55:44 +00:00
|
|
|
});
|
|
|
|
//]]>
|
|
|
|
</script>
|
|
|
|
|
2012-04-18 18:49:23 +00:00
|
|
|
<header class="boxHeadline">
|
2012-04-14 21:47:09 +00:00
|
|
|
<hgroup>
|
2012-02-04 20:57:39 +00:00
|
|
|
<h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1>
|
|
|
|
</hgroup>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
{if $errorField}
|
2012-04-14 21:47:09 +00:00
|
|
|
<p class="error">{lang}wcf.global.form.error{/lang}</p>
|
2012-02-04 20:57:39 +00:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $success|isset}
|
2012-04-14 21:47:09 +00:00
|
|
|
<p class="success">{lang}wcf.global.form.{$action}.success{/lang}</p>
|
2012-02-04 20:57:39 +00:00
|
|
|
{/if}
|
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<div class="contentNavigation">
|
2012-02-04 20:57:39 +00:00
|
|
|
<nav>
|
2012-04-14 21:47:09 +00:00
|
|
|
<ul>
|
2013-01-19 19:36:40 +00:00
|
|
|
<li><a href="{link application='chat' controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="button"><img src="{@$__wcf->getPath('wcf')}icon/list.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li>
|
2012-02-04 20:57:39 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2013-01-19 19:36:40 +00:00
|
|
|
<form method="post" action="{if $action == 'add'}{link application='chat' controller='ChatRoomAdd'}{/link}{else}{link application='chat' controller='ChatRoomEdit' id=$roomID}{/link}{/if}">
|
2012-04-14 21:47:09 +00:00
|
|
|
<div class="container containerPadding sortableListContainer marginTop shadow">
|
2012-02-04 20:57:39 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{lang}wcf.acp.chat.room.data{/lang}</legend>
|
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<dl{if $errorField == 'title'} class="formError"{/if}>
|
2012-02-04 20:57:39 +00:00
|
|
|
<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'}
|
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}
|
|
|
|
{lang}wcf.acp.chat.room.title.error.{@$errorType}{/lang}
|
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='title'}
|
|
|
|
|
2012-04-14 21:47:09 +00:00
|
|
|
<dl{if $errorField == 'topic'} class="formError"{/if}>
|
2012-02-04 20:57:39 +00:00
|
|
|
<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'}
|
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}
|
|
|
|
{lang}wcf.acp.chat.room.topic.error.{@$errorType}{/lang}
|
|
|
|
{/if}
|
|
|
|
</small>
|
|
|
|
{/if}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
{include file='multipleLanguageInputJavascript' elementIdentifier='topic'}
|
2012-02-26 16:55:44 +00:00
|
|
|
|
|
|
|
<dl id="groupPermissions">
|
|
|
|
<dt>{lang}wcf.acp.acl.permissions{/lang}</dt>
|
|
|
|
<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" />
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{include file='footer'}
|