Sha256: a68694cca570edeb86b227b152c406a378f0ee5bf6996e90d32e955db539a4b8

Contents?: true

Size: 1.53 KB

Versions: 89

Compression:

Stored size: 1.53 KB

Contents

- url = campaign.new_record? ? email_campaigns_path : email_campaign_path(campaign)

.email-campaigns--form
  = form_for campaign, as: :campaign, url: url do |f|
    .field
      = f.label :slug
      = f.text_field :slug

    -# .field
    -#   = f.label :send_at
    -#   = f.text_field :send_at

    .field.field-template
      = f.label "Template"
      = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || campaign.email_template_id ), {}, { class: 'select2' }
      - if campaign.email_template_id
        = link_to 'view', email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ]
        = link_to '~', edit_email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ]
        layout: #{campaign.tmpl.layout}

    .field
      = f.label "From"
      = f.select :from_email, options_for_select(WcoEmail::EmailTemplate.from_emails_list, selected: campaign.from_email), {}, class: 'select2'

    .actions
      = f.submit 'Submit'

      -# = f.select :email_template_id, options_for_select(@email_templates_list, selected: params[:email_template_id] || campaign.email_template_id ), {}, { class: 'select2' }
      -# - if campaign.email_template_id
      -#   = link_to 'view', email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ]
      -#   = link_to '~', edit_email_template_path( campaign.email_template_id ), target: :_blank, class: [ 'action-view' ]
      -#   layout: #{campaign.tmpl.layout}

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
wco_email-0.1.1.93 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.92 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.91 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.90 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.89 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.88 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.86 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.85 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.84 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.83 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.82 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.81 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.80 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.79 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.78 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.77 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.76 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.75 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.72 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.71 app/views/wco_email/email_campaigns/_form.haml