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.
When a user selects the funder and research organization when creating a template, the following logic is used currently:
If a Funder was specified
If no Funder was specified OR the Funder and the Research Org are the same
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.