From daa737bfc6537302acc74363e4149e7ca7dade76 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 16 Apr 2012 18:40:54 +0200 Subject: [PATCH] Redesigned forms (fieldsets), attachments, headlines, code box Fixed some minor style issues --- .../files/acp/templates/acpSessionLog.tpl | 7 +- .../files/acp/templates/acpSessionLogList.tpl | 5 +- .../install/files/acp/templates/cacheList.tpl | 49 +-- .../files/acp/templates/cronjobAdd.tpl | 3 +- .../files/acp/templates/cronjobList.tpl | 5 +- .../files/acp/templates/cronjobLogList.tpl | 3 +- .../install/files/acp/templates/header.tpl | 13 +- .../install/files/acp/templates/login.tpl | 80 ++--- .../install/files/acp/templates/option.tpl | 9 +- .../files/acp/templates/optionImport.tpl | 13 +- .../acp/templates/packageAutoUpdateList.tpl | 3 +- .../files/acp/templates/packageList.tpl | 11 +- .../acp/templates/packageListDetailed.tpl | 3 +- .../acp/templates/packageStartInstall.tpl | 4 +- .../acp/templates/packageUpdateSearch.tpl | 3 +- .../files/acp/templates/updateServerAdd.tpl | 3 +- .../files/acp/templates/updateServerList.tpl | 3 +- .../install/files/acp/templates/userAdd.tpl | 7 +- .../files/acp/templates/userGroupAdd.tpl | 8 +- .../files/acp/templates/userGroupList.tpl | 3 +- .../install/files/acp/templates/userList.tpl | 3 +- .../install/files/acp/templates/userMail.tpl | 3 +- .../files/acp/templates/userSearch.tpl | 11 +- .../acp/templates/usersMassProcessing.tpl | 15 +- wcfsetup/install/files/style/alerts.less | 20 ++ wcfsetup/install/files/style/attachment.less | 77 +++++ wcfsetup/install/files/style/badge.less | 5 + wcfsetup/install/files/style/codebox.less | 54 +-- wcfsetup/install/files/style/forms.less | 308 +++++++++--------- wcfsetup/install/files/style/inputs.less | 6 + wcfsetup/install/files/style/layout.less | 39 +-- wcfsetup/install/files/style/message.less | 14 +- wcfsetup/install/files/style/sidebar.less | 9 +- wcfsetup/install/files/style/tabs.less | 6 +- wcfsetup/install/files/style/tabular.less | 35 +- wcfsetup/install/files/style/userPanel.less | 2 +- wcfsetup/install/files/style/wbb.less | 9 +- 37 files changed, 438 insertions(+), 413 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl index 89e7bc2252..f901a8d62f 100644 --- a/wcfsetup/install/files/acp/templates/acpSessionLog.tpl +++ b/wcfsetup/install/files/acp/templates/acpSessionLog.tpl @@ -1,7 +1,6 @@ {include file='header'} -
- +

{lang}wcf.acp.sessionLog.access.list{/lang}

@@ -14,7 +13,7 @@ {hascontent}
-

