-
Notifications
You must be signed in to change notification settings - Fork 17
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
Account deletion request final #314
Conversation
@ayobi One request, and it's something I unfortunately should've considered earlier. Can you add the deletion reason field to the participant's UI as an optional field? The field should still be a part of the admin UI, either populated with the participant's reason, or blank if they opted not to provide one. Ideally, we'd like to give the user the option to enter the reason they're removing themselves from the project without us having to contact them and ask. |
{% set show_breadcrumbs = False %} | ||
{% block content %} | ||
<script> | ||
function verifyDeleteRequest() { |
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.
This seems nearly duplicated in the prior template, is it possible to centralize the method?
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.
Or maybe there's something I'm misunderstanding
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.
Yeah they're pretty similar, for the admin one the prompt wording is slightly different as well as the getElementById
per suggestion Co-authored-by: Daniel McDonald <[email protected]>
if has_error: | ||
return put_output | ||
|
||
return _render_with_defaults('request_account_deletion_confirm.jinja2') |
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.
@ayobi I'm running into an odd issue with this on the staging server. Private API receives and successfully logs the removal request, but when the template contents are returned, they're enclosed in double quotes and the browser isn't rendering it correctly (screenshot below). Does this match what's happening in your local environment? I'm trying to determine if this is a code issue with the template/yaml file or what's going on here.
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.
Looks good functionally, just a few aesthetic changes to the deletion confirmation template to bring it in line with the account details page visually.
This pushes #267 over the finish line to allow an admin to delete an account (admin is prompted to supply a reason for account deletion)