CRM-17608 - Merge document form tweaks
authorColeman Watts <coleman@civicrm.org>
Tue, 19 Jul 2016 22:04:06 +0000 (18:04 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 19 Jul 2016 22:04:06 +0000 (18:04 -0400)
templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp
templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl

index 2ea37625072774f8e943ea124f75b8863b76e71f..8ccf0e5543c06f02d7287e94b31a49bc3c50cb43 100644 (file)
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
 *}
+{php}$this->assign('uploadFormatsSupported', '.' . implode(', .', array_keys(CRM_Utils_PDF_Document::$ooxmlMap)));{/php}
+{htxt id="template"}
+  <p>
+    {ts}Select a pre-existing template, or upload a document for mail merge.{/ts}
+  </p>
+  <p>
+    {ts 1=$uploadFormatsSupported}Supported file formats: %1{/ts}
+  </p>
+{/htxt}
+
 {htxt id="id-pdf-format-title"}
   {ts}Page Format{/ts}
 {/htxt}
index c8866fcb629d6042e67222aeb53defeaa40df987..eb3e4cd7292818b2d59aed86bc0f01faae11eb4a 100644 (file)
 {if $form.template.html}
 <table class="form-layout-compressed">
     <tr>
-      <td class="label-left">{$form.template.label}</td>
-      <td>{$form.template.html}</td>
-    </tr>
-    <tr>
-      <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<sub>OR</sub></td>
-    </tr>
-    <tr>
-      <td class="label-left">{$form.document_file.label}</td>
-      <td>{$form.document_file.html}<br/><br/></td>
+      <td class="label-left">
+        {$form.template.label}
+        {help id="template" title=$form.template.label file="CRM/Contact/Form/Task/PDFLetterCommon.hlp"}
+      </td>
+      <td>
+        {$form.template.html} {ts}OR{/ts} {$form.document_file.html}
+      </td>
     </tr>
     <tr>
       <td class="label-left">{$form.subject.label}</td>
       <td>{$form.subject.html}</td>
     </tr>
+    {if $form.campaign_id}
     <tr>
       <td class="label-left">{$form.campaign_id.label}</td>
       <td>{$form.campaign_id.html}</td>
     </tr>
+    {/if}
 </table>
 {/if}