From 0daf121703f0a2c362548062d46e9929964b182f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 15 Jul 2015 12:27:58 +0200 Subject: [PATCH] Export as package now requires a set packageName --- .../install/files/acp/templates/styleAdd.tpl | 4 +- .../files/acp/templates/styleExport.tpl | 61 +++++-------------- 2 files changed, 18 insertions(+), 47 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index cc85a392a5..3ab155d864 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -77,7 +77,9 @@ {* general *}
-
+

{lang}wcf.acp.style.protected{/lang}

+ +
{lang}wcf.acp.style.general.data{/lang} diff --git a/wcfsetup/install/files/acp/templates/styleExport.tpl b/wcfsetup/install/files/acp/templates/styleExport.tpl index e34fd66634..b6b7fd4235 100644 --- a/wcfsetup/install/files/acp/templates/styleExport.tpl +++ b/wcfsetup/install/files/acp/templates/styleExport.tpl @@ -1,20 +1,5 @@ {include file='header' pageTitle='wcf.acp.style.exportStyle'} - -

{lang}wcf.acp.style.exportStyle{/lang}

@@ -53,37 +38,21 @@ {event name='componentFields'}
-
- {lang}wcf.acp.style.exportStyle.asPackage{/lang} - {lang}wcf.acp.style.exportStyle.asPackage.description{/lang} - -
-
-
- -
-
-
-
- -
-
- - {if $errorField == 'packageName'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.packageName.error.{$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.packageName.description{/lang} -
-
- - {event name='exportAsPackageFields'} -
+ {if $style->packageName} +
+ {lang}wcf.acp.style.exportStyle.asPackage{/lang} + {lang}wcf.acp.style.exportStyle.asPackage.description{/lang} + +
+
+
+ +
+
+ + {event name='exportAsPackageFields'} +
+ {/if} {event name='fieldsets'}
-- 2.20.1