Made formNotice and formSuccess templates available in the frontend
authorMarcel Werk <burntime@woltlab.com>
Wed, 9 Sep 2020 15:55:29 +0000 (17:55 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 9 Sep 2020 15:55:29 +0000 (17:55 +0200)
com.woltlab.wcf/templates/formNotice.tpl [new file with mode: 0644]
com.woltlab.wcf/templates/formSuccess.tpl [new file with mode: 0644]
syncTemplates.json

diff --git a/com.woltlab.wcf/templates/formNotice.tpl b/com.woltlab.wcf/templates/formNotice.tpl
new file mode 100644 (file)
index 0000000..f63d721
--- /dev/null
@@ -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 (file)
index 0000000..a8347ae
--- /dev/null
@@ -0,0 +1,9 @@
+{if $success|isset}
+       <p class="success" role="status">
+               <span>{lang}wcf.global.success.{$action}{/lang}</span>
+       
+               {if $action == 'add' && !$objectEditLink|empty}
+                       <span>{lang}wcf.global.success.add.editCreatedObject{/lang}</span>
+               {/if}
+       </p>
+{/if}
index a43b1152f6bfefa15581d3c909da1340f7415fa3..267d8a9a6555b5280c73f5787f7e71f8debd9347 100644 (file)
@@ -66,6 +66,8 @@
     "checkboxesSearchableOptionType",
     "fontAwesomeJavaScript",
     "formError",
+    "formNotice",
+    "formSuccess",
     "languageChooser",
     "mediaBBCodeTag",
     "mediaManager",