From 7d4a943c2a2dfafcece7e92ff73df8db293ae66b Mon Sep 17 00:00:00 2001 From: Adrian Crum Date: Sun, 28 Mar 2010 17:46:45 +0000 Subject: [PATCH] Revert 928451. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928460 13f79535-47bb-0310-9956-ffa450edef68 --- .../templates/htmlScreenMacroLibrary.ftl | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/framework/widget/templates/htmlScreenMacroLibrary.ftl b/framework/widget/templates/htmlScreenMacroLibrary.ftl index bfcc5dd961..d817e2a8d8 100644 --- a/framework/widget/templates/htmlScreenMacroLibrary.ftl +++ b/framework/widget/templates/htmlScreenMacroLibrary.ftl @@ -66,10 +66,47 @@ under the License. <#if text?has_content> <#-- Label is considered block level element in screen widget. There is not reason to render text outside of any html element. Use of style element has set pattern and we'll use style to determine appropriate html element to use --> - <#if "h1~h2~h3~h4~h5~h6"?contains(style)> - <${style}<#if id?has_content> id="${id}">${text} + <#if style?has_content> + <#if style=="h1"> +

+

+

+

+

+
+

<#else> - class="${style}"<#if id?has_content> id="${id}">${text}

+

+ <#if id?has_content > + <#if id?has_content> id="${id}" + + >${text} + <#if style?has_content> + <#if style=="h1"> +

+ <#elseif style=="h2"> + + <#elseif style=="h3"> + + <#elseif style=="h4"> + + <#elseif style=="h5"> + + <#elseif style=="h6"> + + <#else> +

+ + <#else> +