From: Marcel Werk Date: Wed, 9 Sep 2020 15:55:29 +0000 (+0200) Subject: Made formNotice and formSuccess templates available in the frontend X-Git-Tag: 5.3.0_Beta_1~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c73fac52ffcbc953c963bf50ffbfa9073ed34fc;p=GitHub%2FWoltLab%2FWCF.git Made formNotice and formSuccess templates available in the frontend --- 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",