Sha256: 131024788052af2bf2a9eb16f56cfac70fe475eb72313a0e1dedf2f54edb2bf5

Contents?: true

Size: 407 Bytes

Versions: 26

Compression:

Stored size: 407 Bytes

Contents

= form.fields_for(:email_review, email_review) do |f|
  = f.hidden_field :template_name
  = f.text_area :body, required: true, rows: 10

  = collapse('Show / hide email variables') do
    %p The available variables are:

    %ul
      - Array(f.object.email_template&.template_variables).each do |variable|
        %li {{ #{variable} }}

    %small.text-muted Only a developer can add additional variables

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
effective_email_templates-1.0.11 app/views/effective/email_reviews/_fields.html.haml
effective_email_templates-1.0.10 app/views/effective/email_reviews/_fields.html.haml
effective_email_templates-1.0.9 app/views/effective/email_reviews/_fields.html.haml
effective_email_templates-1.0.8 app/views/effective/email_reviews/_fields.html.haml
effective_email_templates-1.0.7 app/views/effective/email_reviews/_fields.html.haml
effective_email_templates-1.0.6 app/views/effective/email_reviews/_fields.html.haml