rubyforgood/voices-of-consent

Create models to allow easy editing of email templates

オープン

#107 opened on 2019/07/27

 (2 件のコメント) (0 件のリアクション) (1 人の担当者)Ruby (80 件のフォーク)auto 404
Priority: Lowhelp wanted

Repository metrics

Stars
 (40 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド