mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fixing chatRoomList-Template
This commit is contained in:
parent
6de5e5a6da
commit
70a57ad117
@ -9,60 +9,58 @@
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<header class="wcf-mainHeading wcf-container">
|
||||
<img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="wcf-containerIcon" />
|
||||
<hgroup class="wcf-containerContent">
|
||||
<header class="box48 boxHeadline">
|
||||
<img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="icon48" />
|
||||
<hgroup>
|
||||
<h1>{lang}wcf.acp.chat.room.list{/lang}</h1>
|
||||
</hgroup>
|
||||
</header>
|
||||
|
||||
<div class="wcf-contentHeader">
|
||||
<div class="contentNavigation">
|
||||
{pages print=true assign=pagesLinks controller="ChatRoomList" link="pageNo=%d"}
|
||||
|
||||
{if $__wcf->session->getPermission('admin.content.chat.canAddRoom')}
|
||||
<nav>
|
||||
<ul class="wcf-largeButtons">
|
||||
<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>
|
||||
<ul>
|
||||
<li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="button"><img src="{@$__wcf->getPath('wcf')}icon/add1.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<section id="chatRoomList" class="wcf-box wcf-marginTop wcf-boxPadding wcf-shadow1 wcf-sortableListContainer">
|
||||
{hascontent}
|
||||
<ol class="wcf-sortableList" data-object-id="0" start="{$startIndex}">
|
||||
{content}
|
||||
{foreach from=$objects item=chatRoom}
|
||||
<li class="wcf-sortableNode wcf-sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}">
|
||||
<span class="wcf-sortableNodeLabel">
|
||||
{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}
|
||||
|
||||
<span class="wcf-statusDisplay wcf-sortableButtonContainer">
|
||||
{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">
|
||||
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
|
||||
<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>
|
||||
{/if}
|
||||
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')}
|
||||
<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}" />
|
||||
<a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a>
|
||||
{else}
|
||||
{$chatRoom->title|language}
|
||||
{/if}
|
||||
|
||||
<span class="statusDisplay sortableButtonContainer">
|
||||
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
|
||||
<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 icon16" /></a>
|
||||
{/if}
|
||||
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')}
|
||||
<img src="{@$__wcf->getPath('wcf')}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton jsTooltip icon16" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}wcf.acp.chat.delete.sure{/lang}" />
|
||||
{/if}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<ol class="wcf-sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li>
|
||||
</li>
|
||||
{/foreach}
|
||||
{/content}
|
||||
</ol>
|
||||
<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>
|
||||
{hascontentelse}
|
||||
<p class="wcf-warning">{lang}wcf.acp.chat.room.noneAvailable{/lang}</p>
|
||||
{/hascontent}
|
||||
</section>
|
||||
<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}
|
||||
<p class="warning">{lang}wcf.acp.chat.room.noneAvailable{/lang}</p>
|
||||
{/hascontent}
|
||||
|
||||
|
||||
{include file='footer'}
|
||||
|
Loading…
Reference in New Issue
Block a user