<%= form_tag({:action => 'edit', :tab => 'users'}) do %>

  <div class="box tabular settings">
    <p><%= setting_text_field :max_additional_emails, :size => 6 %></p>

    <p><%= setting_text_area :email_domains_allowed %>
    <em class="info"><%= l(:text_comma_separated) %> <%= l(:label_example) %>: example.com, example.org</em></p>

    <p><%= setting_text_area :email_domains_denied %>
    <em class="info"><%= l(:text_comma_separated) %> <%= l(:label_example) %>: .example.com, foo.example.org, example.net</em></p>

    <p><%= setting_check_box :unsubscribe %></p>
  </div>

  <fieldset class="box">
    <legend><%= l(:label_default_values_for_new_users) %></legend>

    <div class="tabular settings">
      <p><%= setting_check_box :default_users_hide_mail, :label => :field_hide_mail %></p>
      <p><%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %></p>
      <p><%= setting_check_box :default_users_no_self_notified, :label => :label_user_mail_no_self_notified %></p>
      <p><%= setting_select :default_users_time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :label => :field_time_zone, :blank => :label_none %></p>
    </div>
  </fieldset>

  <%= submit_tag l(:button_save) %>
<% end %>
