Sha256: 9130c400057c207224382edf466b41a078bd95e6e04489282e4dc3cf85a6c57e
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
.email-contexts--form %h2 New Email Context - if email_ctx.email_template with template `#{email_ctx.email_template.slug}` type:#{email_ctx.email_template.type}. - url = %w| index new create |.include?( params[:action] ) ? email_contexts_path : email_context_path(email_ctx) = form_for email_ctx, url: url do |f| .row .col.s6 .field = f.label :email_template_id = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || email_ctx.email_template&.id ) .field = f.label :slug = f.text_field :slug .field = f.label :from_email = f.select :from_email, options_for_select(Ish::EmailContext.from_email_list, selected: email_ctx.from_email) .col.s6 -# @TODO: clean this up. _vp_ 2023-02-13 .TYPE_SINGLE .field = f.label :to_email = f.text_field :to_email %h5 Templating %div Commonly: name, companyName .field = f.text_area :tmpl, value: JSON.pretty_generate( email_ctx.tmpl ) .field.field-subject = f.label :subject = f.text_field :subject - if 'plain' == email_ctx.email_template&.type .body = raw email_ctx.email_template.body - else .field = f.label :body = f.text_area :body, class: 'tinymce' .actions .left = f.submit 'Preview' .right = f.label :send_at = f.text_field :send_at = f.submit 'Schedule'
Version data entries
3 entries across 3 versions & 1 rubygems