Skip to content
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

✨ #481 - Handle situation where the user has been made inact…" #213

Merged
merged 10 commits into from
Jun 2, 2022

Conversation

alextreme
Copy link
Member

Restoring PR for 211

@alextreme alextreme requested a review from svenvandescheur May 9, 2022 15:57
Copy link
Contributor

@annashamray annashamray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that

  • disabled param is excessive on the form level: because it the whole form is inactive when why to show it
  • disabled param is excessive for the form_action component for the same reason

To be honest I don't understand why to show the form on the message page if the user is inactive?
Let's just remove it from the page without propagating disabled parameter through several components

Also some testing would be appreciated

@@ -245,6 +245,10 @@ def __init__(self, user, **kwargs):
self.fields["receiver"].choices = choices
self.fields["receiver"].queryset = extended_contact_users

if disabled:
self.fields["content"].disabled = True
self.fields["content"].widget.attrs["placeholder"] = _("Gebruiker inactief")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file field is not disabled

@JostCrow JostCrow requested a review from annashamray May 25, 2022 09:55
Copy link
Contributor

@annashamray annashamray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed "disabled" parameter from form and form actions.
@JostCrow if it should be present please revert my commit

@alextreme alextreme merged commit 2b30068 into develop Jun 2, 2022
@alextreme alextreme deleted the revert-212-revert-211-issues#2022-05-09 branch June 2, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants