Sha256: 323c51b63bfc674523100f1af2b576c650139fb36b5dfba31f8c33d95bdc071f
Contents?: true
Size: 908 Bytes
Versions: 12
Compression:
Stored size: 908 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.text_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
12 entries across 12 versions & 1 rubygems