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

Show template being selected even if only one option #643

Open
bofstein opened this issue Aug 9, 2024 · 0 comments
Open

Show template being selected even if only one option #643

bofstein opened this issue Aug 9, 2024 · 0 comments

Comments

@bofstein
Copy link
Collaborator

bofstein commented Aug 9, 2024

When a user selects the funder and research organization when creating a template, the following logic is used currently:

  • If a Funder was specified

    • find all of that Funder's templates that are PUBLIC
    • find any customized versions of the Funder templates if a Research Org was specified
    • if customizations were found, swap out the funder copy with the customization
  • If no Funder was specified OR the Funder and the Research Org are the same

    • find all of the Research Org's templates that are ORGANIZATIONALLY visible
  • If any templates were found above, use them otherwise default to the Default template

  • If there is only one template available just enable the 'Create' button otherwise show a dropdown select box

This leads to a few areas of confusion. One is that if there is only one template available, the person cannot see what the template is and may believe there is an issue with the template not showing up. We can change this by continuing to show the dropdown, even if there is only one template available.

We can clear up other areas of confusion, without changing the main codebase, in separate tickets.

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

No branches or pull requests

1 participant