102 lines
4.1 KiB
Smarty
102 lines
4.1 KiB
Smarty
|
{*
|
||
|
+--------------------------------------------------------------------+
|
||
|
| 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 |
|
||
|
+--------------------------------------------------------------------+
|
||
|
*}
|
||
|
{* Enduser Tell-a-Friend form. *}
|
||
|
{if $status eq 'thankyou' } {* Form has been submitted. *}
|
||
|
<div class="crm-section tell_friend_thankyou-section">
|
||
|
{$thankYouText}
|
||
|
</div>
|
||
|
|
||
|
{* Add button for donor to create their own Personal Campaign page *}
|
||
|
{if $linkText}
|
||
|
<div class="crm-section create_pcp_link-section">
|
||
|
<a href="{$linkTextUrl}" title="{$linkText|escape}" class="button"><span>» {$linkText}</span></a>
|
||
|
</div><br /><br />
|
||
|
{/if}
|
||
|
|
||
|
{else}
|
||
|
<div class="crm-group tell_friend_form-group">
|
||
|
<table class="form-layout-compressed">
|
||
|
<tr>
|
||
|
<td colspan=2>
|
||
|
<p>
|
||
|
{if $context EQ 'pcp'}
|
||
|
{ts 1=$pcpTitle}Spread the word about this fundraising page (%1). Add your personal message below. A link to the fundraising page will be automatically included in the email.{/ts}
|
||
|
{else}
|
||
|
{$intro}
|
||
|
{/if}
|
||
|
</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="right font-size12pt">{$form.from_name.label} </td>
|
||
|
<td class="font-size12pt">{$form.from_name.html} <{$form.from_email.html}></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="label font-size12pt">{$form.suggested_message.label}</td>
|
||
|
<td>{$form.suggested_message.html}</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
<fieldset class="crm-group tell_friend_emails-group">
|
||
|
<legend>{ts}Send to these Friend(s){/ts}</legend>
|
||
|
<table>
|
||
|
<tr class="columnheader">
|
||
|
<td>{ts}First Name{/ts}</td>
|
||
|
<td>{ts}Last Name{/ts}</td>
|
||
|
<td>{ts}Email Address{/ts}</td>
|
||
|
</tr>
|
||
|
{section name=mail start=1 loop=$mailLimit}
|
||
|
{assign var=idx value=$smarty.section.mail.index}
|
||
|
<tr>
|
||
|
<td class="even-row">{$form.friend.$idx.first_name.html}</td>
|
||
|
<td class="even-row">{$form.friend.$idx.last_name.html}</td>
|
||
|
<td class="even-row">{$form.friend.$idx.email.html}</td>
|
||
|
</tr>
|
||
|
{/section}
|
||
|
</table>
|
||
|
</fieldset>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td> </td>
|
||
|
<td>{$form.buttons.html}</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
{/if}
|
||
|
|
||
|
{if $isShare}
|
||
|
{if $context EQ 'event'}
|
||
|
{capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&reset=1" a=1 fe=1 h=1}{/capture}
|
||
|
{else}
|
||
|
{capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$entityID`" a=1 fe=1 h=1}{/capture}
|
||
|
{/if}
|
||
|
{include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL}
|
||
|
{/if}
|