From: Coleman Watts Date: Tue, 19 Jul 2016 22:04:06 +0000 (-0400) Subject: CRM-17608 - Merge document form tweaks X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=465c5a7c1361a666c5e1983dbc8e416135b9229c;p=civicrm-core.git CRM-17608 - Merge document form tweaks --- diff --git a/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp b/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp index 2ea3762507..8ccf0e5543 100644 --- a/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp +++ b/templates/CRM/Contact/Form/Task/PDFLetterCommon.hlp @@ -24,6 +24,16 @@ | 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"} +

+ {ts}Select a pre-existing template, or upload a document for mail merge.{/ts} +

+

+ {ts 1=$uploadFormatsSupported}Supported file formats: %1{/ts} +

+{/htxt} + {htxt id="id-pdf-format-title"} {ts}Page Format{/ts} {/htxt} diff --git a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl index c8866fcb62..eb3e4cd729 100644 --- a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl +++ b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl @@ -27,24 +27,24 @@ {if $form.template.html} - - - - - - - - - + + + {if $form.campaign_id} + {/if}
{$form.template.label}{$form.template.html}
        OR
{$form.document_file.label}{$form.document_file.html}

+ {$form.template.label} + {help id="template" title=$form.template.label file="CRM/Contact/Form/Task/PDFLetterCommon.hlp"} + + {$form.template.html} {ts}OR{/ts} {$form.document_file.html} +
{$form.subject.label} {$form.subject.html}
{$form.campaign_id.label} {$form.campaign_id.html}
{/if}