From 850836a13aaf10dc231baa8076ff190ca1fec1a8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 17 Jun 2017 13:23:41 +0200 Subject: [PATCH] Added basic forms for custom options See #2308 --- .../files/acp/templates/contactOptionAdd.tpl | 34 +++++ .../files/acp/templates/customOptionAdd.tpl | 136 ++++++++++++++++++ wcfsetup/install/lang/de.xml | 31 ++++ wcfsetup/install/lang/en.xml | 31 ++++ 4 files changed, 232 insertions(+) create mode 100644 wcfsetup/install/files/acp/templates/contactOptionAdd.tpl create mode 100644 wcfsetup/install/files/acp/templates/customOptionAdd.tpl diff --git a/wcfsetup/install/files/acp/templates/contactOptionAdd.tpl b/wcfsetup/install/files/acp/templates/contactOptionAdd.tpl new file mode 100644 index 0000000000..1468dd6719 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/contactOptionAdd.tpl @@ -0,0 +1,34 @@ +{include file='header' pageTitle='wcf.acp.contact.option.'|concat:$action} + +
+
+

{lang}wcf.acp.contact.option.{@$action}{/lang}

+
+ + +
+ +{include file='formError'} + +{if $success|isset} +

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

+{/if} + +
+ {include file='customOptionAdd'} + + {event name='sections'} + +
+ + {@SECURITY_TOKEN_INPUT_TAG} +
+
+ +{include file='footer'} diff --git a/wcfsetup/install/files/acp/templates/customOptionAdd.tpl b/wcfsetup/install/files/acp/templates/customOptionAdd.tpl new file mode 100644 index 0000000000..c9db2b2dab --- /dev/null +++ b/wcfsetup/install/files/acp/templates/customOptionAdd.tpl @@ -0,0 +1,136 @@ + + +
+ +
+
+ + {if $errorField == 'optionTitle'} + + {if $errorType == 'multilingual'} + {lang}wcf.global.form.error.multilingual{/lang} + {else} + {lang}wcf.acp.customOption.name.error.{@$errorType}{/lang} + {/if} + + {/if} +
+ + {include file='multipleLanguageInputJavascript' elementIdentifier='optionTitle' forceSelection=false} + + +
+
+ + {if $errorField == 'optionDescription'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.customOption.description.error.{@$errorType}{/lang} + {/if} + + {/if} +
+ + {include file='multipleLanguageInputJavascript' elementIdentifier='optionDescription' forceSelection=false} + +
+
+
+ +
+
+ + {event name='dataFields'} +
+ +
+

{lang}wcf.acp.customOption.typeData{/lang}

+ + +
+
+ + {if $errorField == 'optionType'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.customOption.optionType.error.{@$errorType}{/lang} + {/if} + + {/if} +
+ + +
+
+
+ + {lang}wcf.acp.customOption.defaultValue.description{/lang} +
+
+ +
+
+
+ + {if $errorField == 'selectOptions'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.customOption.selectOptions.error.{@$errorType}{/lang} + {/if} + + {/if} + {lang}wcf.acp.customOption.selectOptions.description{/lang} +
+
+ + +
+
+ + {if $errorField == 'validationPattern'} + + {if $errorType == 'empty'} + {lang}wcf.global.form.error.empty{/lang} + {else} + {lang}wcf.acp.customOption.validationPattern.error.{@$errorType}{/lang} + {/if} + + {/if} + {lang}wcf.acp.customOption.validationPattern.description{/lang} +
+ + +
+
+
+ +
+
+ + {event name='typeDataFields'} +
diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 3919b6e46e..42a6af4a24 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1302,6 +1302,37 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> Eingabefelder und Empfänger individuell konfigurieren.]]> + + + + + + + + + + + + + + + + + + + + + {$option->optionTitle|language} wirklich löschen?]]> + + + + + + + + + + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 4a19e61686..05fc636a62 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1293,6 +1293,37 @@ input fields and recipients to better suit your needs.]]> + + + + + + + + + + + + + + + + + + + + + {$option->optionTitle|language}?]]> + + + + + + + + + + -- 2.20.1