Make links to sign a petition easily accessible on the form. #23316
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Add links to the bottom of the petition edit form so users can more easily publicize their petition.
Before
Before, users can find the signature link by clicking on the "..." menu on the list of petitions and clicking the "Sign" option and then copying the URL from the browser location bar. Very easy for experienced Internet folks, but impossibly complicated for people who don't know what an URL is.
Here's what the bottom of the edit petition form looks like prior to the change:
After
When editing an existing petition, the links now appear in a way that is easy to copy and paste. Additionally, we provide the link you can insert into a CiviMail message to have the profile pre-populated.
Technical Details
The code is very simple and completely lives in the template.