Sha256: c5219bb8e51536ec993bd776dd88eac1edd9ed9e583fe73f8b01e9054d22abdd
Contents?: true
Size: 1.73 KB
Versions: 22
Compression:
Stored size: 1.73 KB
Contents
.email-contexts--form .header %h2.title Email Context - url = ctx.new_record? ? email_contexts_path : email_context_path(ctx) = form_for ctx, url: url do |f| .row = f.submit 'Save' .row .col-md-6 .field.field-template = f.label "Template" = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || ctx.email_template_id ), {}, { class: 'select2' } - if ctx.email_template_id = link_to 'view', email_template_path( ctx.email_template_id ), target: :_blank, class: [ 'action-view' ] = link_to '~', edit_email_template_path( ctx.email_template_id ), target: :_blank, class: [ 'action-view' ] -# .field -# = f.label :slug -# = f.text_field :slug .field = f.label "From" = f.select :from_email, options_for_select(Ish::EmailContext.from_email_list, selected: ctx.from_email) -# .col-md-6 -# %h5 Context -# %div Commonly: name, companyName -# .field -# = f.text_area :tmpl, value: JSON.pretty_generate( ctx.tmpl ) .row .col-md-4 .field = f.label "To lead" = f.select :lead_id, options_for_select( @leads_list ), {}, { class: 'select2' } .col-md-8 .field.field-subject = f.label :subject = f.text_field :subject - if 'plain' == ctx.email_template&.layout .body = raw 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
22 entries across 22 versions & 1 rubygems