- @title = t('.heading')

= tls_warning(email_setup: true)

%p= t('.domain.intro')

- unless @domains.map { |d| d['name'] }.include?(Site.current.host)
  .alert.alert-warning
    %h4
      = icon 'fa fa-warning'
      = t('.domain_missing.heading')
    = t('.domain_missing.message_html', domain: Site.current.host)

= form_tag administration_email_setup_path, class: 'form', method: 'put' do
  .form-group
    = label_tag :domain, t('.domain.label')
    = select_tag :domain, options_for_select([''] + @domains.map { |d| d['name'] }), class: 'form-control'
  .form-group
    = button_tag t('.submit'), class: 'btn btn-success'

- @title = t('.heading')

= tls_warning(email_setup: true)

%p= t('.domain.intro')

- unless @domains.map { |d| d['name'] }.include?(Site.current.host)
  .alert.alert-warning
    %h4
      = icon 'fa fa-warning'
      = t('.domain_missing.heading')
    = t('.domain_missing.message_html', domain: Site.current.host)

= form_tag administration_email_setup_path, class: 'form', method: 'put' do
  .form-group
    = label_tag :domain, t('.domain.label')
    = select_tag :domain, options_for_select([''] + @domains.map { |d| d['name'] }, Site.current.host), class: 'form-control'
  .form-group
    = button_tag t('.submit'), class: 'btn btn-success'

Select current site's domain by default
Select current site's domain by default
