[TASK] Render information msg in TS module with a callout 83/51383/3
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 22 Jan 2017 19:17:59 +0000 (20:17 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 23 Jan 2017 09:39:27 +0000 (10:39 +0100)
If a template record does not contain any constants, the information
should be rendered by a nice callout.

Resolves: #79416
Releases: master
Change-Id: I6af7b2676d4a7517bc392595948806df9ae7e042
Reviewed-on: https://review.typo3.org/51383
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/tstemplate/Resources/Private/Templates/ConstantEditor.html

index c8ff849..58305a9 100644 (file)
@@ -22,8 +22,9 @@
             </span></div>
         </f:then>
         <f:else>
-            <h3><core:icon identifier="status-dialog-notification" /><f:translate key="{LLPrefix}noConstants"/></h3>
-            <div><f:translate key="{LLPrefix}noConstantsDescription"/></div>
+            <f:be.infobox title="{f:translate(key:'{LLPrefix}noConstants')}">
+                {f:translate(key:'{LLPrefix}noConstantsDescription')}
+            </f:be.infobox>
         </f:else>
     </f:if>
     <div style="padding-top: 15px;"></div>