2012-02-04 19:50:18 +00:00
|
|
|
{include file='header'}
|
2012-03-03 20:36:52 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
//<![CDATA[
|
|
|
|
$(function() {
|
|
|
|
new WCF.Action.Delete('\\wcf\\data\\chat\\room\\ChatRoomAction', $('.chatRoomRow'));
|
2012-03-16 16:09:12 +00:00
|
|
|
new WCF.Sortable.List('chatRoomList', '\\wcf\\data\\chat\\room\\ChatRoomAction', {@$startIndex-1});
|
2012-03-03 20:36:52 +00:00
|
|
|
});
|
|
|
|
//]]>
|
|
|
|
</script>
|
|
|
|
|
2012-03-01 21:53:12 +00:00
|
|
|
<header class="wcf-mainHeading wcf-container">
|
|
|
|
<img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="wcf-containerIcon" />
|
|
|
|
<hgroup class="wcf-containerContent">
|
2012-02-04 19:50:18 +00:00
|
|
|
<h1>{lang}wcf.acp.chat.room.list{/lang}</h1>
|
|
|
|
</hgroup>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<div class="wcf-contentHeader">
|
|
|
|
{pages print=true assign=pagesLinks controller="ChatRoomList" link="pageNo=%d"}
|
|
|
|
|
|
|
|
{if $__wcf->session->getPermission('admin.content.chat.canAddRoom')}
|
|
|
|
<nav>
|
|
|
|
<ul class="wcf-largeButtons">
|
2012-02-05 20:54:37 +00:00
|
|
|
<li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li>
|
2012-02-04 19:50:18 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
2012-03-07 16:49:52 +00:00
|
|
|
<section id="chatRoomList" class="wcf-box wcf-marginTop wcf-boxPadding wcf-shadow1 wcf-sortableListContainer">
|
2012-03-03 20:36:52 +00:00
|
|
|
{hascontent}
|
2012-03-16 16:09:12 +00:00
|
|
|
<ol class="wcf-sortableList" data-object-id="0" start="{$startIndex}">
|
2012-03-03 20:36:52 +00:00
|
|
|
{content}
|
|
|
|
{foreach from=$objects item=chatRoom}
|
2012-03-06 14:27:45 +00:00
|
|
|
<li class="wcf-sortableNode wcf-sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}">
|
2012-03-03 20:36:52 +00:00
|
|
|
<span class="wcf-sortableNodeLabel">
|
2012-03-15 16:35:22 +00:00
|
|
|
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
|
|
|
|
<a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a>
|
|
|
|
{else}
|
|
|
|
{$chatRoom->title|language}
|
|
|
|
{/if}
|
2012-03-03 20:36:52 +00:00
|
|
|
|
2012-03-07 16:49:52 +00:00
|
|
|
<span class="wcf-statusDisplay wcf-sortableButtonContainer">
|
2012-03-03 20:36:52 +00:00
|
|
|
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
|
2012-03-24 16:01:07 +00:00
|
|
|
<a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}"><img src="{@$__wcf->getPath('wcf')}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip" /></a>
|
2012-03-03 20:36:52 +00:00
|
|
|
{/if}
|
|
|
|
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')}
|
2012-03-16 15:50:49 +00:00
|
|
|
<img src="{@$__wcf->getPath('wcf')}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton jsTooltip" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}wcf.acp.chat.delete.sure{/lang}" />
|
2012-03-03 20:36:52 +00:00
|
|
|
{/if}
|
|
|
|
</span>
|
|
|
|
</span>
|
2012-03-06 14:26:21 +00:00
|
|
|
<ol class="wcf-sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li>
|
2012-03-03 20:36:52 +00:00
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
{/content}
|
|
|
|
</ol>
|
2012-03-06 14:26:21 +00:00
|
|
|
<div class="wcf-formSubmit">
|
|
|
|
<button class="wcf-button" data-type="reset">{lang}wcf.global.button.reset{/lang}</button>
|
|
|
|
<button class="wcf-button default" data-type="submit">{lang}wcf.global.button.submit{/lang}</button>
|
|
|
|
</div>
|
2012-03-03 20:36:52 +00:00
|
|
|
{hascontentelse}
|
|
|
|
<p class="wcf-warning">{lang}wcf.acp.chat.room.noneAvailable{/lang}</p>
|
|
|
|
{/hascontent}
|
|
|
|
</section>
|
2012-02-04 19:50:18 +00:00
|
|
|
|
2012-03-06 14:26:21 +00:00
|
|
|
|
2012-03-24 16:01:07 +00:00
|
|
|
{include file='footer'}
|