CRM-19177 Add in privacy flags to the output of print contact records
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 4 Aug 2016 05:32:08 +0000 (15:32 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 4 Aug 2016 05:38:34 +0000 (15:38 +1000)
templates/CRM/Contact/Form/Task/Print.tpl

index e7b3fbed50dad027ca6679ce9e5fb44c94ddbcc3..f3948d6ae0888f3d1f760357b88321c2d146f8aa 100644 (file)
@@ -55,6 +55,9 @@
     {/if}
     <td>{ts}Email{/ts}</td>
     <td>{ts}Phone{/ts}</td>
+    <td>{ts}Do Not Email{/ts}</td>
+    <td>{ts}Do Not Phone{/ts}</td>
+    <td>{ts}Do Not mail{/ts}</td>
 {/if}
   </tr>
 {foreach from=$rows item=row}
         {/if}
         <td>{$row.email}</td>
         <td>{$row.phone}</td>
+        {if $row.do_not_email == 1}
+          <td>{$row.do_not_email}</td>
+        {else}
+          <td>&nbsp;</td>
+        {/if}
+        {if $row.do_not_phone == 1}
+          <td>{$row.do_not_phone}</td>
+        {else}
+          <td>&nbsp;</td>
+        {/if}
+        {if $row.do_not_mail == 1}
+          <td>{$row.do_not_mail}</td>
+        {else}
+          <td>&nbsp;</td>
+        {/if}
 {/if}
     </tr>
 {/foreach}