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.49 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.48 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.47 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.46 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.45 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.44 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.43 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.42 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.41 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.40 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.39 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.38 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.37 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.36 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.35 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.34 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.33 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.32 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.31 app/views/wco_email/email_campaigns/_form.haml
wco_email-0.1.1.30 app/views/wco_email/email_campaigns/_form.haml