Sha256: b75a3b46f0a7375921e6056e5988f5c59857a5c4b7fd3b4757ce2d1fe06a2f5b

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

- act = email_action
- url = email_action.new_record? ? email_actions_path : email_action_path( email_action )

.email-actions--form

  = form_for email_action, url: url, as: :email_action, :html => { :multipart => true } do |f|
    .row
      .col-sm-6
        = f.submit :submit

    .row
      .col-md-6
        .field
          %label Slug
          = f.text_field :slug
        -# .field
        -#   %label Lead
        -#   = f.select :lead_id, options_for_select( @leads_list, selected: act.lead_id ), {}, class: 'select2'
        .field
          %label Template
          = f.select :email_template_id, options_for_select( @email_templates_list, selected: act.email_template_id ), {}, class: 'select2'
        -# .field
        -#   %label State
        -#   = f.select :state, options_for_select( ::Office::EmailAction::STATES, selected: act.state )

      .col-md-6
        .field
          %label Next in Days
          .eg eg: rand(1..5)
          = f.text_field :next_in_days
        .field
          %label Next at Time
          .eg eg: rand(8..16).hours + rand(1..59).minutes
          = f.text_field :next_at_time
        .field
          %label Next Email Actions
          = f.select :next_email_actions, options_for_select( @email_actions_list, selected: act.next_email_actions.map(&:id) ), { }, { class: 'select2', multiple: true }

    .row
      .col-sm-6
        = f.submit :submit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_manager-0.1.8.356 app/views/ish_manager/email_actions/_form.haml