coldfront
coldfront copied to clipboard
As an admin, I'd like an easier way for editing email templates
Currently, email templates are located in https://github.com/ubccr/coldfront/tree/master/coldfront/templates/email
Editing these templates is done so by the ColdFront administrator. However, there may be centers that want to allow other system administrators (those with Django 'superuser status'), that may not be the ColdFront administrator, to edit these templates without having to do so in the ColdFront code.
Tasks:
-
It is desirable to add a section either in the Django admin to view and edit the templates. We use Django variables in the templates so these must be accessible from the Django admin. If this is not possible, an alternative would be to provide a section under the 'Admin' menu in the UI where admins could view and edit the templates.
-
In addition to the feature request, documentation should be developed regarding these templates, how to edit them, and include a list of variables likely to be used for email templates. A good place for this might be the 'How To' section of our manual: https://coldfront.readthedocs.io/en/latest/manual/howto
This is currently the only place we refer to the site templates in our documentation: https://coldfront.readthedocs.io/en/latest/config/#template-settings
Test Tasks:
- Login to ColdFront
- Select the Admin menu and click on "ColdFront Administration"
- Navigate to the location of the email templates
- Open an existing template (i.e. new_allocation_request.txt) and edit it. Save the changes.
- Go to the ColdFront UI, click on an existing project or make a new one.
- Click on "New allocation request" and complete the steps to save the new request.
- Check your email and ensure the changes you made to the new_allocation_request template show up in the "new allocation requested" email.