Sha256: d78b85618df64f19fa1c3a47fd8311c081317d6de9c689a6f0ee91ebdd18a2fd
Contents?: true
Size: 855 Bytes
Versions: 8
Compression:
Stored size: 855 Bytes
Contents
= effective_form_with(model: email_template, url: email_template.persisted? ? effective_email_templates.admin_email_template_path(email_template.id) : effective_email_templates.admin_email_templates_path) do |f| = f.static_field :template_name, label: 'Name' = f.select :content_type, Effective::EmailTemplate::CONTENT_TYPES = f.email_field :from, hint: 'Whom the email will be sent from' = f.text_field :cc = f.text_field :bcc = f.text_field :subject, hint: 'The subject of your email' = f.text_area :body, hint: 'The content of your email template', rows: 10 .card .card-body %p The available variables for this email template are: %ul - Array(f.object.template_variables).each do |variable| %li {{ #{variable} }} %small.text-muted Only a developer can add additional variables = f.submit
Version data entries
8 entries across 8 versions & 1 rubygems