{lang}wcf.acp.sessionLog.access.list{/lang} {#$items}

+

{lang}wcf.acp.sessionLog.access.list{/lang} {#$items}

@@ -24,7 +23,7 @@ - + diff --git a/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl b/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl index f7069949f7..82f6fa149f 100644 --- a/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl +++ b/wcfsetup/install/files/acp/templates/acpSessionLogList.tpl @@ -1,7 +1,6 @@ {include file='header'} -
- +

{lang}wcf.acp.sessionLog.list{/lang}

@@ -14,7 +13,7 @@ {hascontent}
-

{lang}wcf.acp.sessionLog.list{/lang} {#$items}

+

{lang}wcf.acp.sessionLog.list{/lang} {#$items}

{lang}wcf.user.ipAddress{/lang}{if $sortField == 'ipAddress'} {/if} {lang}wcf.acp.sessionLog.time{/lang}{if $sortField == 'time'} {/if} {lang}wcf.acp.sessionLog.packageName{/lang}{if $sortField == 'packageName'} {/if}{lang}wcf.acp.sessionLog.className{/lang}{if $sortField == 'className'} {/if}

{lang}wcf.acp.sessionLog.className{/lang}{if $sortField == 'className'} {/if} {lang}wcf.acp.sessionLog.requestURI{/lang}{if $sortField == 'requestURI'} {/if} {lang}wcf.acp.sessionLog.requestMethod{/lang}{if $sortField == 'requestMethod'} {/if}
diff --git a/wcfsetup/install/files/acp/templates/cacheList.tpl b/wcfsetup/install/files/acp/templates/cacheList.tpl index 25b0b9bfba..7015f9cf6b 100644 --- a/wcfsetup/install/files/acp/templates/cacheList.tpl +++ b/wcfsetup/install/files/acp/templates/cacheList.tpl @@ -12,8 +12,7 @@ //]]> -
- +

{lang}wcf.acp.cache.list{/lang}

@@ -23,31 +22,33 @@

{lang}wcf.acp.cache.clear.success{/lang}

{/if} -
- {lang}wcf.acp.cache.data{/lang} - -
-
{lang}wcf.acp.cache.data.source{/lang}
-
{$cacheData.source}
-
- {if $cacheData.version} +
+
+ {lang}wcf.acp.cache.data{/lang} +
-
{lang}wcf.acp.cache.data.version{/lang}
-
{$cacheData.version}
+
{lang}wcf.acp.cache.data.source{/lang}
+
{$cacheData.source}
- {/if} - {if $cacheData.size}
-
{lang}wcf.acp.cache.data.size{/lang}
-
{@$cacheData.size|filesize}
-
{/if} - {if $cacheData.files}
-
{lang}wcf.acp.cache.data.files{/lang}
-
{#$cacheData.files}
-
{/if} + {if $cacheData.version} +
+
{lang}wcf.acp.cache.data.version{/lang}
+
{$cacheData.version}
+
+ {/if} + {if $cacheData.size}
+
{lang}wcf.acp.cache.data.size{/lang}
+
{@$cacheData.size|filesize}
+
{/if} + {if $cacheData.files}
+
{lang}wcf.acp.cache.data.files{/lang}
+
{#$cacheData.files}
+
{/if} + + {event name='dataFields'} +
+
- {event name='dataFields'} -
-
diff --git a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl index 31e6c2525b..aeb8583adb 100644 --- a/wcfsetup/install/files/acp/templates/cronjobLogList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobLogList.tpl @@ -1,7 +1,6 @@ {include file='header'} -
- +

{lang}wcf.acp.cronjob.log{/lang}

{lang}wcf.acp.cronjob.subtitle{/lang}

diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 8a9641d892..7f83b9e95f 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -82,7 +82,6 @@ new WCF.Date.Time(); new WCF.Effect.SmoothScroll(); new WCF.Effect.BalloonTooltip(); - $('').appendTo('.wcf-innerError'); $('#sidebarContent').wcfSidebar(); @@ -103,14 +102,20 @@ @@ -156,7 +161,7 @@ -
+
{hascontent} diff --git a/wcfsetup/install/files/acp/templates/login.tpl b/wcfsetup/install/files/acp/templates/login.tpl index fa2e06e7f8..ad684445ac 100644 --- a/wcfsetup/install/files/acp/templates/login.tpl +++ b/wcfsetup/install/files/acp/templates/login.tpl @@ -14,58 +14,58 @@ //]]> -
- +

{@$pageTitle}

{if $errorField} -

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

+

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

{/if}
-
- {lang}wcf.user.login.data{/lang} +
+
+ {lang}wcf.user.login.data{/lang} + + +
+
+ {if $errorField == 'username'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.user.username.error.{@$errorType}{/lang} + {/if} + + {/if} +
+ + + +
+
+ {if $errorField == 'password'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.user.password.error.{@$errorType}{/lang} + {/if} + + {/if} +
+ + + {event name='dataFields'} +
- -
-
- {if $errorField == 'username'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.user.username.error.{@$errorType}{/lang} - {/if} - - {/if} -
- - - -
-
- {if $errorField == 'password'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.user.password.error.{@$errorType}{/lang} - {/if} - - {/if} -
- - - {event name='dataFields'} -
- - {event name='fieldsets'} + {event name='fieldsets'} +
-
diff --git a/wcfsetup/install/files/acp/templates/option.tpl b/wcfsetup/install/files/acp/templates/option.tpl index 1d091fb8bd..c9e5b24f36 100644 --- a/wcfsetup/install/files/acp/templates/option.tpl +++ b/wcfsetup/install/files/acp/templates/option.tpl @@ -9,8 +9,7 @@ //]]> -
- +

{lang}wcf.acp.option.category.{$category->categoryName}{/lang}

{hascontent}

{content}{lang __optional=true}wcf.acp.option.category.{$category->categoryName}.description{/lang}{/content}

{/hascontent} @@ -37,11 +36,6 @@ {foreach from=$optionTree item=categoryLevel1}
-
diff --git a/wcfsetup/install/files/acp/templates/optionImport.tpl b/wcfsetup/install/files/acp/templates/optionImport.tpl index a0838a4089..4b4f0308a0 100644 --- a/wcfsetup/install/files/acp/templates/optionImport.tpl +++ b/wcfsetup/install/files/acp/templates/optionImport.tpl @@ -1,13 +1,12 @@ {include file='header'} -
- +

{lang}wcf.acp.option.import{/lang}

-{if $errorField != ''} +{if $errorField}

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

{/if} @@ -16,7 +15,7 @@ {/if}
-
+
{lang}wcf.acp.option.import{/lang} @@ -44,19 +43,17 @@
-
-
- +

{lang}wcf.acp.option.export{/lang}

-
+
{lang}wcf.acp.option.export{/lang} diff --git a/wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl b/wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl index dd81555a2d..ae508cafcc 100644 --- a/wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl +++ b/wcfsetup/install/files/acp/templates/packageAutoUpdateList.tpl @@ -22,8 +22,7 @@
-
- +

{lang}wcf.acp.packageUpdate{/lang}

{if $availableUpdates|count} diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index be78aa0aee..3fb05cbde4 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -22,8 +22,7 @@ //]]> -
- +

{lang}wcf.acp.package.list{/lang}

@@ -38,10 +37,6 @@