From 51eedb884be57217c588f77335439665627e94d3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 17 Jun 2018 08:23:06 +0000 Subject: Add Users tab to application settings. git-svn-id: http://svn.redmine.org/redmine/trunk@17396 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/settings_helper.rb | 1 + app/views/settings/_authentication.html.erb | 14 -------------- app/views/settings/_notifications.html.erb | 3 --- app/views/settings/_users.html.erb | 20 ++++++++++++++++++++ 4 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 app/views/settings/_users.html.erb (limited to 'app') diff --git a/app/helpers/settings_helper.rb b/app/helpers/settings_helper.rb index 86cdff9e4..09caeb3e5 100644 --- a/app/helpers/settings_helper.rb +++ b/app/helpers/settings_helper.rb @@ -24,6 +24,7 @@ module SettingsHelper {:name => 'authentication', :partial => 'settings/authentication', :label => :label_authentication}, {:name => 'api', :partial => 'settings/api', :label => :label_api}, {:name => 'projects', :partial => 'settings/projects', :label => :label_project_plural}, + {:name => 'users', :partial => 'settings/users', :label => :label_user_plural}, {:name => 'issues', :partial => 'settings/issues', :label => :label_issue_tracking}, {:name => 'timelog', :partial => 'settings/timelog', :label => :label_time_tracking}, {:name => 'attachments', :partial => 'settings/attachments', :label => :label_attachment_plural}, diff --git a/app/views/settings/_authentication.html.erb b/app/views/settings/_authentication.html.erb index fc8fb0a78..a27996471 100644 --- a/app/views/settings/_authentication.html.erb +++ b/app/views/settings/_authentication.html.erb @@ -19,8 +19,6 @@

<%= setting_check_box :show_custom_fields_on_registration, :disabled => !Setting.self_registration? %>

-

<%= setting_check_box :unsubscribe %>

-

<%= setting_text_field :password_min_length, :size => 6 %>

@@ -29,8 +27,6 @@

<%= setting_check_box :lost_password %>

-

<%= setting_text_field :max_additional_emails, :size => 6 %>

-

<%= setting_check_box :openid, :disabled => !Object.const_defined?(:OpenID) %>

@@ -45,15 +41,5 @@

<%= l(:text_session_expiration_settings) %>

-
- <%= l(:label_default_values_for_new_users) %> - -
-

<%= setting_check_box :default_users_hide_mail, :label => :field_hide_mail %>

- -

<%= setting_select :default_users_time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :label => :field_time_zone, :blank => :label_none %>

-
-
- <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/settings/_notifications.html.erb b/app/views/settings/_notifications.html.erb index e75a2014f..0f5051404 100644 --- a/app/views/settings/_notifications.html.erb +++ b/app/views/settings/_notifications.html.erb @@ -7,9 +7,6 @@

<%= setting_check_box :bcc_recipients %>

<%= setting_check_box :plain_text_mail %>

- -

<%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %>

-
<%=l(:text_select_mail_notifications)%> diff --git a/app/views/settings/_users.html.erb b/app/views/settings/_users.html.erb new file mode 100644 index 000000000..ab61d7c21 --- /dev/null +++ b/app/views/settings/_users.html.erb @@ -0,0 +1,20 @@ +<%= form_tag({:action => 'edit', :tab => 'users'}) do %> + +
+

<%= setting_text_field :max_additional_emails, :size => 6 %>

+ +

<%= setting_check_box :unsubscribe %>

+
+ +
+ <%= l(:label_default_values_for_new_users) %> + +

<%= setting_check_box :default_users_hide_mail, :label => :field_hide_mail %>

+ +

<%= setting_select(:default_notification_option, User.valid_notification_options.collect {|o| [l(o.last), o.first.to_s]}) %>

+ +

<%= setting_select :default_users_time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :label => :field_time_zone, :blank => :label_none %>

+
+ + <%= submit_tag l(:button_save) %> +<% end %> -- cgit v1.2.3