Problem/Motivation

1) When listing embedded policy (for specific entities rather than all entities) show an expanded summary. Put one adjuster per line and allow the adjuster to output some short text. E.g. address adjusters would show the address.

2) Guide the admin for common elements to add to policy based on the type of email.

Proposed resolution

1)

  • Add EmailAdjusterInterface::getSummary().
  • Add a parameter to MailerPolicy::getSummary(bool $expanded). Call the above if $expanded is TRUE.
  • In MailerPolicyListBuilder::buildRow() pass $expanded if $overrideEntities is set.

2) The required information is present on the @EmailBuilder annotation. Use it in PolicyEditForm: put them first in the list of adjusters to add and perhaps in help.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Issue summary: View changes
adamps’s picture

Status: Active » Needs review
StatusFileSize
new11.65 KB
adamps’s picture

Status: Needs review » Fixed

  • AdamPS committed 4a8cd53 on 1.x
    Issue #3271804 by AdamPS: Improvements to policy embedding
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.