From 1c73fac52ffcbc953c963bf50ffbfa9073ed34fc Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 9 Sep 2020 17:55:29 +0200 Subject: [PATCH] Made formNotice and formSuccess templates available in the frontend --- com.woltlab.wcf/templates/formNotice.tpl | 3 +++ com.woltlab.wcf/templates/formSuccess.tpl | 9 +++++++++ syncTemplates.json | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 com.woltlab.wcf/templates/formNotice.tpl create mode 100644 com.woltlab.wcf/templates/formSuccess.tpl diff --git a/com.woltlab.wcf/templates/formNotice.tpl b/com.woltlab.wcf/templates/formNotice.tpl new file mode 100644 index 0000000000..f63d721573 --- /dev/null +++ b/com.woltlab.wcf/templates/formNotice.tpl @@ -0,0 +1,3 @@ +{include file='formError'} + +{include file='formSuccess'} diff --git a/com.woltlab.wcf/templates/formSuccess.tpl b/com.woltlab.wcf/templates/formSuccess.tpl new file mode 100644 index 0000000000..a8347aecb5 --- /dev/null +++ b/com.woltlab.wcf/templates/formSuccess.tpl @@ -0,0 +1,9 @@ +{if $success|isset} +

+ {lang}wcf.global.success.{$action}{/lang} + + {if $action == 'add' && !$objectEditLink|empty} + {lang}wcf.global.success.add.editCreatedObject{/lang} + {/if} +

+{/if} diff --git a/syncTemplates.json b/syncTemplates.json index a43b1152f6..267d8a9a65 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -66,6 +66,8 @@ "checkboxesSearchableOptionType", "fontAwesomeJavaScript", "formError", + "formNotice", + "formSuccess", "languageChooser", "mediaBBCodeTag", "mediaManager", -- 2.20.1