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

90 lines
2.8 KiB
Smarty
Raw Normal View History

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
<script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/WCF.ACL.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function() {
2012-03-03 20:28:35 +00:00
new WCF.ACL.List($('#groupPermissions'), {@$objectTypeID}, ''{if $roomID|isset}, {@$roomID}{/if});
});
//]]>
</script>
2012-04-18 18:49:23 +00:00
<header class="boxHeadline">
<h1>{lang}chat.acp.room.{$action}{/lang}</h1>
2012-02-04 20:57:39 +00:00
</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">
2013-04-20 15:19:17 +00:00
{hascontent}
<nav>
<ul>
{content}
<li><a href="{link application='chat' controller='RoomList'}{/link}" title="{lang}chat.acp.menu.link.room.list{/lang}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}chat.acp.menu.link.room.list{/lang}</span></a></li>
{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}
<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'}