$this->preventAjaxSubmit();
$this->assign('isAdmin', CRM_Core_Permission::check('administer CiviCRM'));
- $this->add('select', 'from_email_address', ts('From'), $this->_fromEmails, TRUE);
+ $this->add('select', 'from_email_address', ts('From'), $this->_fromEmails, TRUE, ['class' => 'crm-select2 huge']);
if ($this->_selectedOutput != 'email') {
$this->addElement('radio', 'output', NULL, ts('Email Invoice'), 'email_invoice');
$this->addElement('radio', 'output', NULL, ts('PDF Invoice'), 'pdf_invoice');
$this->addRule('from_email_address', ts('From Email Address is required'), 'required');
}
- $attributes = ['class' => 'huge'];
$this->addEntityRef('cc_id', ts('CC'), [
'entity' => 'Email',
'multiple' => TRUE,
]);
- $this->add('text', 'subject', ts('Subject'), $attributes + ['placeholder' => ts('Optional')]);
- $this->add('wysiwyg', 'email_comment', ts('If you would like to add personal message to email please add it here. (If sending to more then one receipient the same message will be sent to each contact.)'), [
+ $this->add('text', 'subject', ts('Replace Subject'), ['class' => 'huge', 'placeholder' => ts('Optional')]);
+ $this->add('wysiwyg', 'email_comment', ts('Additional Message'), [
'rows' => 2,
'cols' => 40,
]);
<p>{ts}You can send your email as a simple text-only message, as an HTML formatted message, or both. Text-only messages are sufficient for most email communication, and some recipients may prefer not to receive HTML formatted messages.{/ts}</p>
<p>{ts}HTML messages have more visual impact, allow you to include images, and may be more readable if you are including links to website pages. However, different email programs may interpret HTML formats differently, so use this option cautiously unless you have a template format that has been tested with different web and desktop email programs.{/ts}</p>
{/htxt}
+
+{htxt id="id-email_comment"}
+{ts}You can add a message that will appear at the top of the invoice email. This message will be the same for all recipients.{/ts}
+{/htxt}
{ts}You may choose to email invoice to contributors OR download a PDF file containing one invoice per page to your local computer by clicking <strong>Process Invoice(s)</strong> . Your browser may display the file for you automatically, or you may need to open it for printing using any PDF reader (such as Adobe® Reader).{/ts}
</div>
{/if}
-
+<div class="crm-block crm-form-block">
<table class="form-layout-compressed">
{if $selectedOutput ne 'email'}
<tr>
</td>
</tr>
<tr class="crm-email-element">
- <td class="label">{$form.email_comment.label}</td>
+ <td class="label">{$form.email_comment.label} {help id="id-email_comment"}</td>
<td>{$form.email_comment.html}</td>
</tr>
{if $selectedOutput ne 'email'}
<td>{$form.pdf_format_id.html}</td>
</tr>
</table>
+</div>
<div class="spacer"></div>
<div class="crm-submit-buttons">