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

Merge branch 'master' of github.com:wbbaddons/Tims-Chat

This commit is contained in:
max-m 2012-04-15 00:23:27 +02:00
commit 00ac062818
2 changed files with 51 additions and 59 deletions

View File

@ -1,9 +1,5 @@
{include file='header'} {include file='header'}
<!-- ToDo: DEBUG ONLY -->
<link rel="stylesheet" type="text/css" href="{@$__wcf->getPath('wcf')}style/acl.css" />
<!-- /DEBUG ONLY -->
<script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/WCF.ACL.js"></script> <script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/WCF.ACL.js"></script>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
@ -19,40 +15,40 @@
//]]> //]]>
</script> </script>
<header class="wcf-mainHeading wcf-container"> <header class="box48 boxHeadline">
<img src="{@$__wcf->getPath('wcf')}icon/{$action}1.svg" alt="" class="wcf-containerIcon" /> <img src="{@$__wcf->getPath('wcf')}icon/{$action}1.svg" alt="" class="icon48" />
<hgroup class="wcf-containerContent"> <hgroup>
<h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1> <h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1>
</hgroup> </hgroup>
</header> </header>
{if $errorField} {if $errorField}
<p class="wcf-error">{lang}wcf.global.form.error{/lang}</p> <p class="error">{lang}wcf.global.form.error{/lang}</p>
{/if} {/if}
{if $success|isset} {if $success|isset}
<p class="wcf-success">{lang}wcf.global.form.{$action}.success{/lang}</p> <p class="success">{lang}wcf.global.form.{$action}.success{/lang}</p>
{/if} {/if}
<div class="wcf-contentHeader"> <div class="contentNavigation">
<nav> <nav>
<ul class="wcf-largeButtons"> <ul>
<li><a href="{link controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li> <li><a href="{link controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="button"><img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="icon24" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li>
</ul> </ul>
</nav> </nav>
</div> </div>
<form method="post" action="{if $action == 'add'}{link controller='ChatRoomAdd'}{/link}{else}{link controller='ChatRoomEdit'}{/link}{/if}"> <form method="post" action="{if $action == 'add'}{link controller='ChatRoomAdd'}{/link}{else}{link controller='ChatRoomEdit'}{/link}{/if}">
<div class="wcf-box wcf-marginTop wcf-boxPadding wcf-shadow1"> <div class="container containerPadding sortableListContainer marginTop shadow">
<fieldset> <fieldset>
<legend>{lang}wcf.acp.chat.room.data{/lang}</legend> <legend>{lang}wcf.acp.chat.room.data{/lang}</legend>
<dl{if $errorField == 'title'} class="wcf-formError"{/if}> <dl{if $errorField == 'title'} class="formError"{/if}>
<dt><label for="title">{lang}wcf.acp.chat.room.title{/lang}</label></dt> <dt><label for="title">{lang}wcf.acp.chat.room.title{/lang}</label></dt>
<dd> <dd>
<input type="text" id="title" name="title" value="{$title}" autofocus="autofocus" class="long" /> <input type="text" id="title" name="title" value="{$title}" autofocus="autofocus" class="long" />
{if $errorField == 'title'} {if $errorField == 'title'}
<small class="wcf-innerError"> <small class="innerError">
{if $errorType == 'empty'} {if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang} {lang}wcf.global.form.error.empty{/lang}
{else} {else}
@ -65,12 +61,12 @@
{include file='multipleLanguageInputJavascript' elementIdentifier='title'} {include file='multipleLanguageInputJavascript' elementIdentifier='title'}
<dl{if $errorField == 'topic'} class="wcf-formError"{/if}> <dl{if $errorField == 'topic'} class="formError"{/if}>
<dt><label for="topic">{lang}wcf.acp.chat.room.topic{/lang}</label></dt> <dt><label for="topic">{lang}wcf.acp.chat.room.topic{/lang}</label></dt>
<dd> <dd>
<input type="text" id="topic" name="topic" value="{$topic}" class="long" /> <input type="text" id="topic" name="topic" value="{$topic}" class="long" />
{if $errorField == 'topic'} {if $errorField == 'topic'}
<small class="wcf-innerError"> <small class="innerError">
{if $errorType == 'empty'} {if $errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang} {lang}wcf.global.form.error.empty{/lang}
{else} {else}
@ -90,10 +86,8 @@
</fieldset> </fieldset>
</div> </div>
<div class="wcf-formSubmit"> <div class="formSubmit">
<input type="reset" value="{lang}wcf.global.button.reset{/lang}" accesskey="r" />
<input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" /> <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s" />
{@SID_INPUT_TAG}
{if $roomID|isset}<input type="hidden" name="id" value="{@$roomID}" />{/if} {if $roomID|isset}<input type="hidden" name="id" value="{@$roomID}" />{/if}
</div> </div>
</form> </form>

View File

@ -9,60 +9,58 @@
//]]> //]]>
</script> </script>
<header class="wcf-mainHeading wcf-container"> <header class="box48 boxHeadline">
<img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="wcf-containerIcon" /> <img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" class="icon48" />
<hgroup class="wcf-containerContent"> <hgroup>
<h1>{lang}wcf.acp.chat.room.list{/lang}</h1> <h1>{lang}wcf.acp.chat.room.list{/lang}</h1>
</hgroup> </hgroup>
</header> </header>
<div class="wcf-contentHeader"> <div class="contentNavigation">
{pages print=true assign=pagesLinks controller="ChatRoomList" link="pageNo=%d"} {pages print=true assign=pagesLinks controller="ChatRoomList" link="pageNo=%d"}
{if $__wcf->session->getPermission('admin.content.chat.canAddRoom')} {if $__wcf->session->getPermission('admin.content.chat.canAddRoom')}
<nav> <nav>
<ul class="wcf-largeButtons"> <ul>
<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> <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> </ul>
</nav> </nav>
{/if} {/if}
</div> </div>
{hascontent}
<section id="chatRoomList" class="wcf-box wcf-marginTop wcf-boxPadding wcf-shadow1 wcf-sortableListContainer"> <section id="chatRoomList" class="container containerPadding sortableListContainer marginTop shadow">
{hascontent} <ol class="sortableList" data-object-id="0" start="{$startIndex}">
<ol class="wcf-sortableList" data-object-id="0" start="{$startIndex}">
{content} {content}
{foreach from=$objects item=chatRoom} {foreach from=$objects item=chatRoom}
<li class="wcf-sortableNode wcf-sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}"> <li class="sortableNode sortableNoNesting chatRoomRow" data-object-id="{@$chatRoom->roomID}">
<span class="wcf-sortableNodeLabel"> <span class="sortableNodeLabel">
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
<a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a> <a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}">{$chatRoom->title|language}</a>
{else} {else}
{$chatRoom->title|language} {$chatRoom->title|language}
{/if} {/if}
<span class="wcf-statusDisplay wcf-sortableButtonContainer"> <span class="statusDisplay sortableButtonContainer">
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} {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> <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}
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')} {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}" /> <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} {/if}
</span> </span>
</span> </span>
<ol class="wcf-sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li> <ol class="sortableList" data-object-id="{@$chatRoom->roomID}"></ol></li>
</li> </li>
{/foreach} {/foreach}
{/content} {/content}
</ol> </ol>
<div class="wcf-formSubmit"> <div class="formSubmit">
<button class="wcf-button" data-type="reset">{lang}wcf.global.button.reset{/lang}</button> <button class="button" data-type="submit">{lang}wcf.global.button.submit{/lang}</button>
<button class="wcf-button default" data-type="submit">{lang}wcf.global.button.submit{/lang}</button>
</div> </div>
{hascontentelse} </section>
<p class="wcf-warning">{lang}wcf.acp.chat.room.noneAvailable{/lang}</p> {hascontentelse}
{/hascontent} <p class="warning">{lang}wcf.acp.chat.room.noneAvailable{/lang}</p>
</section> {/hascontent}
{include file='footer'} {include file='footer'}