diconium / ethereal-pulse

Apache License 2.0
0 stars 3 forks source link

Fetch and Display Email Templates #27

Open ivanLOliveira opened 2 weeks ago

ivanLOliveira commented 2 weeks ago

Description

We need to create functionality to fetch and display email templates on the Email Dashboard. If a template is selected, the Send Email form will be pre-filled with the template content and will not request the HTML content field, only the other fields.

Preconditions

Tasks

  1. Fetch email templates:

    • Make a fetch call to the template route to retrieve the list of created templates.
  2. Display templates:

    • Display the templates in a list format on the Email Dashboard.
  3. Template selection:

    • Allow users to select a template from the list.
    • If a template is selected, pre-fill the Send Email form with the template content.
  4. Modify Send Email form:

    • Adjust the Send Email form to not request the HTML content field if a template is selected.
    • Ensure that other fields (From, CC) are still required.

Additional Context

Labels

frontend, enhancement

Acceptance Criteria