more work on CRM-12709, fixed profile preview
authorKurund Jalmi <kurund@civicrm.org>
Wed, 29 May 2013 13:00:50 +0000 (18:30 +0530)
committerKurund Jalmi <kurund@civicrm.org>
Wed, 29 May 2013 13:00:50 +0000 (18:30 +0530)
templates/CRM/UF/Form/Preview.tpl

index 697ed8c68a6ae804dd9e9981aff937704e0092f5..3edb143a595a41bb70b06f804f5f929f2461b2b1 100644 (file)
           {if $field.skipDisplay}
             {continue}
           {/if}
-          {if $field.field_type eq "Formatting"}
-            {$field.help_pre}
-            {continue}
-          {/if}
           {if $field.groupTitle != $fieldset}
             {if $fieldset != $zeroField}
               </table>
           <table class="form-layout-compressed" id="table-1">
           {/if}
           {* Show explanatory text for field if not in 'view' mode *}
-          {if $field.help_pre && $action neq 4}
+          {if $field.help_pre && $action neq 4 && $field.field_type neq "Formatting"}
             <tr><td>&nbsp;</td><td class="description">{$field.help_pre}</td></tr>
           {/if}
           {assign var=n value=$field.name}
-          {if $field.options_per_line }
+          {if $field.field_type eq "Formatting"}
+            <tr><td colspan="2">{$field.help_pre}</td></tr>
+          {elseif $field.options_per_line }
             <tr>
               <td class="option-label">{$form.$n.label}</td>
               <td>