Skip to content

Commit

Permalink
Merge pull request #23316 from jmcclelland/petition-links
Browse files Browse the repository at this point in the history
Make links to sign a petition easily accessible on the form.
  • Loading branch information
seamuslee001 committed Apr 28, 2022
2 parents a43ee4b + 238c837 commit 16649c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/CRM/Campaign/Form/Petition.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@
<div class="description">{ts}Is this the default petition?{/ts}</div>
</td>
</tr>
<tr class="crm-campaign-survey-form-block-links">
<td class="label"><label>{ts}Links to sign this petition{/ts}</label></td>
<td>
{if $surveyId}
{ts}Public{/ts}: <pre>{$config->userFrameworkBaseURL}civicrm/petition/sign?sid={$surveyId}&amp;reset=1</pre><br/>
{ts}CiviMail{/ts}: <pre>{$config->userFrameworkBaseURL}civicrm/petition/sign?sid={$surveyId}&amp;reset=1&amp;&#123;contact.checksum&#125;&amp;cid=&#123;contact.contact_id&#125;</pre></br/>
<div class="description">{ts}Copy and paste the public link anywhere on the Internet, including social media. The CiviMail link should only be copied into a CiviMail message. It will pre-populate the profile with existing information for the person who receives the email.{/ts}</div>
{else}
<div class="description">{ts}The links will be visible after you save the petition.{/ts}</div>
{/if}
</td>
</tr>
</table>
{include file="CRM/common/customDataBlock.tpl"}
{/if}
Expand Down

0 comments on commit 16649c7

Please sign in to comment.