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

Portfolio (django admin): Hide federal agency when the organization type is not federal #2861

Open
3 tasks
zandercymatics opened this issue Sep 27, 2024 · 1 comment

Comments

@zandercymatics
Copy link
Contributor

Issue description

On the portfolio page, we dynamically hide the organization name field when the organization type is set to Federal.
For this ticket, we should do the inverse: hide the federal agency field when the organization type is not federal.

Acceptance criteria

  • The federal agency field is hidden on the page when the organization_type is not federal.
  • The federal agency field is set to non-federal agency on save if the organization_type is not federal.
  • Ensure that the organization name is still visible when organization_type is not federal.

Additional context

In get-gov-admin.js, there is an existing IIFE called dynamicPortfolioFields. This may be a good spot for this change.

Links to other issues

No response

@zandercymatics
Copy link
Contributor Author

@abroddrick Thoughts on the The federal agency field is set to non-federal agency on save if the organization_type is not federal. AC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👶 New
Development

No branches or pull requests

2 participants