CRM-13782 - snippet/print tpl - Fix messages display
authorColeman Watts <coleman@civicrm.org>
Sat, 16 Nov 2013 23:23:36 +0000 (15:23 -0800)
committerColeman Watts <coleman@civicrm.org>
Sat, 16 Nov 2013 23:24:19 +0000 (15:24 -0800)
templates/CRM/common/print.tpl
templates/CRM/common/snippet.tpl

index 058ccee91e01e3526e0bc9975867c1b37c60bda0..194573752e27a8ab3eb3d08b22828e46d5aff490 100644 (file)
 <div id="crm-container" class="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
 {crmRegion name='page-header' allowCmsOverride=0}{/crmRegion}
 {* Check for Status message for the page (stored in session->getStatus). Status is cleared on retrieval. *}
-{if $session->getStatus(false)}
-<div class="messages status no-popup">
-  <div class="icon inform-icon"></div>
-  {$session->getStatus(true)}
-</div>
-{/if}
+{include file="CRM/common/status.tpl"}
 
 {crmRegion name='page-body' allowCmsOverride=0}
 <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. -->
index 53b0d1a84bdba5f521e4361d5485faa740261080..561b453fafcb863208384580636497ff655f569d 100644 (file)
     <div class="crm-container-snippet" bgColor="white">
 
     {* Check for Status message for the page (stored in session->getStatus). Status is cleared on retrieval. *}
-    {if $session->getStatus(false)}
-    <div class="messages status no-popup">
-      <div class="icon alert-icon"></div>
-      {$session->getStatus(true)}
-    </div>
-    {/if}
+    {include file="CRM/common/status.tpl"}
 
     <!-- .tpl file invoked: {$tplFile}. Call via form.tpl if we have a form in the page. -->
     {if !empty($isForm)}