We're updating the issue view to help you get more done. 

Add support to load email templates

Description

Extend templateload to support the loading of email templates, and linking them to entity.documentTemplates.

E.g.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <templates> <email-template name="Grouped Reminders Email" description="Reminder template for grouped reminders sent via email" subject="A friendly reminder" subjectType="TEXT" path="Reporting/Reminders/A4/Grouped Reminders Email.jrxml" system="true"/> <template name="Grouped Reminders Report" archetype="GROUPED_REMINDERS" reportType="PATIENT" description="Used by Reporting|Reminders|Print &#038; Send All buttons for Grouped Reminders" path="Reporting/Reminders/A4/Grouped Reminders.jrxml" mimeType="text/xml" docType="document.other"> <email-template name=""Grouped Reminders Email"/> </template> </templates>

Specifying system=true will create an entity.documentTemplateEmailSystem (and therefore not be listed as an option in the Mail editor).
Specifying system=false (the default) will create an entity.documentTemplateEmailUser.

This will only support email templates with DOCUMENT contentType. i.e. there is currently no requirement to support TEXT, MACRO, or XPATH.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Priority

Minor