1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-23 21:50:09 +00:00
Tims-Chat/acptemplate/chatRoomList.tpl

63 lines
2.6 KiB
Smarty
Raw Normal View History

2013-01-19 19:36:40 +00:00
{include file='header' pageTitle='chat.acp.room.list'}
2012-03-03 20:36:52 +00:00
<script type="text/javascript">
//<![CDATA[
$(function() {
2013-01-19 19:36:40 +00:00
new WCF.Action.Delete('\\chat\\data\\room\\RoomAction', $('.chatRoomRow'));
new WCF.Sortable.List('chatRoomList', '\\chat\\data\\room\\RoomAction', {@$startIndex-1});
2012-03-03 20:36:52 +00:00
});
//]]>
</script>
2012-04-18 18:49:23 +00:00
<header class="boxHeadline">
2012-04-14 21:38:56 +00:00
<hgroup>
2012-02-04 19:50:18 +00:00
<h1>{lang}wcf.acp.chat.room.list{/lang}</h1>
</hgroup>
</header>
2012-04-14 21:38:56 +00:00
<div class="contentNavigation">
2013-01-19 19:36:40 +00:00
{if $__wcf->session->getPermission('admin.chat.canAddRoom')}
2012-02-04 19:50:18 +00:00
<nav>
2012-04-14 21:38:56 +00:00
<ul>
2013-01-19 19:36:40 +00:00
<li><a href="{link application='chat' controller='ChatRoomAdd'}{/link}" title="{lang}chat.acp.room.add{/lang}" class="button"><img src="{@$__wcf->getPath('wcf')}icon/add.svg" alt="" class="icon24" /> <span>{lang}chat.acp.room.add{/lang}</span></a></li>
2012-02-04 19:50:18 +00:00
</ul>
</nav>
{/if}
</div>
2012-04-14 21:38:56 +00:00
{hascontent}
<section id="chatRoomList" class="container containerPadding sortableListContainer marginTop shadow">
<ol class="sortableList" data-object-id="0" start="{$startIndex}">
{content}
{foreach from=$objects item=chatRoom}
<li class="sortableNode sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}">
<span class="sortableNodeLabel">
2013-01-19 19:36:40 +00:00
{if $__wcf->session->getPermission('admin.chat.canEditRoom')}
<a href="{link application='chat'controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a>
2012-04-14 21:38:56 +00:00
{else}
{$chatRoom->title|language}
2012-03-03 20:36:52 +00:00
{/if}
2012-04-14 21:38:56 +00:00
<span class="statusDisplay sortableButtonContainer">
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
2013-01-19 19:36:40 +00:00
<a href="{link application='chat' controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}"><img src="{@$__wcf->getPath('wcf')}icon/edit.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip icon16" /></a>
2012-04-14 21:38:56 +00:00
{/if}
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')}
2013-01-19 19:36:40 +00:00
<img src="{@$__wcf->getPath('wcf')}icon/delete.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton jsTooltip icon16" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}chat.acp.room.delete.sure{/lang}" />
2012-04-14 21:38:56 +00:00
{/if}
</span>
2012-03-03 20:36:52 +00:00
</span>
2012-04-14 21:38:56 +00:00
<ol class="sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li>
</li>
{/foreach}
{/content}
</ol>
<div class="formSubmit">
<button class="button" data-type="submit">{lang}wcf.global.button.submit{/lang}</button>
</div>
</section>
{hascontentelse}
2013-01-19 19:36:40 +00:00
<p class="warning">{lang}chat.acp.room.noneAvailable{/lang}</p>
2012-04-14 21:38:56 +00:00
{/hascontent}
2012-02-04 19:50:18 +00:00
{include file='footer'}