Skip to content

RFC: Custom variadic UI #57

@julik

Description

@julik

We are using email previews a lot, and we have many variations in our templates regarding model objects that participate in email rendering. Using the menus for raw/html/text and languages is really cool, and I thought that it would be nice to add some call for adding custom variadic UI to the preview pages. Something like

def notify_person
  add_parameter_selector :recipient_id, {"John" => 1, "Jane" => 2}
  recipient = Recipient.find(@recipient_id)
  DownloadMailer.notify_recipient transfer, recipient
end

with an additional effect that add_parameter_selector would preset the defined instance variable to the first value of the select. Would that be welcome?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions