Sha256: 635e2589e9ea572f011323cef9d1f7acfa514ab93184a5836351985200fe3597

Contents?: true

Size: 1.33 KB

Versions: 69

Compression:

Stored size: 1.33 KB

Contents

- eact = 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 Descr
        -#   = f.text_area :descr
        .field.flex-row
          %label Template
          = f.select :email_template_id, options_for_select( @email_templates_list, selected: eact.email_template_id ), {}, class: 'select2'

      .col-md-6
        .field
          %label Next Email Actions
          .eg rand(1..5).business_days.from_now.to_date + rand(8..16).hours + rand(1..59).minutes
          %br

          = f.fields_for :ties do |next_f|
            .flex-row.field
              = next_f.label :next_at_exe
              = next_f.text_field :next_at_exe, class: 'flex-grow'
            .flex-row.field
              = next_f.label :to_delete
              = next_f.check_box :to_delete
              = next_f.select :next_email_action_id, options_for_select( @email_actions_list, selected: next_f.object.next_email_action_id ), { }, { class: 'select2' }
            %br

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


Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
ish_manager-0.1.8.482 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.481 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.480 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.479 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.478 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.477 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.476 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.475 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.474 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.473 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.472 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.471 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.470 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.469 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.468 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.467 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.466 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.465 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.464 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.463 app/views/ish_manager/email_actions/_form.haml