summaryrefslogtreecommitdiffstats
path: root/app/views/settings/_users.html.erb
blob: 2ae55b1a32727cb1cd239ae13d6aca49cda8c7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<%= 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 tabular settings">
    <legend><%= l(:label_default_values_for_new_users) %></legend>

    <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>
  </fieldset>

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