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
Added note that user's email address may be shared with external orga… #956
Conversation
@suecarmol |
Hi @suecarmol , |
Hi @Ankit-Gupta18, I am in the process of refactoring most of the code here. Since this is not the right approach to solve this problem, I am going to wait until the refactoring is done so I can help you more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Ankit-Gupta18. Thank you for your patience; I know that your PR took a long time to get a review. As I mentioned in the in-line comment, I don't think this is the correct approach. What you need to do is the following:
- Rebase your PR since there have been changes in the
applications
files. - In the
SubmitSingleApplicationView
, you should add aget_context_data
method. The method should look like this:
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
partner = self._get_partner()
context["partner"] = partner
context["EMAIL"] = Partner.EMAIL
return context
This should make all the information you need available in the template.
3. In the template (TWLight/applications/templates/applications/apply.html), you should add a condition. If partner has a EMAIL authorization_method
, then that message should be displayed.
Let me know if you have any questions :)
Hi @suecarmol, |
Hi @Ankit-Gupta18, I was referring to an |
I have attached an image. Is this is what you are referring to? |
Yes, that is the tag I am referring to, although the tag should be placed after the |
Hi @suecarmol , |
Hi @suecarmol , |
Hi @suecarmol , |
Try forcing the push with |
Hi @suecarmol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have rebased your PR. Just one more thing and this will be ready to merge.
Hi @suecarmol , |
…nisation in application form for EMAIL partners Addressed reviews Addressed final reviews
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your patience and for completing this task.
…nisation in application form for EMAIL partners
Description
Describe your changes in detail following the [commit message guidelines]
Added "If your application is successful we may share your email address with . This is required to set up your access to their resources. By submitting this form you agree to allow your email address to be shared with if your application is successful, for the purposes of account setup " at the top of forms.
Rationale
Phabricator Ticket
//: # https://phabricator.wikimedia.org/T300374
How Has This Been Tested?
Screenshots of your changes (if appropriate):
Types of changes
What types of changes does your code introduce? Add an
x
in all the boxes that apply: