rubyforgood/voices-of-consent
View on GitHubCreate models to allow easy editing of email templates
Open
#107 opened on Jul 27, 2019
Priority: Lowhelp wanted
Repository metrics
- Stars
- (40 stars)
- PR merge metrics
- (PR metrics pending)
Description
It would be nice if we had a way to model the different email templates so that the contents of the email could be easily edited in a UI.
We would want the fields to be:
- Email Subject
- Hero image
- Title text
- Body text
And anything else you think would be good :)
Then pass those values in as template variable when rendering the Email HTML erb files.
For example, there could be a model called BoxRequestReceivedEmail and that would determine what is the content inside the email that gets sent to volunteers when a box request is received.