Sha256: d6d4278773411cd2210df60c7576651fa256b04be4f1f52de8b7cec4797ddde4
Contents?: true
Size: 909 Bytes
Versions: 5
Compression:
Stored size: 909 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' - if EffectiveEmailTemplates.select_content_type = 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
5 entries across 5 versions & 1 rubygems