Sha256: 414f10bb889b899ead2fe6f55ff4d561e2bde7d1fa1f4a8cf8eeeb09f1535596

Contents?: true

Size: 1.4 KB

Versions: 41

Compression:

Stored size: 1.4 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
          .eg This is not an interval! But you can do Time.now + 30.seconds
          %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

41 entries across 41 versions & 2 rubygems

Version Path
wco_email-0.1.1.12 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.11 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.10 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.9 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.8 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.7 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.6 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.5 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.4 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.3 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.2 app/views/wco_email/email_action_templates/_form.haml
wco_email-0.1.1.1 app/views/wco_email/email_action_templates/_form.haml
ish_manager-0.1.8.513 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.512 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.511 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.510 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.509 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.508 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.507 app/views/ish_manager/email_actions/_form.haml
ish_manager-0.1.8.506 app/views/ish_manager/email_actions/_form.haml