First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,60 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-block crm-form-block crm-mailing-approve-form-block">
|
||||
|
||||
<table class="form-layout">
|
||||
<tbody>
|
||||
<tr class="crm-mailing-approve-form-block-approval_status">
|
||||
<td class="label">{$form.approval_status_id.label}</td>
|
||||
<td>{$form.approval_status_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-approve-form-block-approval_note">
|
||||
<td class="label">{$form.approval_note.label}</td>
|
||||
<td>{$form.approval_note.html}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
|
||||
<div class="crm-accordion-wrapper crm-plain_text_email-accordion collapsed">
|
||||
<div class="crm-accordion-header">
|
||||
{ts}Preview Mailing{/ts}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-test-form-block-subject"><td class="label">{ts}Subject:{/ts}</td><td>{$preview.subject}</td></tr>
|
||||
{if $preview.attachment}
|
||||
<tr class="crm-mailing-test-form-block-attachment"><td class="label">{ts}Attachment(s):{/ts}</td><td>{$preview.attachment}</td></tr>
|
||||
{/if}
|
||||
{if $preview.viewURL}
|
||||
<tr><td class="label">{if $preview.type eq 'html'}{ts}Mailing HTML:{/ts}{else}{ts}Mailing Text:{/ts}{/if}</td><td><iframe height="300" src="{$preview.viewURL}" width="80%"><a href="{$preview.viewURL}" onclick="window.open(this.href); return false;">{ts}Mailing Text:{/ts}</a></iframe></td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
|
||||
</div>
|
|
@ -0,0 +1,40 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this template is used for adding/editing a mailing component *}
|
||||
<div class="crm-block crm-form-block crm-mailing-component-form-block">
|
||||
<fieldset><legend>{if $action eq 1}{ts}New Mailing Component{/ts}{else}{ts}Edit Mailing Component{/ts}{/if}</legend>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-component-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-component_type"><td class="label">{$form.component_type.label}</td><td>{$form.component_type.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-subject"><td class="label">{$form.subject.label}</td><td>{$form.subject.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-body_html"><td class="label">{$form.body_html.label}</td><td>{$form.body_html.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-body_text"><td class="label">{$form.body_text.label}</td><td>{$form.body_text.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-is_default"><td class="label">{$form.is_default.label}</td><td>{$form.is_default.html}</td>
|
||||
<tr class="crm-mailing-component-form-block-is_active"><td class="label">{$form.is_active.label}</td><td>{$form.is_active.html}</td>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
</div>
|
|
@ -0,0 +1,93 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="messages status float-right no-popup">
|
||||
{ts}Total Recipients:{/ts} <strong>{$count|crmNumberFormat}</strong>
|
||||
</div>
|
||||
{if $action eq 256 & $ssid eq null}
|
||||
<div class="status float-right">
|
||||
<div id="popupContainer">
|
||||
<table id="selectedRecords" class="display crm-copy-fields">
|
||||
<thead>
|
||||
<tr class="columnheader">
|
||||
<th class="contact_details">Name</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{foreach from=$value item='row'}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td class="name">{$row}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<a href="#" id="button"title="Contacts selected in the Find Contacts page"> {ts}View Selected Contacts{/ts}</a>
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
|
||||
CRM.$(function($) {
|
||||
$("#popupContainer").hide();
|
||||
$("#button").click(function() {
|
||||
$("#popupContainer").dialog({
|
||||
title: {/literal}"{ts escape='js'}Selected Contacts{/ts}"{literal},
|
||||
width:700,
|
||||
height:500,
|
||||
modal: true
|
||||
});
|
||||
});
|
||||
var count = 0; var columns=''; var sortColumn = '';
|
||||
|
||||
$('#selectedRecords th').each( function( ) {
|
||||
if ( $(this).attr('class') == 'contact_details' ) {
|
||||
sortColumn += '[' + count + ', "asc" ],';
|
||||
columns += '{"sClass": "contact_details"},';
|
||||
} else {
|
||||
columns += '{ "bSortable": false },';
|
||||
}
|
||||
count++;
|
||||
});
|
||||
|
||||
columns = columns.substring(0, columns.length - 1 );
|
||||
sortColumn = sortColumn.substring(0, sortColumn.length - 1 );
|
||||
eval('sortColumn =[' + sortColumn + ']');
|
||||
eval('columns =[' + columns + ']');
|
||||
|
||||
//load jQuery data table.
|
||||
$('#selectedRecords').dataTable( {
|
||||
"sPaginationType": "full_numbers",
|
||||
"bJQueryUI" : true,
|
||||
"aaSorting" : sortColumn,
|
||||
"aoColumns" : columns,
|
||||
"bFilter" : false
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
|
@ -0,0 +1,54 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-mailing-forward-form-block">
|
||||
<br />
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div><br />
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-forward-form-block-fromEmail"><td class="label">From</td><td>{$fromEmail}</td></tr>
|
||||
<tr><td colspan="2">{ts}Please enter up to 5 email addresses to receive the mailing.{/ts}</td></tr>
|
||||
<tr class="crm-mailing-forward-form-block-email_0"><td class="label" >{$form.email_0.label}</td><td>{$form.email_0.html}</td></tr>
|
||||
<tr class="crm-mailing-forward-form-block-email_1"><td class="label" >{$form.email_1.label}</td><td>{$form.email_1.html}</td></tr>
|
||||
<tr class="crm-mailing-forward-form-block-email_2"><td class="label" >{$form.email_2.label}</td><td>{$form.email_2.html}</td></tr>
|
||||
<tr class="crm-mailing-forward-form-block-email_3"><td class="label" >{$form.email_3.label}</td><td>{$form.email_3.html}</td></tr>
|
||||
<tr class="crm-mailing-forward-form-block-email_4"><td class="label" >{$form.email_4.label}</td><td>{$form.email_4.html}</td></tr>
|
||||
|
||||
</table>
|
||||
<div id="comment_show">
|
||||
<a href="#" class="button" onclick="cj('#comment_show').hide(); cj('#comment').show(); document.getElementById('forward_comment').focus(); return false;"><span>» {ts}Add Comment{/ts}</span></a>
|
||||
</div><div class="spacer"></div>
|
||||
<div id="comment" style="display:none">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-forward-form-block-forward_comment"><td><a href="#" onclick="cj('#comment').hide(); cj('#comment_show').show(); return false;"><img src="{$config->resourceBase}i/TreeMinus.gif" class="action-icon" alt="{ts}close section{/ts}"/></a>
|
||||
<label>{$form.forward_comment.label}</label></td>
|
||||
<td>{$form.forward_comment.html}<br /><br />
|
||||
{$form.html_comment.html}<br /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,97 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="mailing-name-title"}
|
||||
{ts}Name{/ts}
|
||||
{/htxt}
|
||||
{htxt id="mailing-name"}
|
||||
{ts}Assign a unique name to each of your mailings. Select a naming convention that will help keep your mailings organized and easy to find when you want to review and compare mailing results. For example, if you do a monthly general-interest newsletter - you might use the following naming convention:{/ts}
|
||||
<div class="status">
|
||||
{ts}General Monthly Newsletter: 200709{/ts}
|
||||
</div>
|
||||
<p></p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="base-group-title"}
|
||||
{ts}Group{/ts}
|
||||
{/htxt}
|
||||
{htxt id="base-group"}
|
||||
<h3>{ts}Search-based mailings require an "unsubscribe tracking" group.{/ts}</h3>
|
||||
<p>{ts}Because this mailing is using the results of a search to provide the recipient list, you need to specify a group to track people who unsubscribe in response to this mailing.{/ts}</p>
|
||||
<p>{ts}If a recipient unsubscribes from this mailing, they will be excluded from future mailings which use the same "Unsubscription Group". This is achieved through actually marking the contact as "unsubscribed from the group". If a contact in your search results has already been marked as unsubscribed from that group, they will be excluded from this mailing.{/ts}</p>
|
||||
<p>{ts}If a recipient clicks the unsubscribe link they will see the "Unsubscription Group" title on the unsubscribe page. The selected group should have a title that corresponds to the content / type of mailing being sent.{/ts}</p>
|
||||
<p>{ts}NOTE: Contacts who are in the "Unsubscription Group" but do not match your search critera will not be included in the mailing regardless of their status in that group. This is a change from previous versions which used the term "Base Group".{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="dedupe-email-title"}
|
||||
{ts}Dedupe{/ts}
|
||||
{/htxt}
|
||||
{htxt id="dedupe-email"}
|
||||
<p>{ts}CiviCRM will always dedupe your mailing based on unique contact records. For example, if a contact is in three of the groups you are including in your mailing, they will only be sent one copy of the email.{/ts}</p>
|
||||
<p>{ts}However, if the same email is used by multiple contacts, that email address will receive multiple copies of the email -- one for each contact using that address.{/ts}</p>
|
||||
<p>{ts}Selecting this option will ensure only one email is sent to each address. Note that when using this option and including contact tokens in your email content, the email with it's respective tokens will only be created for one of the matching contacts.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="email-selection-title"}
|
||||
{ts}Email selection{/ts}
|
||||
{/htxt}
|
||||
{htxt id="email-selection"}
|
||||
<p>{ts}Some of your contacts may have more than one email address. By selecting a location and a selection method, you can tell CiviCRM which email address to use for this mailing.{/ts}</p>
|
||||
<p>{ts}Automatic: If you choose automatic for both the location and the selection method, CiviCRM will choose the best option for each user: If an email is marked "Bulk" then it will be used; otherwise, the email marked "Primary" will be used.{/ts}</p>
|
||||
<p>{ts}If "Only send to email addresses assigned to the specified location" is selected, then the recipients will be restricted to only include contacts that have an email address assigned to the given location. This option may limit the number of recipients in your mailing.{/ts}</p>
|
||||
<p>{ts}If "Prefer email addresses assigned to the specified location" is selected, then recipients that have an email address assigned to the given location will have that email used. Other recipients will have their email selected using the automatic method.{/ts}</p>
|
||||
<p>{ts}If "Exclude email addresses assigned to the specified location" is chosen, then recipients who only have an email address assigned to the given location will be excluded. Everyone else will have their email chosen from the list of emails that are not assigned to the given location, using the automatic method.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="include-groups-title"}
|
||||
{ts}Include Groups{/ts}
|
||||
{/htxt}
|
||||
{htxt id="include-groups"}
|
||||
<p>{ts}Determine the contacts in your database who should receive this mailing by first selecting one or more <strong>Included Groups</strong>. (Groups must be assigned the <strong>Mailing List</strong> type to be available on this screen - you can update this for an existing group from <strong>Manage Groups » Settings</strong>.){/ts}</p>
|
||||
<p>{ts}You also have the option to <strong>Exclude</strong> some contacts from your included groups by selecting one or more <strong>Excluded Groups</strong>. Contacts who are in both groups will NOT receive the mailing (they are 'excluded').{/ts}</p>
|
||||
<p>{ts}If you have sent other mailings - you can additionally Include (or Exclude) contacts who received those mailings. CiviCRM will eliminate any duplications so that contacts who are in an Included Group AND were recipients of an Included Mailing will only be sent one copy of this mailing.{/ts}</p>
|
||||
<p>{ts}After you click <strong>Next</strong> - the total number of selected recipients will be displayed on the next screen. Use this as a 'reality-check' to help you confirm that you've targeted (and excluded) the desired recipients.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="exclude-groups-title"}
|
||||
{ts}Exclude Groups{/ts}
|
||||
{/htxt}
|
||||
{htxt id="exclude-groups"}
|
||||
<p>{ts}You also have the option to <strong>Exclude</strong> some contacts in your included groups by selecting one or more <strong>Excluded Groups</strong>. Contacts who are in both groups will NOT receive the mailing (they are 'excluded').{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="include-mailings-title"}
|
||||
{ts}Include Mailings{/ts}
|
||||
{/htxt}
|
||||
{htxt id="include-mailings"}
|
||||
<p>{ts}If you have sent other mailings - you can additionally Include (or Exclude) contacts who received those mailings. CiviCRM will eliminate any duplications so that contacts who are in an Included Group AND were recipients of an Included Mailing will only be sent one copy of this mailing.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="exclude-mailings-title"}
|
||||
{ts}Exclude Mailings{/ts}
|
||||
{/htxt}
|
||||
{htxt id="exclude-mailings"}
|
||||
<p>{ts}If you have sent other mailings - you can additionally Include (or Exclude) contacts who received those mailings. CiviCRM will eliminate any duplications so that contacts who are in an Included Group AND were recipients of an Included Mailing will only be sent one copy of this mailing.{/ts}</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,89 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-block crm-form-block crm-mailing-group-form-block">
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-group-form-block-name"><td class="label">{$form.name.label}</td><td>{$form.name.html} {help id="mailing-name"}</td></tr>
|
||||
{* CRM-7362 --add campaign *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
|
||||
campaignTrClass="crm-mailing-group-form-block-campaign_id"}
|
||||
|
||||
{if $context EQ 'search'}
|
||||
<tr class="crm-mailing-group-form-block-baseGroup">
|
||||
<td class="label">{$form.baseGroup.label}</td>
|
||||
<td>{$form.baseGroup.html} {help id="base-group"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr class="crm-mailing-group-form-block-dedupeemail">
|
||||
<td class="label">{$form.dedupe_email.label}</td>
|
||||
<td>{$form.dedupe_email.html} {help id="dedupe-email"}</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-group-form-block-locationTypeId">
|
||||
<td class="label">{$form.location_type_id.label}</td>
|
||||
<td>{$form.location_type_id.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-group-form-block-locationSelectionMethod">
|
||||
<td class="label">{$form.email_selection_method.label}</td>
|
||||
<td>{$form.email_selection_method.html} {help id="email-selection"}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
{if ($groupCount > 0|| $mailingCount > 0)}
|
||||
<div id="id-additional" class="form-item">
|
||||
<div class="crm-accordion-wrapper ">
|
||||
<div class="crm-accordion-header">
|
||||
{if $context EQ 'search'}{ts}Additional Mailing Recipients{/ts}{else}{ts}Mailing Recipients{/ts}{/if}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
{strip}
|
||||
|
||||
<table>
|
||||
{if $groupCount > 0}
|
||||
<tr class="crm-mailing-group-form-block-includeGroups"><td class="label">{$form.includeGroups.label} {help id="include-groups"}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-includeGroups"><td>{$form.includeGroups.html}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-excludeGroups"><td class="label">{$form.excludeGroups.label} {help id="exclude-groups"}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-excludeGroups"><td>{$form.excludeGroups.html}</td></tr>
|
||||
{/if}
|
||||
{if $mailingCount > 0}
|
||||
<tr class="crm-mailing-group-form-block-includeMailings"><td class="label">{$form.includeMailings.label} {help id="include-mailings"}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-includeMailings"><td>{$form.includeMailings.html}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-excludeMailings"><td class="label">{$form.excludeMailings.label} {help id="exclude-mailings"}</td></tr>
|
||||
<tr class="crm-mailing-group-form-block-excludeMailings"><td>{$form.excludeMailings.html}</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
{/strip}
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{/if}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,325 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<script type="text/javascript">
|
||||
cj('form.{$form.formClass}').data('tokens', {$tokens|@json_encode});
|
||||
var text_message = null;
|
||||
var html_message = null;
|
||||
var prefix = '';
|
||||
var isPDF = false;
|
||||
var isMailing = false;
|
||||
|
||||
{if $form.formName eq 'MessageTemplates'}
|
||||
{literal}
|
||||
text_message = "msg_text";
|
||||
html_message = "msg_html";
|
||||
{/literal}
|
||||
{elseif $form.formName eq 'Address'}
|
||||
{literal}
|
||||
text_message = "mailing_format";
|
||||
isMailing = false;
|
||||
{/literal}
|
||||
{elseif $form.formClass eq 'CRM_SMS_Form_Upload' || $form.formClass eq 'CRM_Contact_Form_Task_SMS'}
|
||||
{literal}
|
||||
prefix = "SMS";
|
||||
text_message = "sms_text_message";
|
||||
isMailing = true;
|
||||
{/literal}
|
||||
{else}
|
||||
{literal}
|
||||
text_message = "text_message";
|
||||
html_message = (cj("#edit-html-message-value").length > 0) ? "edit-html-message-value" : "html_message";
|
||||
isMailing = true;
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{if $form.formName eq 'PDF'}
|
||||
{literal}
|
||||
isPDF = true;
|
||||
{/literal}
|
||||
{/if}
|
||||
|
||||
{if $templateSelected}
|
||||
{literal}
|
||||
if ( document.getElementsByName(prefix + "saveTemplate")[0].checked ) {
|
||||
document.getElementById(prefix + "template").selectedIndex = {/literal}{$templateSelected}{literal};
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{literal}
|
||||
|
||||
function showSaveUpdateChkBox(prefix) {
|
||||
prefix = prefix || '';
|
||||
if (document.getElementById(prefix + "template") == null) {
|
||||
if (document.getElementsByName(prefix + "saveTemplate")[0].checked){
|
||||
document.getElementById(prefix + "saveDetails").style.display = "block";
|
||||
document.getElementById(prefix + "editMessageDetails").style.display = "block";
|
||||
}
|
||||
else {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "none";
|
||||
document.getElementById(prefix + "updateDetails").style.display = "none";
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (document.getElementsByName(prefix + "saveTemplate")[0].checked &&
|
||||
document.getElementsByName(prefix + "updateTemplate")[0].checked == false) {
|
||||
document.getElementById(prefix + "updateDetails").style.display = "none";
|
||||
}
|
||||
else if ( document.getElementsByName(prefix + "saveTemplate")[0].checked &&
|
||||
document.getElementsByName(prefix + "updateTemplate")[0].checked ){
|
||||
document.getElementById(prefix + "editMessageDetails").style.display = "block";
|
||||
document.getElementById(pefix + "saveDetails").style.display = "block";
|
||||
}
|
||||
else if ( document.getElementsByName(prefix + "saveTemplate")[0].checked == false &&
|
||||
document.getElementsByName(prefix + "updateTemplate")[0].checked ) {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "none";
|
||||
document.getElementById(prefix + "editMessageDetails").style.display = "block";
|
||||
}
|
||||
else {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "none";
|
||||
document.getElementById(prefix + "updateDetails").style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function selectValue( val, prefix) {
|
||||
document.getElementsByName(prefix + "saveTemplate")[0].checked = false;
|
||||
document.getElementsByName(prefix + "updateTemplate")[0].checked = false;
|
||||
showSaveUpdateChkBox(prefix);
|
||||
if ( !val ) {
|
||||
if (document.getElementById("subject").length) {
|
||||
document.getElementById("subject").value ="";
|
||||
}
|
||||
if (document.getElementById("subject").length) {
|
||||
document.getElementById("subject").value ="";
|
||||
}
|
||||
if ( !isPDF ) {
|
||||
if (prefix == 'SMS') {
|
||||
document.getElementById("sms_text_message").value ="";
|
||||
return;
|
||||
}
|
||||
else {
|
||||
document.getElementById("text_message").value ="";
|
||||
}
|
||||
}
|
||||
else {
|
||||
cj('.crm-html_email-accordion').show();
|
||||
cj('.crm-document-accordion').hide();
|
||||
cj('#document_type').closest('tr').show();
|
||||
}
|
||||
|
||||
CRM.wysiwyg.setVal('#' + html_message, '');
|
||||
if ( isPDF ) {
|
||||
showBindFormatChkBox();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
var dataUrl = {/literal}"{crmURL p='civicrm/ajax/template' h=0 }"{literal};
|
||||
|
||||
cj.post( dataUrl, {tid: val}, function( data ) {
|
||||
var hide = (data.document_body && isPDF) ? false : true;
|
||||
cj('.crm-html_email-accordion, .crm-pdf-format-accordion').toggle(hide);
|
||||
cj('.crm-document-accordion').toggle(!hide);
|
||||
|
||||
cj('#document_type').closest('tr').toggle(hide);
|
||||
|
||||
// Unset any uploaded document when any template is chosen
|
||||
if (cj('#document.file').length) {
|
||||
cj('#document_file').val('');
|
||||
}
|
||||
|
||||
if (!hide) {
|
||||
cj("#subject").val( data.subject );
|
||||
cj("#document-preview").html(data.document_body).parent().css({'background': 'white'});
|
||||
return;
|
||||
}
|
||||
|
||||
if ( !isPDF ) {
|
||||
if (prefix == "SMS") {
|
||||
text_message = "sms_text_message";
|
||||
}
|
||||
if ( data.msg_text ) {
|
||||
cj("#"+text_message).val( data.msg_text );
|
||||
cj("div.text").show();
|
||||
cj(".head").find('span').removeClass().addClass('ui-icon ui-icon-triangle-1-s');
|
||||
cj("#helptext").show();
|
||||
}
|
||||
else {
|
||||
cj("#"+text_message).val("");
|
||||
}
|
||||
}
|
||||
|
||||
if (prefix == "SMS") {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
cj("#subject").val( data.subject );
|
||||
}
|
||||
|
||||
CRM.wysiwyg.setVal('#' + html_message, data.msg_html || '');
|
||||
|
||||
if (isPDF) {
|
||||
var bind = data.pdf_format_id ? true : false ;
|
||||
selectFormat( data.pdf_format_id, bind );
|
||||
if (!bind) {
|
||||
document.getElementById("bindFormat").style.display = "none";
|
||||
}
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
|
||||
if ( isMailing ) {
|
||||
document.getElementById(prefix + "editMessageDetails").style.display = "block";
|
||||
|
||||
function verify(select, prefix) {
|
||||
prefix = prefix || '';
|
||||
if (document.getElementsByName(prefix + "saveTemplate")[0].checked == false) {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "none";
|
||||
}
|
||||
document.getElementById(prefix + "editMessageDetails").style.display = "block";
|
||||
|
||||
var templateExists = true;
|
||||
if (document.getElementById(prefix + "template") == null) {
|
||||
templateExists = false;
|
||||
}
|
||||
|
||||
if (templateExists && document.getElementById(prefix + "template").value) {
|
||||
document.getElementById(prefix + "updateDetails").style.display = '';
|
||||
}
|
||||
else {
|
||||
document.getElementById(prefix + "updateDetails").style.display = 'none';
|
||||
}
|
||||
|
||||
document.getElementById(prefix + "saveTemplateName").disabled = false;
|
||||
}
|
||||
|
||||
function showSaveDetails(chkbox, prefix) {
|
||||
prefix = prefix || '';
|
||||
if (chkbox.checked) {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "block";
|
||||
document.getElementById(prefix + "saveTemplateName").disabled = false;
|
||||
}
|
||||
else {
|
||||
document.getElementById(prefix + "saveDetails").style.display = "none";
|
||||
document.getElementById(prefix + "saveTemplateName").disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (cj("#sms_text_message").length) {
|
||||
showSaveUpdateChkBox('SMS');
|
||||
}
|
||||
if (cj("#text_message").length) {
|
||||
showSaveUpdateChkBox();
|
||||
}
|
||||
|
||||
cj('#' + html_message).on('focus change', verify);
|
||||
}
|
||||
|
||||
CRM.$(function($) {
|
||||
function insertToken() {
|
||||
var
|
||||
token = $(this).val(),
|
||||
field = $(this).data('field');
|
||||
if (field.indexOf('html') < 0) {
|
||||
field = textMsgID($(this));
|
||||
}
|
||||
CRM.wysiwyg.insert('#' + field, token);
|
||||
$(this).select2('val', '');
|
||||
if (isMailing) {
|
||||
verify();
|
||||
}
|
||||
}
|
||||
|
||||
function textMsgID(obj) {
|
||||
if (obj.parents().is("#sms")) {
|
||||
field = 'sms #' + obj.data('field');
|
||||
}
|
||||
else if(obj.parents().is("#email")) {
|
||||
field = 'email #' + obj.data('field');
|
||||
}
|
||||
else {
|
||||
field = obj.data('field');
|
||||
}
|
||||
|
||||
return field;
|
||||
}
|
||||
|
||||
// Initialize token selector widgets
|
||||
var form = $('form.{/literal}{$form.formClass}{literal}');
|
||||
$('input.crm-token-selector', form)
|
||||
.addClass('crm-action-menu fa-code')
|
||||
.change(insertToken)
|
||||
.crmSelect2({
|
||||
data: form.data('tokens'),
|
||||
placeholder: '{/literal}{ts escape='js'}Tokens{/ts}{literal}'
|
||||
});
|
||||
|
||||
$('.accordion .head').addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ")
|
||||
.hover( function() { $(this).addClass( "ui-state-hover");
|
||||
}, function() { $(this).removeClass( "ui-state-hover");
|
||||
}).bind('click', function() {
|
||||
var checkClass = $(this).find('span').attr( 'class' );
|
||||
var len = checkClass.length;
|
||||
if ( checkClass.substring( len - 1, len ) == 's' ) {
|
||||
$(this).find('span').removeClass().addClass('ui-icon ui-icon-triangle-1-e');
|
||||
$("span#help"+$(this).find('span').attr('id')).hide();
|
||||
}
|
||||
else {
|
||||
$(this).find('span').removeClass().addClass('ui-icon ui-icon-triangle-1-s');
|
||||
$("span#help"+$(this).find('span').attr('id')).show();
|
||||
}
|
||||
$(this).next().toggle(); return false;
|
||||
}).next().hide();
|
||||
$('span#html').removeClass().addClass('ui-icon ui-icon-triangle-1-s');
|
||||
$("div.html").show();
|
||||
|
||||
if ( !isMailing ) {
|
||||
$("div.text").show();
|
||||
}
|
||||
|
||||
function setSignature() {
|
||||
var emailID = $("#fromEmailAddress").val( );
|
||||
if ( !isNaN( emailID ) ) {
|
||||
var dataUrl = {/literal}"{crmURL p='civicrm/ajax/signature' h=0 }"{literal};
|
||||
$.post( dataUrl, {emailID: emailID}, function( data ) {
|
||||
|
||||
if (data.signature_text) {
|
||||
var textMessage = $("#"+ text_message).val( ) + '\n\n--\n' + data.signature_text;
|
||||
$("#"+ text_message).val( textMessage );
|
||||
}
|
||||
|
||||
if (data.signature_html) {
|
||||
var htmlMessage = CRM.wysiwyg.getVal("#" + html_message) + '<br/><br/>--<br/>' + data.signature_html;
|
||||
CRM.wysiwyg.setVal("#" + html_message, htmlMessage);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
}
|
||||
$("#fromEmailAddress", form).change(setSignature);
|
||||
});
|
||||
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,49 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-block crm-form-block crm-miscellaneous-form-block">
|
||||
|
||||
<p>{ts}You are requesting to opt out this email address from all mailing lists:{/ts}</p>
|
||||
<h3>{$email_masked}</h3>
|
||||
|
||||
<p>{ts}If this is not your email address, there is no need to do anything. You have <i><b>not</b></i> been added to any mailing lists. If this is your email address and you <i><b>wish to opt out</b></i> please enter your email address below for verification purposes:{/ts}</p>
|
||||
|
||||
<table class="form-layout">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label">{$form.email_confirm.label}</td>
|
||||
<td class="content">{$form.email_confirm.html}
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="sending-title"}
|
||||
{ts}Scheduling and Sending Mailings{/ts}
|
||||
{/htxt}
|
||||
{htxt id="sending"}
|
||||
<p>
|
||||
{ts}You can schedule mailings to be sent starting at a specific date and time, OR you can request that they be sent as soon as possible by checking "Send Immediately".{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}Click <strong>Submit Mailing</strong> to add this mailing to the mailing queue. An automated task which runs periodically on your server processes mailings in the queue, and starts actually sending out your mail.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}Click <strong>Continue Later</strong> if you're not ready to schedule or send this mailing. Click the <strong>Continue</strong> link from Unscheduled and Draft Mailings when you are ready to schedule or send it.{/ts}
|
||||
</p>
|
||||
<p>
|
||||
{ts}<strong>Trouble-shooting Tip</strong> - If you find that your mailings are not being sent, ask the system administrator or technical support contact for your site to verify that the automated task ("cron job") is running - and how frequently.{/ts} {docURL page="user/advanced-configuration/email-system-configuration"}
|
||||
</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,88 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-form-block crm-mailing-schedule-form-block">
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
<div class="help">
|
||||
{ts}You can schedule this mailing to be sent starting at a specific date and time, OR you can request that it be sent as soon as possible by checking "Send Immediately".{/ts} {help id="sending"}
|
||||
</div>
|
||||
{include file="CRM/Mailing/Form/Count.tpl"}
|
||||
|
||||
<table class="form-layout">
|
||||
<tbody>
|
||||
<tr class="crm-mailing-schedule-form-block-now">
|
||||
<td class="label">{$form.now.label}</td>
|
||||
<td>{$form.now.html}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">{ts}OR{/ts}</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-schedule-form-block-start_date">
|
||||
<td class="label">{$form.start_date.label}</td>
|
||||
<td>{include file="CRM/common/jcalendar.tpl" elementName=start_date}
|
||||
<div class="description">{ts}Set a date and time when you want CiviMail to start sending this mailing.{/ts}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
|
||||
{if $preview}
|
||||
<div class="crm-accordion-wrapper crm-plain_text_email-accordion collapsed">
|
||||
<div class="crm-accordion-header">
|
||||
{ts}Preview Mailing{/ts}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-test-form-block-subject"><td class="label">{ts}Subject:{/ts}</td><td>{$preview.subject}</td></tr>
|
||||
{if $preview.attachment}
|
||||
<tr class="crm-mailing-test-form-block-attachment"><td class="label">{ts}Attachment(s):{/ts}</td><td>{$preview.attachment}</td></tr>
|
||||
{/if}
|
||||
{if $preview.viewURL}
|
||||
<tr><td class="label">{if $preview.type eq 'html'}{ts}Mailing HTML:{/ts}{else}{ts}Mailing Text:{/ts}{/if}</td><td><iframe height="300" src="{$preview.viewURL}" width="80%"><a href="{$preview.viewURL}" onclick="window.open(this.href); return false;">{ts}Mailing Text:{/ts}</a></iframe></td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
CRM.$(function($) {
|
||||
$('#start_date_display').change(function() {
|
||||
$('#now').prop('checked', !$(this).val());
|
||||
});
|
||||
$('#now').change(function() {
|
||||
if ($(this).prop('checked')) {
|
||||
$('#start_date_display, #start_date, #start_date_time').val('');
|
||||
} else {
|
||||
$('#start_date_display').focus();
|
||||
}
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
105
sites/all/modules/civicrm/templates/CRM/Mailing/Form/Search.tpl
Normal file
105
sites/all/modules/civicrm/templates/CRM/Mailing/Form/Search.tpl
Normal file
|
@ -0,0 +1,105 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-form-block crm-search-form-block">
|
||||
<table class="form-layout">
|
||||
<tr>
|
||||
<td>{$form.mailing_name.label} {help id="id-mailing_name"}<br />
|
||||
{$form.mailing_name.html|crmAddClass:big}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label>{if $sms eq 1}{ts}SMS Date{/ts}{else}{ts}Mailing Date{/ts}{/if}</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="mailing" from='_from' to='_to'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="1">{$form.sort_name.label} {help id="id-create_sort_name"}<br />
|
||||
{$form.sort_name.html|crmAddClass:big}
|
||||
<br/><br/>
|
||||
<div class="crm-search-form-block-is_archive">
|
||||
{$form.is_archived.label} {help id="is_archived"}<br/>
|
||||
{$form.is_archived.html}
|
||||
</div>
|
||||
</td>
|
||||
{if $form.mailing_status}
|
||||
<td width="100%"><label>{if $sms eq 1}{ts}SMS Status{/ts}{else}{ts}Mailing Status{/ts}{/if}</label><br />
|
||||
<div class="listing-box" style="height: auto">
|
||||
{foreach from=$form.mailing_status item="mailing_status_val"}
|
||||
<div class="{cycle values="odd-row,even-row"}">
|
||||
{$mailing_status_val.html}
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="{cycle values="odd-row,even-row"}">
|
||||
{$form.status_unscheduled.html}
|
||||
</div>
|
||||
</div><br />
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
|
||||
{* language *}
|
||||
{if $form.language}
|
||||
<tr>
|
||||
<td>{$form.language.label} {help id="id-language"}<br />
|
||||
{$form.language.html|crmAddClass:big}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{* campaign in mailing search *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl"
|
||||
campaignContext="componentSearch" campaignTrClass='' campaignTdClass=''}
|
||||
|
||||
<tr>
|
||||
<td>{$form.buttons.html}</td><td colspan="2"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
CRM.$(function($) {
|
||||
var archiveOption = $("input[name^='is_archived']:radio");
|
||||
$('#status_unscheduled').change(function() {
|
||||
if ($(this).prop('checked') ) {
|
||||
archiveOption.prop({checked: false, disabled: true}).change();
|
||||
} else {
|
||||
archiveOption.prop('disabled', false);
|
||||
}
|
||||
}).trigger('change');
|
||||
archiveOption.change(function() {
|
||||
if ($("input[name^='is_archived']:radio:checked").length) {
|
||||
$('#status_unscheduled').prop({checked: false, disabled: true}).change();
|
||||
} else {
|
||||
$('#status_unscheduled').prop('disabled', false);
|
||||
}
|
||||
}).trigger('change');
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
|
@ -0,0 +1,7 @@
|
|||
{if $validCiviMailing}
|
||||
<div id="mailingForm" class="form-item">
|
||||
<table class="form-layout">
|
||||
{include file="CRM/Mailing/Form/Search/Common.tpl"}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,73 @@
|
|||
<tr>
|
||||
<td>
|
||||
{$form.mailing_id.label}
|
||||
<br />
|
||||
{$form.mailing_id.html}
|
||||
</td>
|
||||
<td>
|
||||
{$form.mailing_job_status.label}
|
||||
<br />
|
||||
{$form.mailing_job_status.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td><label>{ts}Mailing Date{/ts}</label></td></tr>
|
||||
<tr>
|
||||
{include file="CRM/Core/DateRange.tpl" fieldName="mailing_date" from='_low' to='_high'}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.mailing_delivery_status.label}
|
||||
<br />
|
||||
{$form.mailing_delivery_status.html}
|
||||
<br />
|
||||
{$form.mailing_bounce_types.label}
|
||||
{$form.mailing_bounce_types.html}
|
||||
</td>
|
||||
<td>
|
||||
{$form.mailing_open_status.label}
|
||||
<br />
|
||||
{$form.mailing_open_status.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.mailing_click_status.label}
|
||||
<br />
|
||||
{$form.mailing_click_status.html}
|
||||
</td>
|
||||
<td>
|
||||
{$form.mailing_reply_status.label}
|
||||
<br />
|
||||
{$form.mailing_reply_status.html}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
{$form.mailing_unsubscribe.html}
|
||||
{$form.mailing_unsubscribe.label}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
{$form.mailing_optout.html}
|
||||
{$form.mailing_optout.label}
|
||||
</td>
|
||||
<td>
|
||||
{$form.mailing_forward.html}
|
||||
{$form.mailing_forward.label}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{* campaign in Advance search *}
|
||||
{include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignContext="componentSearch"
|
||||
campaignTrClass='crmCampaign' campaignTdClass='crmCampaignContainer'}
|
||||
</td>
|
||||
</tr>
|
|
@ -0,0 +1,74 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
{/if}
|
||||
|
||||
{strip}
|
||||
<table class="selector row-highlight">
|
||||
<thead class="sticky">
|
||||
<tr>
|
||||
{if $context eq 'Search' }
|
||||
<th scope="col" title="Select Rows">{$form.toggleSelect.html}</th>
|
||||
{/if}
|
||||
{foreach from=$columnHeaders item=header}
|
||||
<th scope="col">
|
||||
{if $header.sort}
|
||||
{assign var='key' value=$header.sort}
|
||||
{$sort->_response.$key.link}
|
||||
{else}
|
||||
{$header.name}
|
||||
{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="rowid{$row.contact_id}">
|
||||
{if $context eq 'Search'}
|
||||
{assign var=cbName value=$row.checkbox}
|
||||
<td>{$form.$cbName.html}</td>
|
||||
{/if}
|
||||
<td>{$row.contact_type}</td>
|
||||
<td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`&key=`$qfKey`&context=`$context`"}">{$row.sort_name}</a></td>
|
||||
<td {if ($row.email_on_hold eq 1) or ($row.contact_opt_out eq 1)}class='font-red'{/if}>{$row.email}</td>
|
||||
<td>{$row.mailing_name}</td>
|
||||
<td>{$row.mailing_subject}</td>
|
||||
<td>{$row.mailing_job_status}</td>
|
||||
<td class="crm-mailing-end_date">{$row.mailing_job_end_date|crmDate}</td>
|
||||
<td>{$row.action|replace:'xx':$row.contact_id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
|
||||
|
||||
{if $context EQ 'Search'}
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
{/if}
|
|
@ -0,0 +1,40 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="mailing-visibility-title"}
|
||||
{ts}Visibility{/ts}
|
||||
{/htxt}
|
||||
{htxt id="mailing-visibility"}
|
||||
<p>
|
||||
{assign var=hlpViewURL value="mailing.viewUrl"}
|
||||
{ts 1=$hlpViewURL}This option makes it possible to make the contents of the email accessible to users as a web page. This option is only relevant if you insert the Mailing permalink token %1 in your message in the next step. This token generates a URL on which the message can be viewed (remember to insert the code in the appropriate HTML tags).{/ts}
|
||||
</p><p>
|
||||
{ts}You have two options to specify the visibility of the mailing{/ts}:
|
||||
</p><p>
|
||||
{ts}"public pages" will make the content of this mailing be viewable as a web page by everyone who has the permission of "view public CiviMail content"{/ts}
|
||||
</p><p>
|
||||
{ts}"user and user admin" only means that only users that received the mailing or administrators can view the content of this email as a web page; the recipients will have to log in to be able to view the message{/ts}
|
||||
<p></p>
|
||||
{/htxt}
|
|
@ -0,0 +1,118 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
|
||||
CRM.$(function($) {
|
||||
// hide all the selects that contains only one option
|
||||
$('.crm-message-select select').each(function (){
|
||||
if ($(this).find('option').size() == 1) {
|
||||
$(this).parent().parent().hide();
|
||||
}
|
||||
});
|
||||
if (!$('#override_verp').prop('checked')){
|
||||
$('.crm-mailing-settings-form-block-forward_replies,.crm-mailing-settings-form-block-auto_responder').hide();
|
||||
}
|
||||
$('#override_verp').click(function(){
|
||||
$('.crm-mailing-settings-form-block-forward_replies,.crm-mailing-settings-form-block-auto_responder').toggle();
|
||||
if (!$('#override_verp').prop('checked')) {
|
||||
$('#forward_replies, #auto_responder').prop('checked', false);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
<div class="crm-block crm-form-block crm-mailing-settings-form-block">
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
<div class="help">
|
||||
{ts}These settings control tracking and responses to recipient actions. The number of recipients selected to receive this mailing is shown in the box to the right. If this count doesn't match your expectations, click <strong>Previous</strong> to review your selection(s).{/ts}
|
||||
</div>
|
||||
{include file="CRM/Mailing/Form/Count.tpl"}
|
||||
<div class="crm-block crm-form-block crm-mailing-settings-form-block">
|
||||
<fieldset><legend>{ts}Tracking{/ts}</legend>
|
||||
<table class="form-layout"><tr class="crm-mailing-settings-form-block-url_tracking">
|
||||
<td class="label">{$form.url_tracking.label}</td>
|
||||
<td>{$form.url_tracking.html}
|
||||
<span class="description">
|
||||
{ts}Track the number of times recipients click each link in this mailing.{/ts}
|
||||
{ts}NOTE: When this feature is enabled, all links in the message body will be automatically re-written to route through your CiviCRM server prior to redirecting to the target page.{/ts}
|
||||
</span>
|
||||
</td></tr><tr class="crm-mailing-settings-form-block-open_tracking">
|
||||
<td class="label">{$form.open_tracking.label}</td>
|
||||
<td>{$form.open_tracking.html}
|
||||
<span class="description">{ts}Track the number of times recipients open this mailing in their email software.{/ts}</span>
|
||||
</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset><legend>{ts}Responding{/ts}</legend>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-settings-form-block-override_verp"><td class="label">{$form.override_verp.label}</td>
|
||||
<td>{$form.override_verp.html}
|
||||
<span class="description">{ts}Recipients' replies are sent to a CiviMail specific address instead of the sender's address so they can be stored within CiviCRM.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-settings-form-block-forward_replies"><td class="label ">{$form.forward_replies.label}</td>
|
||||
<td>{$form.forward_replies.html}
|
||||
<span class="description">{ts}If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-settings-form-block-auto_responder"><td class="label">{$form.auto_responder.label}</td>
|
||||
<td>{$form.auto_responder.html} {$form.reply_id.html}
|
||||
<span class="description">{ts}If a recipient replies to this mailing, send an automated reply using the selected message.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-settings-form-block-unsubscribe_id crm-message-select"><td class="label">{$form.unsubscribe_id.label}</td>
|
||||
<td>{$form.unsubscribe_id.html}
|
||||
<span class="description">{ts}Select the automated message to be sent when a recipient unsubscribes from this mailing.{/ts}</span>
|
||||
</td>
|
||||
<tr>
|
||||
<tr class="crm-mailing-settings-form-block-resubscribe_id crm-message-select"><td class="label">{$form.resubscribe_id.label}</td>
|
||||
<td>{$form.resubscribe_id.html}
|
||||
<span class="description">{ts}Select the automated message to be sent when a recipient resubscribes to this mailing.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-settings-form-block-optout_id crm-message-select"><td class="label ">{$form.optout_id.label}</td>
|
||||
<td>{$form.optout_id.html}
|
||||
<span class="description">{ts}Select the automated message to be sent when a recipient opts out of all mailings from your site.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset><legend>Online Publication</legend>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-group-form-block-visibility">
|
||||
<td class="label">{$form.visibility.label}</td><td>{$form.visibility.html} {help id="mailing-visibility"}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{* this template is used for web-based subscriptions to mailing list type groups *}
|
||||
<div class="crm-block crm-mailing-subscribe-form-block">
|
||||
{if $single}
|
||||
<div class="help">
|
||||
{ts}Enter your email address and click <strong>Subscribe</strong>. You will receive a confirmation request via email shortly. Your subscription will be activated after you respond to that email.{/ts}
|
||||
</div>
|
||||
{else}
|
||||
<div class="help">
|
||||
{ts}Enter your email address and check the box next to each mailing list you want to join. Then click the <strong>Subscribe</strong> button. You will receive a confirmation request via email for each selected list. Activate your subscription to each list by responding to the corresponding confirmation email.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-mailing-subscribe-form-block-email"><td style="width: 10%;">{$form.email.label}</td><td>{$form.email.html}</td></tr>
|
||||
<tr><td colspan="2">
|
||||
<div class="spacer"></div>
|
||||
|
||||
{if ! $single} {* Show all public mailing list groups. Page was loaded w/o a specific group param (gid=N not in query string). *}
|
||||
<table class="selector" style="width: auto;">
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"}">
|
||||
{assign var=cbName value=$row.checkbox}
|
||||
<td class="crm-mailing-subscribe-form-block-{$cbName}">{$form.$cbName.html}</td>
|
||||
<td class="crm-mailing-subscribe-form-block-title"><label for="{$cbName}"><strong>{$row.title}</strong></label></td>
|
||||
<td class="crm-mailing-subscribe-form-block-description"> {$row.description} </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $isCaptcha}
|
||||
{include file='CRM/common/ReCAPTCHA.tpl'}
|
||||
{/if}
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
|
||||
</div><!-- end crm-block -->
|
|
@ -0,0 +1,41 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{ts 1=$totalSelectedMailingRecipients}Number of selected Mailing Recipients: %1{/ts}
|
||||
|
||||
{if $rows }
|
||||
<div class="crm-block crm-form-block crm-mailing-task-form-block">
|
||||
<table width="30%">
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Name{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>{$row.displayName}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,65 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<p>
|
||||
|
||||
{if $rows}
|
||||
<div class="form-item crm-block crm-form-block crm-mailing-form-block">
|
||||
<span class="element-right">{$form.buttons.html}</span>
|
||||
</div>
|
||||
<div class="spacer"></div>
|
||||
<br />
|
||||
<p>
|
||||
<table>
|
||||
<tr class="columnheader">
|
||||
<th>{ts}Name{/ts}</th>
|
||||
<th>{ts}Email{/ts}</th>
|
||||
<th>{ts}Mailing Name{/ts}</th>
|
||||
<th>{ts}Mailing Subject{/ts}</th>
|
||||
<th>{ts}Mailing Status{/ts}</th>
|
||||
<th>{ts}Completed Date{/ts}</th>
|
||||
</tr>
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"} crm-mailing">
|
||||
<td class='crm-mailing-sort_name'>{$row.sort_name}</td>
|
||||
<td {if ($row.email_on_hold eq 1) or ($row.contact_opt_out eq 1)}class='font-red'{/if}>{$row.email}</td>
|
||||
<td class='crm-mailing-mailing_name'>{$row.mailing_name}</td>
|
||||
<td class='crm-mailing-mailing_subject'>{$row.mailing_subject}</td>
|
||||
<td class='crm-mailing-mailing_job_status'>{$row.mailing_job_status}</td>
|
||||
<td class="crm-mailing-end_date">{$row.mailing_job_end_date|crmDate}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
|
||||
<div class="form-item">
|
||||
<span class="element-right">{$form.buttons.html}</span>
|
||||
</div>
|
||||
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"/>
|
||||
{ts}There are no records selected for Print.{/ts}
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,38 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="test-intro-title"}
|
||||
{ts}Test Message{/ts}
|
||||
{/htxt}
|
||||
{htxt id="test-intro"}
|
||||
<p>{ts}It's a good idea to test your mailing by sending it to yourself and/or a selected group of people in your organization. You can also view your content in the preview panel below.{/ts}</p>
|
||||
<p>{ts}Enter a single email address or select an existing group and click "Send a Test Mailing." Once you receive the test mailing:{/ts}</p>
|
||||
<ul>
|
||||
<li>{ts}Verify the content and formatting.{/ts}</li>
|
||||
<li>{ts}If you are using mail-merge tokens, check that they have been replaced with expected values.{/ts}</li>
|
||||
<li>{ts}Click on each included link to make sure they go to the expected web pages.{/ts}</li>
|
||||
</ul>
|
||||
<p>{ts}If you need to make changes, you can click <strong>Previous</strong> to return to the content step, make your changes, and send another test.{/ts}</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,66 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-form-block crm-mailing-test-form-block">
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
<div class="help">
|
||||
{ts}It's a good idea to test your mailing by sending it to yourself and/or a selected group of people in your organization. You can also view your content by clicking (+) Preview Mailing.{/ts} {help id="test-intro"}
|
||||
</div>
|
||||
|
||||
{include file="CRM/Mailing/Form/Count.tpl"}
|
||||
|
||||
<fieldset>
|
||||
<legend>Test Mailing</legend>
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-test-form-block-test_email"><td class="label">{$form.test_email.label}</td><td>{$form.test_email.html} {ts}(filled with your contact's token values){/ts}</td></tr>
|
||||
<tr class="crm-mailing-test-form-block-test_group"><td class="label">{$form.test_group.label}</td><td>{$form.test_group.html}</td></tr>
|
||||
<tr><td></td><td>{$form.sendtest.html}</td>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<div class="crm-accordion-wrapper crm-plain_text_email-accordion collapsed">
|
||||
<div class="crm-accordion-header">
|
||||
|
||||
{ts}Preview Mailing{/ts}
|
||||
</div><!-- /.crm-accordion-header -->
|
||||
<div class="crm-accordion-body">
|
||||
<table class="form-layout">
|
||||
<tr class="crm-mailing-test-form-block-subject"><td class="label">{ts}Subject:{/ts}</td><td>{$subject}</td></tr>
|
||||
{if $preview.attachment}
|
||||
<tr class="crm-mailing-test-form-block-attachment"><td class="label">{ts}Attachment(s):{/ts}</td><td>{$preview.attachment}</td></tr>
|
||||
{/if}
|
||||
{if $preview.text_link}
|
||||
<tr><td class="label">{ts}Text Version:{/ts}</td><td><iframe height="300" src="{$preview.text_link}" width="80%"><a href="{$preview.text_link}" onclick="window.open(this.href); return false;">{ts}Text Version{/ts}</a></iframe></td></tr>
|
||||
{/if}
|
||||
{if $preview.html_link}
|
||||
<tr><td class="label">{ts}HTML Version:{/ts}</td><td><iframe height="300" src="{$preview.html_link}" width="80%"><a href="{$preview.html_link}" onclick="window.open(this.href); return false;">{ts}HTML Version{/ts}</a></iframe></td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</div><!-- /.crm-accordion-body -->
|
||||
</div><!-- /.crm-accordion-wrapper -->
|
||||
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
|
||||
</div><!-- / .crm-form-block -->
|
|
@ -0,0 +1,59 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div>
|
||||
{if $groupExist}
|
||||
<div class="messages status no-popup">
|
||||
{ts}Are you sure you want to be removed from the mailing list(s) shown below:{/ts}<br/>
|
||||
</div>
|
||||
<table class="selector" style="width: auto; margin-top: 20px;">
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$groups item=group}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td><strong>{$group.title}</strong></td>
|
||||
<td> {$group.description} </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
<div class="crm-block crm-form-block crm-miscellaneous-form-block">
|
||||
<p>{ts}You are requesting to unsubscribe this email address:{/ts}</p>
|
||||
<h3>{$email_masked}</h3>
|
||||
<p>{ts}If this is not your email address, there is no need to do anything. You have <i><b>not</b></i> been added to any mailing lists. If this is your email address and you <i><b>wish to unsubscribe</b></i> please enter your email address below for verification purposes:{/ts}</p>
|
||||
<table class="form-layout">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="label">{$form.email_confirm.label}</td>
|
||||
<td class="content">{$form.email_confirm.html}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="crm-submit-buttons">
|
||||
{include file="CRM/common/formButtons.tpl" location="bottom"}
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id ="id-from_email-title"}
|
||||
{ts}From Address{/ts}
|
||||
{/htxt}
|
||||
{htxt id ="id-from_email"}
|
||||
<p>{ts}Select the "FROM" Email Address for this mailing from the dropdown list. Available email addresses are configurable by users with Administer CiviCRM permission. EXAMPLE: "Client Services" <clientservices@example.org>{/ts}</p>
|
||||
{if $params.isAdmin}
|
||||
{capture assign="fromConfig"}{crmURL p="civicrm/admin/options/from_email_address" q="reset=1"}{/capture}
|
||||
<p>{ts 1=$fromConfig}Go to <a href='%1'>Administer CiviCRM » Communications » FROM Email Addresses</a> to add or edit email addresses. Make sure these email addresses are valid email accounts with your email service provider.{/ts}</p>
|
||||
{else}
|
||||
{ts}Contact your site administrator if you need to use a "FROM" Email Address which is not in the dropdown list.{/ts}
|
||||
{/if}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="content-intro-title"}
|
||||
{ts}Message Formats{/ts}
|
||||
{/htxt}
|
||||
{htxt id="content-intro"}
|
||||
<p>{ts}You can choose to send BOTH an <strong>HTML</strong> and a plain <strong>TEXT</strong> version of your mailing, OR you can send a <strong>TEXT</strong> version only.{/ts}</p>
|
||||
<p>{ts}If you create only an <strong>HTML</strong> version, CiviMail will automatically create a <strong>TEXT</strong> version for your recipients who have chosen NOT to receive HTML email.{/ts}</p>
|
||||
<h1>{ts}Required Elements{/ts}</h1>
|
||||
<p>{ts}CiviMail email messages must include an <strong>opt-out</strong> link ("Opt out via web page"), and the <strong>postal address</strong> of your organization. These elements help reduce the chances of your email being categorized as SPAM. They can be included in the main message body OR in a re-usable <strong>message footer</strong>. Refer to the online documentation for details on how to include required links and contact information as well as sample messages.{/ts} {docURL page="Sample CiviMail Messages" resource="wiki"}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="upload-compose-title"}
|
||||
{ts}Upload or Compose On-screen{/ts}
|
||||
{/htxt}
|
||||
{htxt id="upload-compose"}
|
||||
<p>{ts}You can use your favorite editor to create content on your local computer and then <strong>Upload</strong> the files. OR you can <strong>Compose</strong> content directly on the screen.{/ts}</p>
|
||||
<p>{ts}If you choose to compose on the screen, a basic WYSIWYG (what-you-see-is-what-you-get) editor is provided which you can use create simple HTML messages. However, if you are planning on creating HTML messages with complex layouts - it is best to use an HTML editor on your local computer. Then locate and upload the saved file(s) by clicking the <strong>Browse</strong> button.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-message-text-title"}
|
||||
{ts}Text Message{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-message-text"}
|
||||
<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}
|
127
sites/all/modules/civicrm/templates/CRM/Mailing/Form/Upload.tpl
Normal file
127
sites/all/modules/civicrm/templates/CRM/Mailing/Form/Upload.tpl
Normal file
|
@ -0,0 +1,127 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="crm-block crm-form-block crm-mailing-upload-form-block">
|
||||
{include file="CRM/common/WizardHeader.tpl"}
|
||||
|
||||
<div class="help">
|
||||
{ts}You can either <strong>upload</strong> the mailing content from your computer OR <strong>compose</strong> the content on this screen.{/ts} {help id="content-intro"}
|
||||
</div>
|
||||
|
||||
{include file="CRM/Mailing/Form/Count.tpl"}
|
||||
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-mailing-upload-form-block-from_email_address"><td class="label">{$form.from_email_address.label}</td>
|
||||
<td>{$form.from_email_address.html} {help id ="id-from_email" isAdmin=$isAdmin}</td>
|
||||
</tr>
|
||||
{if $trackReplies}
|
||||
<tr class="crm-mailing-upload-form-block-reply_to_address">
|
||||
<td style="color:#3E3E3E;"class="label">{ts}Reply-To{/ts}<span class="crm-marker">*</span></td>
|
||||
<td>{ts}Auto-Generated{/ts}</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="crm-mailing-upload-form-block-reply_to_address">
|
||||
<td class="label">{$form.reply_to_address.label}</td>
|
||||
<td>{$form.reply_to_address.html}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="crm-mailing-upload-form-block-template">
|
||||
<td class="label">{$form.template.label}</td>
|
||||
<td>{$form.template.html}</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-upload-form-block-subject"><td class="label">{$form.subject.label}</td>
|
||||
<td colspan="2">
|
||||
{$form.subject.html|crmAddClass:huge}
|
||||
<input class="crm-token-selector big" data-field="subject" />
|
||||
{help id="id-token-subject" tplFile=$tplFile isAdmin=$isAdmin file="CRM/Contact/Form/Task/Email.hlp"}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-upload-form-block-upload_type"><td></td><td colspan="2">{$form.upload_type.label} {$form.upload_type.html} {help id="upload-compose"}</td></tr>
|
||||
</table>
|
||||
|
||||
<fieldset id="compose_id"><legend>{ts}Compose On-screen{/ts}</legend>
|
||||
{include file="CRM/Contact/Form/Task/EmailCommon.tpl" upload=1 noAttach=1}
|
||||
</fieldset>
|
||||
|
||||
{capture assign=docLink}{docURL page="Sample CiviMail Messages" text="More information and sample messages..." resource="wiki"}{/capture}
|
||||
<fieldset id="upload_id"><legend>{ts}Upload Content{/ts}</legend>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-mailing-upload-form-block-textFile">
|
||||
<td class="label">{$form.textFile.label}</td>
|
||||
<td>{$form.textFile.html}<br />
|
||||
<span class="description">{ts}Browse to the <strong>TEXT</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-upload-form-block-htmlFile">
|
||||
<td class="label">{$form.htmlFile.label}</td>
|
||||
<td>{$form.htmlFile.html}<br />
|
||||
<span class="description">{ts}Browse to the <strong>HTML</strong> message file you have prepared for this mailing.{/ts}<br /> {$docLink}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
{include file="CRM/Form/attachment.tpl"}
|
||||
|
||||
<fieldset><legend>{ts}Header / Footer{/ts}</legend>
|
||||
<table class="form-layout-compressed">
|
||||
<tr class="crm-mailing-upload-form-block-header_id">
|
||||
<td class="label">{$form.header_id.label}</td>
|
||||
<td>{$form.header_id.html}<br />
|
||||
<span class="description">{ts}You may choose to include a pre-configured Header block above your message.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="crm-mailing-upload-form-block-footer_id">
|
||||
<td class="label">{$form.footer_id.label}</td>
|
||||
<td>{$form.footer_id.html}<br />
|
||||
<span class="description">{ts}You may choose to include a pre-configured Footer block below your message. This is a good place to include the required unsubscribe, opt-out and postal address tokens.{/ts}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl"}</div>
|
||||
</div><!-- / .crm-form-block -->
|
||||
|
||||
{* -- Javascript for showing/hiding the upload/compose options -- *}
|
||||
{include file="CRM/common/showHide.tpl"}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
showHideUpload();
|
||||
function showHideUpload()
|
||||
{
|
||||
if (document.getElementsByName("upload_type")[0].checked) {
|
||||
cj('#compose_id').hide();
|
||||
cj('.crm-mailing-upload-form-block-template').hide();
|
||||
cj('#upload_id').show();
|
||||
} else {
|
||||
cj('#compose_id').show();
|
||||
cj('.crm-mailing-upload-form-block-template').show();
|
||||
cj('#upload_id').hide();
|
||||
verify( );
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
126
sites/all/modules/civicrm/templates/CRM/Mailing/MailingUI.hlp
Normal file
126
sites/all/modules/civicrm/templates/CRM/Mailing/MailingUI.hlp
Normal file
|
@ -0,0 +1,126 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="name"}
|
||||
<p>
|
||||
{ts}Assign a unique name to each of your mailings. Select a naming convention that will help keep your mailings organized and easy to find when you want to review and compare mailing results. For example, if you do a monthly general-interest newsletter - you might use the following naming convention:{/ts}
|
||||
</p><p>
|
||||
<strong>{ts}General Monthly Newsletter: 200709{/ts}</strong>
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id ="from_email"}
|
||||
<p>{ts}Select the "FROM" Email Address for this mailing from the dropdown list. Available email addresses are configurable by users with Administer CiviCRM permission. EXAMPLE: "Client Services" <clientservices@example.org>{/ts}</p>
|
||||
{if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
|
||||
{capture assign="fromConfig"}{crmURL p="civicrm/admin/options/from_email_address" q="reset=1"}{/capture}
|
||||
<p>{ts 1=$fromConfig}Go to <a href='%1'>Administer CiviCRM » Communications » FROM Email Addresses</a> to add or edit email addresses. Make sure these email addresses are valid email accounts with your email service provider.{/ts}</p>
|
||||
{else}
|
||||
{ts}Contact your site administrator if you need to use a "FROM" Email Address which is not in the dropdown list.{/ts}
|
||||
{/if}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="html"}
|
||||
<p>{ts}You can choose to send BOTH an <strong>HTML</strong> and a plain <strong>TEXT</strong> version of your mailing, OR you can send a <strong>TEXT</strong> version only.{/ts}</p>
|
||||
<p>{ts}If you create only an <strong>HTML</strong> version, CiviMail will automatically create a <strong>TEXT</strong> version for your recipients who have chosen NOT to receive HTML email.{/ts}</p>
|
||||
<h1>{ts}Required Elements{/ts}</h1>
|
||||
<p>{ts}CiviMail email messages must include an <strong>opt-out</strong> link ("Opt out via web page"), and the <strong>postal address</strong> of your organization. These elements help reduce the chances of your email being categorized as SPAM. They can be included in the main message body OR in a re-usable <strong>message footer</strong>. Refer to the online documentation for details on how to include required links and contact information as well as sample messages.{/ts} {docURL page="Sample CiviMail Messages" resource="wiki"}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="text"}
|
||||
<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="header"}
|
||||
<p>{ts}You may choose to include a pre-configured Header block above your message.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="footer"}
|
||||
<p>{ts}You may choose to include a pre-configured Footer block below your message. This is a good place to include the required unsubscribe, opt-out and postal address tokens.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="dedupe_email"}
|
||||
<p>{ts}Multiple people -- such as spouses, parents, or children -- may sometimes share the same email address.{/ts}</p>
|
||||
<p>{ts}To send only one message to the shared address, enable this option. Mail-merge tokens will be filled for only one person.{/ts}</p>
|
||||
<p>{ts}To send separate messages for each person, disable this option. Mail-merge tokens will be filled separately for each person.{/ts}</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="visibility"}
|
||||
<p>
|
||||
{ts}This option controls who can view the contents of this email on your website. The link can be included by inserting the "Mailing permalink" token (place it in a link when composing in HTML mode).{/ts}
|
||||
</p><p>
|
||||
{ts}The options for mailing visibility are:{/ts}
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
{ts}"Public Pages" will make the content of this mailing viewable everyone who has the permission "view public CiviMail content". Note that even people who did not receive the mailing would be able to find it via search engines.{/ts}
|
||||
</li>
|
||||
<li>
|
||||
{ts}"User and User Admin Only" means that only users that received the mailing or administrators can view this email on your website; users must be logged in to view the message.{/ts}
|
||||
</li>
|
||||
</ul>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="test"}
|
||||
<p>{ts}It's a good idea to test your mailing by sending it to yourself and/or a selected group of people in your organization.{/ts}</p>
|
||||
<p>{ts}Things to check in a test mailing:{/ts}</p>
|
||||
<ul>
|
||||
<li>{ts}Verify the content and formatting looks consistent across various email clients.{/ts}</li>
|
||||
<li>{ts}If you are using mail-merge tokens, check that they have been replaced with expected values.{/ts}</li>
|
||||
<li>{ts}Click on each included link to make sure they go to the expected web pages.{/ts}</li>
|
||||
</ul>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="url_tracking"}
|
||||
<p>
|
||||
{ts}Track the number of times recipients click each link in this mailing.{/ts}
|
||||
</p><p>
|
||||
{ts}NOTE: When this feature is enabled, all links in the message body (including mailtos) will be automatically re-written to route through your CiviCRM website prior to redirecting to the target page.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="open_tracking"}
|
||||
<p>
|
||||
{ts}Track the number of times recipients open this mailing in their email software.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="override_verp"}
|
||||
<p>
|
||||
{ts}Recipients' replies are sent to a CiviMail specific address instead of the sender's address so they can be stored within CiviCRM.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="auto_responder"}
|
||||
<p>
|
||||
{ts}If a recipient replies to this mailing, send an automated reply using the selected message.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
||||
|
||||
{htxt id="forward_replies"}
|
||||
<p>
|
||||
{ts}If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.{/ts}
|
||||
</p>
|
||||
{/htxt}
|
|
@ -0,0 +1,54 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{htxt id="id-mailing_name-title"}
|
||||
{ts}Mailing Name{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-mailing_name"}
|
||||
{ts}Find mailings by mailing name. You can enter a partial or complete name.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-create_sort_name-title"}
|
||||
{ts}Mailing Sender{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-create_sort_name"}
|
||||
{ts}Find mailings by the name of the person who created or sent them. You can enter a complete OR partial name (last name, first name format).{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="is_archived-title"}
|
||||
{ts}Archived{/ts}
|
||||
{/htxt}
|
||||
{htxt id="is_archived"}
|
||||
{ts}This field is disabled when searching for Draft/Unscheduled mailings.{/ts}
|
||||
{/htxt}
|
||||
|
||||
{htxt id="id-language-title"}
|
||||
{ts}Language{/ts}
|
||||
{/htxt}
|
||||
{htxt id="id-language"}
|
||||
{ts}Find mailing by language.{/ts}
|
||||
{/htxt}
|
||||
|
||||
|
150
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Browse.tpl
Normal file
150
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Browse.tpl
Normal file
|
@ -0,0 +1,150 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $sms}
|
||||
{assign var='newMassUrl' value='civicrm/sms/send'}
|
||||
{assign var='qVal' value='&sms=1'}
|
||||
{assign var='linkTitle' value='New SMS'}
|
||||
{assign var='componentName' value='Mass SMS'}
|
||||
{else}
|
||||
{assign var='newMassUrl' value='civicrm/mailing/send'}
|
||||
{assign var='qVal' value=''}
|
||||
{assign var='linkTitle' value='New Mailing'}
|
||||
{assign var='componentName' value='Mailings'}
|
||||
{/if}
|
||||
|
||||
{if $showLinks}
|
||||
<div class="action-link">
|
||||
{crmButton accesskey="N" p=$newMassUrl q='reset=1' icon="envelope"}{ts}{$linkTitle}{/ts}{/crmButton}<br/><br/>
|
||||
</div>
|
||||
{/if}
|
||||
{include file="CRM/Mailing/Form/Search.tpl"}
|
||||
|
||||
{if $rows}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
{include file="CRM/common/pagerAToZ.tpl"}
|
||||
|
||||
{strip}
|
||||
<table class="selector row-highlight">
|
||||
<thead class="sticky">
|
||||
{foreach from=$columnHeaders item=header}
|
||||
<th>
|
||||
{if $header.sort}
|
||||
{assign var='key' value=$header.sort}
|
||||
{$sort->_response.$key.link}
|
||||
{else}
|
||||
{$header.name}
|
||||
{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</thead>
|
||||
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="crm-mailing_{$row.id}" class="{cycle values="odd-row,even-row"} crm-mailing crm-mailing_status-{$row.status}">
|
||||
<td class="crm-mailing-name">{$row.name}</td>
|
||||
{if $multilingual}
|
||||
<td class="crm-mailing-language">{$row.language}</td>
|
||||
{/if}
|
||||
<td class="crm-mailing-status crm-mailing_status-{$row.status}">{$row.status}</td>
|
||||
<td class="crm-mailing-created_by">
|
||||
<a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.created_id} title="{$row.created_by|escape}">
|
||||
{$row.created_by|mb_truncate:20:"..."}
|
||||
</a>
|
||||
</td>
|
||||
<td class="crm-mailing-created_date">{$row.created_date}</td>
|
||||
<td class="crm-mailing-scheduled_by">
|
||||
<a href ={crmURL p='civicrm/contact/view' q="reset=1&cid="}{$row.scheduled_id} title="{$row.scheduled_by|escape}">
|
||||
{$row.scheduled_by|mb_truncate:20:"..."}
|
||||
</a>
|
||||
</td>
|
||||
<td class="crm-mailing-scheduled">{$row.scheduled}</td>
|
||||
<td class="crm-mailing-start">{$row.start}</td>
|
||||
<td class="crm-mailing-end">{$row.end}</td>
|
||||
{if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
|
||||
<td class="crm-mailing-campaign">{$row.campaign}</td>
|
||||
{/if}
|
||||
<td>{$row.action|replace:'xx':$row.id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
{if $showLinks}
|
||||
<div class="action-link">
|
||||
{crmButton accesskey="N" p=$newMassUrl q='reset=1' icon="envelope"}{ts}{$linkTitle}{/ts}{/crmButton}<br/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{* No mailings to list. Check isSearch flag to see if we're in a search or not. *}
|
||||
{elseif $isSearch eq 1}
|
||||
{if $archived}
|
||||
{capture assign=browseURL}{crmURL p='civicrm/mailing/browse/archived' q="reset=1"}{$qVal}{/capture}
|
||||
{assign var="browseType" value="Archived"}
|
||||
{elseif $unscheduled}
|
||||
{capture assign=browseURL}{crmURL p='civicrm/mailing/browse/unscheduled' q="scheduled=false&reset=1"}{$qVal}{/capture}
|
||||
{assign var="browseType" value="Draft and Unscheduled"}
|
||||
{else}
|
||||
{capture assign=browseURL}{crmURL p='civicrm/mailing/browse/scheduled' q="scheduled=true&reset=1"}{$qVal}{/capture}
|
||||
{assign var="browseType" value="Scheduled and Sent"}
|
||||
{/if}
|
||||
<div class="status messages">
|
||||
<table class="form-layout">
|
||||
<tr><div class="icon inform-icon"></div>
|
||||
{ts 1=$componentName}No %1 match your search criteria. Suggestions:{/ts}
|
||||
</tr>
|
||||
<div class="spacer"></div>
|
||||
<ul>
|
||||
<li>{ts}Check your spelling.{/ts}</li>
|
||||
<li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
|
||||
</ul>
|
||||
<tr>{ts 1=$browseURL 2=$browseType 3=$componentName}Or you can <a href='%1'>browse all %2 %3</a>.{/ts}</tr>
|
||||
</table>
|
||||
</div>
|
||||
{elseif $unscheduled}
|
||||
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{capture assign=crmURL}{crmURL p=$newMassUrl q='reset=1'}{/capture}
|
||||
{ts 1=$componentName}There are no Unscheduled %1.{/ts}
|
||||
{if $showLinks}{ts 1=$crmURL}You can <a href='%1'>create and send one</a>.{/ts}{/if}
|
||||
</div>
|
||||
|
||||
{elseif $archived}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div> 
|
||||
{capture assign=crmURL}{crmURL p='civicrm/mailing/browse/scheduled' q='scheduled=true&reset=1'}{$qVal}{/capture}
|
||||
{ts 1=$crmURL 2=$componentName}There are no Archived %2. You can archive %2 from <a href='%1'>Scheduled or Sent %2</a>.{/ts}
|
||||
</div>
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{capture assign=crmURL}{crmURL p=$newMassUrl q='reset=1'}{/capture}
|
||||
{capture assign=archiveURL}{crmURL p='civicrm/mailing/browse/archived' q='reset=1'}{$qVal}{/capture}
|
||||
{ts 1=$componentName}There are no Scheduled or Sent %1.{/ts}
|
||||
{if $showLinks}{ts 1=$crmURL}You can <a href='%1'>create and send one</a>{/ts}{/if}{if $archiveLinks}{ts 1=$archiveURL 2=$componentName} OR you can search the <a href='%1'>Archived %2</a>{/ts}{/if}.
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,70 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $action eq 1 or $action eq 2}
|
||||
{include file="CRM/Mailing/Form/Component.tpl"}
|
||||
{else}
|
||||
|
||||
<div id="ltype">
|
||||
<p></p>
|
||||
<div class="form-item">
|
||||
{strip}
|
||||
{* handle enable/disable actions*}
|
||||
{include file="CRM/common/enableDisableApi.tpl"}
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<thead class="sticky">
|
||||
<th>{ts}Name{/ts}</th>
|
||||
<th>{ts}Type{/ts}</th>
|
||||
<th>{ts}Subject{/ts}</th>
|
||||
<th>{ts}Body HTML{/ts}</th>
|
||||
<th>{ts}Body Text{/ts}</th>
|
||||
<th>{ts}Default?{/ts}</th>
|
||||
<th>{ts}Enabled?{/ts}</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
{foreach from=$rows item=row}
|
||||
<tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
|
||||
<td class="crm-editable" data-field="name">{$row.name}</td>
|
||||
<td>{$row.component_type}</td>
|
||||
<td>{$row.subject}</td>
|
||||
<td>{$row.body_html|escape}</td>
|
||||
<td>{$row.body_text|escape}</td>
|
||||
<td>{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td>
|
||||
<td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
|
||||
<td>{$row.action|replace:'xx':$row.id}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
{if $action ne 1 and $action ne 2}
|
||||
<br/>
|
||||
<div class="action-link">
|
||||
{crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Mailing Component{/ts}{/crmButton}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
|
@ -0,0 +1,33 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
{if $success}
|
||||
{ts 1=$display_name 2=$email 3=$group}<strong>%1 (%2)</strong> has been successfully subscribed to the <strong>%3</strong> mailing list.{/ts}
|
||||
{else}
|
||||
{ts}Oops. We encountered a problem in processing your subscription confirmation. Please contact the site administrator.{/ts}
|
||||
{/if}
|
||||
</div>
|
104
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Event.tpl
Normal file
104
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Event.tpl
Normal file
|
@ -0,0 +1,104 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{include file="CRM/common/pager.tpl" location="top"}
|
||||
|
||||
{if $rows }
|
||||
{include file="CRM/common/jsortable.tpl"}
|
||||
{strip}
|
||||
<table id="mailing_event">
|
||||
<thead>
|
||||
<tr>
|
||||
{foreach from=$columnHeaders item=header}
|
||||
<th>
|
||||
{if $header.sort}
|
||||
{assign var='key' value=$header.sort}
|
||||
{$sort->_response.$key.link}
|
||||
{else}
|
||||
{$header.name}
|
||||
{/if}
|
||||
</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
{counter start=0 skip=1 print=false}
|
||||
{foreach from=$rows item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
{foreach from=$row item=value}
|
||||
<td>{$value}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
|
||||
{ts 1=$title}There are currently no %1.{/ts}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="action-link">
|
||||
<a href="{$backUrl}">» {$backUrlTitle}</a>
|
||||
</div>
|
||||
|
||||
{include file="CRM/common/pager.tpl" location="bottom"}
|
||||
|
||||
{if $pager and ( $pager->_totalPages > 1 )}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
var totalPages = {/literal}{$pager->_totalPages}{literal};
|
||||
CRM.$(function($) {
|
||||
$("#crm-container .crm-pager input.crm-form-submit").click(function () {
|
||||
submitPagerData(this);
|
||||
});
|
||||
});
|
||||
|
||||
function submitPagerData(el) {
|
||||
var urlParams = '';
|
||||
var jumpTo = cj(el).parent().children('input[type=text]').val();
|
||||
if (parseInt(jumpTo) == "Nan") {
|
||||
jumpTo = 1;
|
||||
}
|
||||
if (jumpTo > totalPages) {
|
||||
jumpTo = totalPages;
|
||||
}
|
||||
{/literal}
|
||||
{foreach from=$pager->_linkData item=val key=k }
|
||||
{if $k neq 'crmPID' && $k neq 'force' && $k neq 'q' }
|
||||
{literal}
|
||||
urlParams += '&{/literal}{$k}={$val}{literal}';
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{literal}
|
||||
urlParams += '&crmPID=' + parseInt(jumpTo);
|
||||
var submitUrl = {/literal}'{crmURL p="civicrm/mailing/report/event" q="force=1" h=0 }'{literal};
|
||||
document.location = submitUrl + urlParams;
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
240
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Report.tpl
Normal file
240
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Report.tpl
Normal file
|
@ -0,0 +1,240 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
<fieldset>
|
||||
<legend>{ts}Delivery Summary{/ts}</legend>
|
||||
{if $report.jobs.0.start_date}
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.queue}">{ts}Intended Recipients{/ts}</a></td>
|
||||
<td>{$report.event_totals.queue}</td>
|
||||
<td>{$report.event_totals.actionlinks.queue}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.delivered}">{ts}Successful Deliveries{/ts}</a></td>
|
||||
<td>{$report.event_totals.delivered} ({$report.event_totals.delivered_rate|string_format:"%0.2f"}%)</td>
|
||||
<td>{$report.event_totals.actionlinks.delivered}</td></tr>
|
||||
{if $report.mailing.open_tracking}
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.opened}&distinct=1">{ts}Unique Opens{/ts}</a></td>
|
||||
<td>{$report.event_totals.opened}</td>
|
||||
<td>{$report.event_totals.actionlinks.opened}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.opened}">{ts}Total Opens{/ts}</a></td>
|
||||
<td>{$report.event_totals.total_opened}</td>
|
||||
<td>{$report.event_totals.actionlinks.opened}</td></tr>
|
||||
{/if}
|
||||
{if $report.mailing.url_tracking}
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.clicks}">{ts}Click-throughs{/ts}</a></td>
|
||||
<td>{$report.event_totals.url}</td>
|
||||
<td>{$report.event_totals.actionlinks.clicks}</td></tr>
|
||||
{/if}
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.forward}">{ts}Forwards{/ts}</a></td>
|
||||
<td>{$report.event_totals.forward}</td>
|
||||
<td>{$report.event_totals.actionlinks.forward}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.reply}">{ts}Replies{/ts}</a></td>
|
||||
<td>{$report.event_totals.reply}</td>
|
||||
<td>{$report.event_totals.actionlinks.reply}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.bounce}">{ts}Bounces{/ts}</a></td>
|
||||
<td>{$report.event_totals.bounce} ({$report.event_totals.bounce_rate|string_format:"%0.2f"}%)</td>
|
||||
<td>{$report.event_totals.actionlinks.bounce}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.unsubscribe}">{ts}Unsubscribe Requests{/ts}</a></td>
|
||||
<td>{$report.event_totals.unsubscribe} ({$report.event_totals.unsubscribe_rate|string_format:"%0.2f"}%)</td>
|
||||
<td>{$report.event_totals.actionlinks.unsubscribe}</td></tr>
|
||||
<tr><td class="label"><a href="{$report.event_totals.links.optout}">{ts}Opt-out Requests{/ts}</a></td>
|
||||
<td>{$report.event_totals.optout} ({$report.event_totals.optout_rate|string_format:"%0.2f"}%)</td>
|
||||
<td>{$report.event_totals.actionlinks.optout}</td></tr>
|
||||
<tr><td class="label">{ts}Scheduled Date{/ts}</td>
|
||||
<td colspan=2>{$report.jobs.0.scheduled_date}</td></tr>
|
||||
<tr><td class="label">{ts}Status{/ts}</td>
|
||||
<td colspan=2>{$report.jobs.0.status}</td></tr>
|
||||
<tr><td class="label">{ts}Start Date{/ts}</td>
|
||||
<td colspan=2>{$report.jobs.0.start_date}</td></tr>
|
||||
<tr><td class="label">{ts}End Date{/ts}</td>
|
||||
<td colspan=2>{$report.jobs.0.end_date}</td></tr>
|
||||
</table>
|
||||
{/strip}
|
||||
{else}
|
||||
<div class="messages status no-popup">
|
||||
{ts}<strong>Delivery has not yet begun for this mailing.</strong> If the scheduled delivery date and time is past, ask the system administrator or technical support contact for your site to verify that the automated mailer task ('cron job') is running - and how frequently.{/ts} {docURL page="user/advanced-configuration/email-system-configuration"}
|
||||
</div>
|
||||
{/if}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{ts}Recipients{/ts}</legend>
|
||||
{if $report.group.include|@count}
|
||||
<span class="label">{ts}Included{/ts}</span>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
{foreach from=$report.group.include item=group}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>
|
||||
{if $group.mailing}
|
||||
{ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
|
||||
{else}
|
||||
{ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{/if}
|
||||
|
||||
{if $report.group.exclude|@count}
|
||||
<span class="label">{ts}Excluded{/ts}</span>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
{foreach from=$report.group.exclude item=group}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>
|
||||
{if $group.mailing}
|
||||
{ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
|
||||
{else}
|
||||
{ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{/if}
|
||||
|
||||
{if $report.group.base|@count}
|
||||
<span class="label">{ts}Unsubscription Groups{/ts}</span>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
{foreach from=$report.group.base item=group}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>
|
||||
{if $group.mailing}
|
||||
{ts 1=$group.link 2=$group.name}Recipients of <a href="%1">%2</a>{/ts}
|
||||
{else}
|
||||
{ts 1=$group.link 2=$group.name}Members of <a href="%1">%2</a>{/ts}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
{/if}
|
||||
</fieldset>
|
||||
|
||||
{if $report.mailing.url_tracking && $report.click_through|@count > 0}
|
||||
<fieldset>
|
||||
<legend>{ts}Click-through Summary{/ts}</legend>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
<tr>
|
||||
<th><a href="{$report.event_totals.links.clicks}">{ts}Clicks{/ts}</a></th>
|
||||
<th><a href="{$report.event_totals.links.clicks_unique}">{ts}Unique Clicks{/ts}</a></th>
|
||||
<th>{ts}Success Rate{/ts}</th>
|
||||
<th>{ts}URL{/ts}</th>
|
||||
<th>{ts}Report{/ts}</th></tr>
|
||||
{foreach from=$report.click_through item=row}
|
||||
<tr class="{cycle values="odd-row,even-row"}">
|
||||
<td>{if $row.clicks > 0}<a href="{$row.link}">{$row.clicks}</a>{else}{$row.clicks}{/if}</td>
|
||||
<td>{if $row.unique > 0}<a href="{$row.link_unique}">{$row.unique}</a>{else}{$row.unique}{/if}</td>
|
||||
<td>{$row.rate|string_format:"%0.2f"}%</td>
|
||||
<td><a href="{$row.url}">{$row.url}</a></td>
|
||||
<td><a href="{$row.report}">Report</a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
<fieldset>
|
||||
<legend>{ts}Content / Components{/ts}</legend>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
{if $report.mailing.body_text}
|
||||
<tr>
|
||||
<td class="label nowrap">{ts}Text Message{/ts}</td>
|
||||
<td>
|
||||
{$report.mailing.body_text|mb_truncate:30|escape|nl2br}
|
||||
<br />
|
||||
<strong><a class="crm-popup" href='{$textViewURL}'>» {ts}View complete message{/ts}</a></strong>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $report.mailing.body_html}
|
||||
<tr>
|
||||
<td class="label nowrap">{ts}HTML Message{/ts}</td>
|
||||
<td>
|
||||
{$report.mailing.body_html|mb_truncate:30|escape|nl2br}
|
||||
<br/>
|
||||
<strong><a class="crm-popup" href='{$htmlViewURL}'>» {ts}View complete message{/ts}</a></strong>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $report.mailing.attachment}
|
||||
<tr>
|
||||
<td class="label nowrap">{ts}Attachments{/ts}</td>
|
||||
<td>
|
||||
{$report.mailing.attachment}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{foreach from=$report.component item=component}
|
||||
<tr><td class="label">{$component.type}</td><td><a href="{$component.link}">{$component.name}</a></td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{/strip}
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
{ts}Mailing Settings{/ts}
|
||||
</legend>
|
||||
{strip}
|
||||
<table class="crm-info-panel">
|
||||
<tr><td class="label">{ts}Mailing Name{/ts}</td><td>{$report.mailing.name}</td></tr>
|
||||
<tr><td class="label">{ts}Subject{/ts}</td><td>{$report.mailing.subject}</td></tr>
|
||||
<tr><td class="label">{ts}From{/ts}</td><td>{$report.mailing.from_name} <{$report.mailing.from_email}></td></tr>
|
||||
<tr><td class="label">{ts}Reply-to email{/ts}</td><td>{$report.mailing.replyto_email|htmlentities}</td></tr>
|
||||
|
||||
<tr><td class="label">{ts}Forward replies{/ts}</td><td>{if $report.mailing.forward_replies}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
|
||||
<tr><td class="label">{ts}Auto-respond to replies{/ts}</td><td>{if $report.mailing.auto_responder}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
|
||||
|
||||
<tr><td class="label">{ts}Open tracking{/ts}</td><td>{if $report.mailing.open_tracking}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
|
||||
<tr><td class="label">{ts}URL Click-through tracking{/ts}</td><td>{if $report.mailing.url_tracking}{ts}On{/ts}{else}{ts}Off{/ts}{/if}</td></tr>
|
||||
{if $public_url}<td class="label">{ts}Public url{/ts}</td><td><a href="{$public_url}"> {$public_url}</a></td></tr>{/if}
|
||||
{if $report.mailing.campaign}
|
||||
<tr><td class="label">{ts}Campaign{/ts}</td><td>{$report.mailing.campaign}</td></tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
{/strip}
|
||||
</fieldset>
|
||||
<div class="action-link">
|
||||
<a href="{$backUrl}" >» {$backUrlTitle}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
{if $confirm}
|
||||
<div class="messages status no-popup">
|
||||
<div class="icon inform-icon"></div>
|
||||
<label>{$display_name} ({$email})</label> {ts}has been successfully resubscribed.{/ts}
|
||||
</div>
|
||||
{else}
|
||||
<div>
|
||||
<form action="{$confirmURL}" method="post">
|
||||
{ts 1=$display_name 2=$email}Are you sure you want to resubscribe: %1 (%2){/ts}
|
||||
<br/>
|
||||
<center>
|
||||
<input type="submit" name="_qf_resubscribe_next" value="{ts}Resubscribe{/ts}" class="crm-form-submit" />
|
||||
|
||||
<input type="submit" name="_qf_resubscribe_cancel" value="{ts}Cancel{/ts}" class="crm-form-submit" />
|
||||
</center>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
51
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Tab.tpl
Normal file
51
sites/all/modules/civicrm/templates/CRM/Mailing/Page/Tab.tpl
Normal file
|
@ -0,0 +1,51 @@
|
|||
{*
|
||||
+--------------------------------------------------------------------+
|
||||
| CiviCRM version 4.7 |
|
||||
+--------------------------------------------------------------------+
|
||||
| Copyright CiviCRM LLC (c) 2004-2017 |
|
||||
+--------------------------------------------------------------------+
|
||||
| This file is a part of CiviCRM. |
|
||||
| |
|
||||
| CiviCRM is free software; you can copy, modify, and distribute it |
|
||||
| under the terms of the GNU Affero General Public License |
|
||||
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
|
||||
| |
|
||||
| CiviCRM is distributed in the hope that it will be useful, but |
|
||||
| WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
||||
| See the GNU Affero General Public License for more details. |
|
||||
| |
|
||||
| You should have received a copy of the GNU Affero General Public |
|
||||
| License and the CiviCRM Licensing Exception along |
|
||||
| with this program; if not, contact CiviCRM LLC |
|
||||
| at info[AT]civicrm[DOT]org. If you have questions about the |
|
||||
| GNU Affero General Public License or the licensing of CiviCRM, |
|
||||
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
|
||||
+--------------------------------------------------------------------+
|
||||
*}
|
||||
|
||||
<div class="crm-mailing-selector">
|
||||
<table class="contact-mailing-selector crm-ajax-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-data="subject" class="crm-mailing-contact-subject">{ts}Subject{/ts}</th>
|
||||
<th data-data="creator_name" class="crm-mailing-contact_created">{ts}Added By{/ts}</th>
|
||||
<th data-data="recipients" data-orderable="false" class="crm-contact-activity_contact">{ts}Recipients{/ts}</th>
|
||||
<th data-data="start_date" class="crm-mailing-contact-date">{ts}Date{/ts}</th>
|
||||
<th data-data="openstats" data-orderable="false" class="crm-mailing_openstats">{ts}Opens/ Clicks{/ts}</th>
|
||||
<th data-data="links" data-orderable="false" class="crm-mailing-contact-links"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
CRM.$('table.contact-mailing-selector').data({
|
||||
"ajax": {
|
||||
"url": {/literal}'{crmURL p="civicrm/ajax/contactmailing" h=0 q="contact_id=$contactId"}'{literal}
|
||||
}
|
||||
});
|
||||
})(CRM.$);
|
||||
</script>
|
||||
{/literal}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue