Files
Redmine/app/views/settings/_users.html.erb
Go MAEDA 94c62816a5 Allowed/Disallowed email domains settings to restrict users' email addresses (#3369).
Patch by Yuichi HARADA and Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19735 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-30 09:00:06 +00:00

27 lines
1.1 KiB
Plaintext

<%= 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_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 %>