Repository navigation
Nominations: Next steps page #3179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JacobCoffee
wants to merge
8
commits into
main
Choose a base branch
from
nominations-supporting-statements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d5f8017
Document sponsor use cases and make the base class abstract
JacobCoffee dafd575
Correct stale sponsor use case and user-flow docs
JacobCoffee 2683bd1
show support stmt guideance for self noms
JacobCoffee fcdc7de
add self nom next steps page
JacobCoffee 47c819a
redir self nom to next steps
JacobCoffee 9942bb9
also add email with same info
JacobCoffee 5e0cbba
require account email to self-nominate
JacobCoffee dec3280
Merge remote-tracking branch 'origin/main' into nominations-supportin…
JacobCoffee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
apps/nominations/templates/nominations/_supporting_statements.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| {% url 'nominations:nomination_create' election=nomination.election.slug as nomination_create_url %} | ||
| <div class="nomination-supporting-statements"> | ||
| <h2>Getting supporting statements</h2> | ||
| <p>Other people can support your candidacy by submitting their own nomination for you. Share this link with them:</p> | ||
| <p><a href="{{ nomination_create_url }}">{{ request.scheme }}://{{ request.get_host }}{{ nomination_create_url }}</a></p> | ||
| <ul> | ||
| <li>They need to sign in with their own python.org account.</li> | ||
| <li>Ask them to leave “self nomination” unchecked and enter your name and <b>{{ request.user.email }}</b>, the email address on your python.org account, so their nomination can be matched to you.</li> | ||
| <li>Once a supporting nomination is linked to you, accept it from <a href="{% url 'users:user_nominations_view' %}">your nominations</a>. Only accepted nominations are published.</li> | ||
| <li>Supporting nominations must be submitted before nominations close.</li> | ||
| </ul> | ||
| </div> |
28 changes: 28 additions & 0 deletions
28
apps/nominations/templates/nominations/email/self_nomination_received.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| {% autoescape off %}Hi {{ nomination.nominator.first_name }}, | ||
|
|
||
| Your self-nomination for the {{ nomination.election.name }} Election has been received. | ||
|
|
||
| What you need to know: | ||
|
|
||
| - Your nomination is already marked as accepted. You don't need to accept it again. | ||
| - You can edit it until nominations close{% if nomination.election.nominations_close_at %} on {{ nomination.election.nominations_close_at|date:"F j, Y, P T" }}{% endif %}. | ||
| - PSF staff will review your nomination before it is published. | ||
| - Approved nominees are listed publicly once nominations close. | ||
|
|
||
| View or edit your nomination: | ||
| {{ submitted_url }} | ||
|
|
||
| Getting supporting statements | ||
|
|
||
| Other people can support your candidacy by submitting their own nomination for you. Share this link with them: | ||
| {{ nomination_create_url }} | ||
|
|
||
| - They need to sign in with their own python.org account. | ||
| - Ask them to leave "self nomination" unchecked and enter your name and {{ nomination.nominator.email }}, the email address on your python.org account, so their nomination can be matched to you. | ||
| - Once a supporting nomination is linked to you, accept it from your nominations: {{ user_nominations_url }} | ||
| Only accepted nominations are published. | ||
| - Supporting nominations must be submitted before nominations close. | ||
|
|
||
| Thank you, | ||
| The Python Software Foundation | ||
| {% endautoescape %} |
1 change: 1 addition & 0 deletions
1
apps/nominations/templates/nominations/email/self_nomination_received_subject.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Your self-nomination for the {{ nomination.election.name }} Election has been received |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/nominations/templates/nominations/nomination_submitted.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| {% extends "psf/default.html" %} | ||
|
|
||
| {% block page_title %} | ||
| Self-nomination received for {{ nomination.election.name }} Election | ||
| | {{ SITE_INFO.site_name }} | ||
| {% endblock %} | ||
|
|
||
| {% block body_attributes %}class="nominations nominations_view"{% endblock %} | ||
| {% block head %}{% include "nominations/_theme.html" with election=nomination.election %}{% endblock %} | ||
| {% block left_sidebar %}{% endblock %} | ||
| {% block content_attributes %}{% endblock %} | ||
|
|
||
| {% block content %} | ||
| <article class="text"> | ||
| <header class="article-header"> | ||
| <h1 class="page-title">Your self-nomination for the {{ nomination.election.name }} Election has been received</h1> | ||
| </header> | ||
|
|
||
| <h2>What you need to know</h2> | ||
| <ul> | ||
| <li>Your nomination is already marked as accepted. You don't need to accept it again.</li> | ||
| <li>You can edit it until nominations close{% if nomination.election.nominations_close_at %} on {{ nomination.election.nominations_close_at|date:"F j, Y, P T" }}{% endif %}.</li> | ||
| <li>PSF staff will review your nomination before it is published.</li> | ||
| <li>Approved nominees are listed publicly once nominations close.</li> | ||
| </ul> | ||
| <p> | ||
| <a href="{{ nomination.get_absolute_url }}">View your nomination</a> | ||
| {% if nomination.election.nominations_open %}| <a href="{{ nomination.get_edit_url }}">Edit it</a>{% endif %} | ||
| | <a href="{% url 'users:user_nominations_view' %}">See all your nominations</a> | ||
| </p> | ||
|
|
||
| {% if nomination.election.nominations_open %} | ||
| {% include "nominations/_supporting_statements.html" %} | ||
| {% endif %} | ||
| </article> | ||
| {% endblock content %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.