CRM-15883 - Suppressing Stationery path field from PDF Letter action since it is...
authorDave Greenberg <dave@civicrm.org>
Thu, 29 Jan 2015 00:53:22 +0000 (16:53 -0800)
committerDave Greenberg <dave@civicrm.org>
Thu, 29 Jan 2015 00:53:22 +0000 (16:53 -0800)
----------------------------------------
* CRM-15883: Need to remove inoperative "stationery" box from page format when using Print PDF letter?
  https://issues.civicrm.org/jira/browse/CRM-15883

CRM/Contact/Form/Task/PDFLetterCommon.php
templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl

index e30edf4440df046b6c27afb53e2b74d51f916bf7..f31d022407244643c18cd923c2da67b226649e70 100644 (file)
@@ -156,6 +156,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
     );
 
     $config = CRM_Core_Config::singleton();
+    /* CRM-15883 Suppressing Stationery path field until we switch from DOMPDF to a library that supports it.    
     if ($config->wkhtmltopdfPath == FALSE) {
       $form->add(
         'text',
@@ -165,6 +166,7 @@ class CRM_Contact_Form_Task_PDFLetterCommon {
         FALSE
       );
     }
+    */
     $form->add('checkbox', 'bind_format', ts('Always use this Page Format with the selected Template'));
     $form->add('checkbox', 'update_format', ts('Update Page Format (this will affect all templates that use this format)'));
 
index 0af078364f52b8c167f366c9838b03a88e8c3de1..cb97d5acdd9c203cd9724a9c8907d6f3886f2f39 100644 (file)
         <td class="label-left">{$form.margin_left.label}</td><td>{$form.margin_left.html}</td>
         <td class="label-left">{$form.margin_right.label}</td><td>{$form.margin_right.html}</td>
       </tr>
+      {* CRM-15883 Suppressing stationery until switch from DOMPDF.
       <tr>
         <td class="label-left">{$form.stationery.label}</td><td>{$form.stationery.html}</td>
         <td colspan="2">&nbsp;</td>
       </tr>
+      *}
     </table>
         <div id="bindFormat">{$form.bind_format.html}&nbsp;{$form.bind_format.label}</div>
         <div id="updateFormat" style="display: none">{$form.update_format.html}&nbsp;{$form.update_format.label}</div>