From 70a57ad11799a9995d18446196ec35a4bc34d37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 14 Apr 2012 23:38:56 +0200 Subject: [PATCH 1/2] Fixing chatRoomList-Template --- acptemplate/chatRoomList.tpl | 76 ++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/acptemplate/chatRoomList.tpl b/acptemplate/chatRoomList.tpl index 230e81e..7e5b17e 100644 --- a/acptemplate/chatRoomList.tpl +++ b/acptemplate/chatRoomList.tpl @@ -9,60 +9,58 @@ //]]> -
- -
+
+ +

{lang}wcf.acp.chat.room.list{/lang}

-
+
{pages print=true assign=pagesLinks controller="ChatRoomList" link="pageNo=%d"} {if $__wcf->session->getPermission('admin.content.chat.canAddRoom')} {/if}
- -
- {hascontent} -
    - {content} - {foreach from=$objects item=chatRoom} -
  1. - - {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} - {$chatRoom->title|language} - {else} - {$chatRoom->title|language} - {/if} - - +{hascontent} +
    +
      + {content} + {foreach from=$objects item=chatRoom} +
    1. + {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} - - {/if} - {if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')} - + {$chatRoom->title|language} + {else} + {$chatRoom->title|language} {/if} + + + {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} + + {/if} + {if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')} + + {/if} + - -
      1. - - {/foreach} - {/content} -
      -
      - - -
      - {hascontentelse} -

      {lang}wcf.acp.chat.room.noneAvailable{/lang}

      - {/hascontent} -
      +
      1. + + {/foreach} + {/content} +
      +
      + +
      +
      +{hascontentelse} +

      {lang}wcf.acp.chat.room.noneAvailable{/lang}

      +{/hascontent} {include file='footer'} From 1643c1e82586f9b4a843d5bc00e69ecb4e9a981d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 14 Apr 2012 23:47:09 +0200 Subject: [PATCH 2/2] Fixing chatRoomAdd-Template --- acptemplate/chatRoomAdd.tpl | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/acptemplate/chatRoomAdd.tpl b/acptemplate/chatRoomAdd.tpl index 2e86b46..88faf22 100644 --- a/acptemplate/chatRoomAdd.tpl +++ b/acptemplate/chatRoomAdd.tpl @@ -1,9 +1,5 @@ {include file='header'} - - - - -
      - -
      +
      + +

      {lang}wcf.acp.chat.room.{$action}{/lang}

      {if $errorField} -

      {lang}wcf.global.form.error{/lang}

      +

      {lang}wcf.global.form.error{/lang}

      {/if} {if $success|isset} -

      {lang}wcf.global.form.{$action}.success{/lang}

      +

      {lang}wcf.global.form.{$action}.success{/lang}

      {/if} -
      +
      -
      +
      {lang}wcf.acp.chat.room.data{/lang} - +
      {if $errorField == 'title'} - + {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} {else} @@ -65,12 +61,12 @@ {include file='multipleLanguageInputJavascript' elementIdentifier='title'} - +
      {if $errorField == 'topic'} - + {if $errorType == 'empty'} {lang}wcf.global.form.error.empty{/lang} {else} @@ -90,10 +86,8 @@
      -
      - +
      - {@SID_INPUT_TAG} {if $roomID|isset}{/if}