rubyforgood/voices-of-consent

Create models to allow easy editing of email templates

Aperta

#107 aperta il 27 lug 2019

 (2 commenti) (0 reazioni) (1 assegnatario)Ruby (80 fork)auto 404
Priority: Lowhelp wanted

Metriche repository

Star
 (40 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor