Sha256: 47dd3536b7b0471a81d7bf87e23f5bdabd15fda12c87f832209beddb73b536bd

Contents?: true

Size: 1.53 KB

Versions: 56

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(Ish::EmailContext.from_email_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

56 entries across 56 versions & 1 rubygems

Version Path
ish_manager-0.1.8.469 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.468 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.467 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.466 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.465 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.464 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.463 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.462 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.461 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.460 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.459 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.458 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.457 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.456 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.455 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.454 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.453 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.452 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.451 app/views/ish_manager/email_campaigns/_form.haml
ish_manager-0.1.8.450 app/views/ish_manager/email_campaigns/_form.haml