rubyforgood/voices-of-consent

Create models to allow easy editing of email templates

Open

#107 opened on Jul 27, 2019

View on GitHub
 (2 comments) (0 reactions) (1 assignee)Ruby (80 forks)auto 404
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.

Contributor guide