Sha256: b2f5245a2de9a886d715e3a126c1f7ff5e1b4c0bf7ea2a4e04149b2ec9cd5295

Contents?: true

Size: 1.63 KB

Versions: 2

Compression:

Stored size: 1.63 KB

Contents

- mailer = f.object.mailer || {}

= f.fields_for :mailer do |mailer_fields|
  = mailer_fields.label :delivery_method
  = mailer_fields.select :delivery_method, options_for_select([['SMTP','smtp'],['sendmail','sendmail'],['Test','test']], mailer[:delivery_method]), { :prompt => t(:please_select) }
  .clear

#smtp.delivery_method_settings.hidden.fieldset.grid_7
  %h2 SMTP Configuration

  - smtp_settings = f.object.smtp_settings || {}

  = f.fields_for :smtp_settings do |smtp_fields|
    = serialized_field smtp_fields, smtp_settings, :text_field, :address
    = serialized_field smtp_fields, smtp_settings, :text_field, :port
    = serialized_field smtp_fields, smtp_settings, :text_field, :domain
    = serialized_field smtp_fields, smtp_settings, :check_box, :enable_starttls_auto

    = smtp_fields.label :authentication
    %br
    = smtp_fields.select :authentication, options_for_select([['none', 'none'],['plain','plain'],['login','login'],['cran_md5','cran_md5']], smtp_settings[:authentication])

    #authentication{ :class => (smtp_settings[:authentication] ? nil : 'hidden') }
      = serialized_field smtp_fields, smtp_settings, :text_field, :user_name
      = serialized_field smtp_fields, smtp_settings, :text_field, :password
#sendmail.delivery_method_settings.hidden.fieldset.grid_7
  %h2 Sendmail Configuration

  - sendmail_settings = f.object.sendmail_settings || {}

  = f.fields_for :sendmail_settings, sendmail_settings do |sendmail_fields|
    = serialized_field sendmail_fields, sendmail_settings, :text_field, :location
    = serialized_field sendmail_fields, sendmail_settings, :text_field, :arguments
#test.delivery_method_settings.hidden

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_core-1.9.5.rc2 app/views/admin/settings/_mailer.html.haml
forgeos_core-1.9.5.rc1 app/views/admin/settings/_mailer.html.haml