2013-01-19 20:36:40 +01:00
|
|
|
{include file='header' pageTitle='chat.acp.room.list'}
|
2014-02-28 17:06:50 +01:00
|
|
|
|
2013-08-02 00:37:26 +02:00
|
|
|
<script data-relocate="true">
|
2012-03-03 21:36:52 +01:00
|
|
|
//<![CDATA[
|
|
|
|
$(function() {
|
2013-01-19 20:36:40 +01:00
|
|
|
new WCF.Action.Delete('\\chat\\data\\room\\RoomAction', $('.chatRoomRow'));
|
2013-04-05 22:23:52 +02:00
|
|
|
new WCF.Sortable.List('roomList', '\\chat\\data\\room\\RoomAction');
|
2012-03-03 21:36:52 +01:00
|
|
|
});
|
|
|
|
//]]>
|
|
|
|
</script>
|
2014-02-28 17:06:50 +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.list{/lang}</h1>
|
2012-02-04 20:50:18 +01:00
|
|
|
</header>
|
|
|
|
|
2012-04-14 23:38:56 +02:00
|
|
|
<div class="contentNavigation">
|
2013-04-20 17:19:17 +02:00
|
|
|
{hascontent}
|
2012-02-04 20:50:18 +01:00
|
|
|
<nav>
|
2012-04-14 23:38:56 +02:00
|
|
|
<ul>
|
2013-04-20 17:19:17 +02:00
|
|
|
{content}
|
|
|
|
{if $__wcf->session->getPermission('admin.chat.canAddRoom')}
|
2013-04-29 20:05:23 +02:00
|
|
|
<li><a href="{link application='chat' controller='RoomAdd'}{/link}" class="button"><span class="icon icon16 icon-plus"></span> <span>{lang}chat.acp.room.add{/lang}</span></a></li>
|
2013-04-20 17:19:17 +02:00
|
|
|
{/if}
|
|
|
|
{event name='contentNavigationButtonsTop'}
|
|
|
|
{/content}
|
2012-02-04 20:50:18 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2013-04-20 17:19:17 +02:00
|
|
|
{/hascontent}
|
2012-02-04 20:50:18 +01:00
|
|
|
</div>
|
2014-02-28 17:06:50 +01:00
|
|
|
|
2013-04-20 17:19:17 +02:00
|
|
|
{if $objects|count}
|
|
|
|
<section id="roomList" class="container containerPadding sortableListContainer marginTop">
|
2013-04-05 22:23:52 +02:00
|
|
|
<ol class="sortableList" data-object-id="0">
|
2013-04-20 17:19:17 +02:00
|
|
|
{foreach from=$objects item=chatRoom}
|
|
|
|
<li class="sortableNode sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}">
|
|
|
|
<span class="sortableNodeLabel">
|
|
|
|
{if $__wcf->session->getPermission('admin.chat.canEditRoom')}
|
|
|
|
<a href="{link application='chat' controller='RoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a>
|
|
|
|
{else}
|
|
|
|
{$chatRoom->title|language}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<span class="statusDisplay sortableButtonContainer">
|
2013-01-19 20:36:40 +01:00
|
|
|
{if $__wcf->session->getPermission('admin.chat.canEditRoom')}
|
2013-04-20 17:19:17 +02:00
|
|
|
<a href="{link application='chat' controller='RoomEdit' id=$chatRoom->roomID}{/link}"><span title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip icon icon16 icon-pencil" /></a>
|
|
|
|
{/if}
|
|
|
|
{if $__wcf->session->getPermission('admin.chat.canDeleteRoom')}
|
|
|
|
<span title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton jsTooltip icon icon16 icon-remove" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}chat.acp.room.delete.sure{/lang}" />
|
2012-03-03 21:36:52 +01:00
|
|
|
{/if}
|
2012-04-14 23:38:56 +02:00
|
|
|
|
2013-04-20 17:19:17 +02:00
|
|
|
{event name='itemButtons'}
|
2012-03-03 21:36:52 +01:00
|
|
|
</span>
|
2013-04-20 17:19:17 +02:00
|
|
|
</span>
|
|
|
|
<ol class="sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
2012-04-14 23:38:56 +02:00
|
|
|
</ol>
|
|
|
|
<div class="formSubmit">
|
2013-04-27 12:01:43 +02:00
|
|
|
<button class="button buttonPrimary" data-type="submit">{lang}wcf.global.button.saveSorting{/lang}</button>
|
2012-04-14 23:38:56 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2013-04-20 17:19:17 +02:00
|
|
|
{else}
|
2013-06-11 01:01:09 +02:00
|
|
|
<p class="warning">{lang}wcf.global.noItems{/lang}</p>
|
2013-04-20 17:19:17 +02:00
|
|
|
{/if}
|
2012-02-04 20:50:18 +01:00
|
|
|
|
2012-03-24 17:01:07 +01:00
|
|
|
{include file='footer'}
|