Issue Summary
When there are no template groups configured, Statuspage will not not rendering the list of templates available in the Scheduled Maintenance creation screen.
Steps to Reproduce
- Ensure that all the templates for the Statuspage are not part of any template group, and there are no empty template groups either.
- Begin creating a Scheduled Maintenance via Incidents > Maintenances Tab and click the Schedule Maintenance button
- Within the creation screen, clicking on the "Apply template" to show the available templates to be used.
Expected Results
A list of templates will be shown to choose from, and any template not assigned to a group will be shown as "Ungrouped"
Actual Results
The list is not rendered
Workaround
As this situation occurs only when there are no template groups, the workaround for this is to create an empty template group.
- Take a template and make it part of a new Template group (that is created then and there).
- Go back to that template and make it no longer part of that group by assigning it back to "This template does not belong to any group"
- Do not delete the template group, it should still exist as an option for the template to be grouped with.
The existence of this template group will allow the list to render, but will not be displayed in the list of templates as it has no templates associated with it.