summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 14:35:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-17 14:35:00 +0000
commit52b5b292032977ecb523316fb19e20996564030b (patch)
tree8827fe2c0e330417b07abe78d6fabe1f1fcc7281 /app/views
parentce8bd1602035f07e8f70f92d4c2a15698b6f50c5 (diff)
downloadredmine-52b5b292032977ecb523316fb19e20996564030b.tar.gz
redmine-52b5b292032977ecb523316fb19e20996564030b.zip
Adds a setting to choose which role is given to a non-admin user who creates a project (#1007).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2754 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/settings/_projects.rhtml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/settings/_projects.rhtml b/app/views/settings/_projects.rhtml
index 1cd4f6e9b..510807d99 100644
--- a/app/views/settings/_projects.rhtml
+++ b/app/views/settings/_projects.rhtml
@@ -6,6 +6,9 @@
<p><label><%= l(:setting_sequential_project_identifiers) %></label>
<%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %><%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %></p>
+
+<p><label><%= l(:setting_new_project_user_role_id) %></label>
+<%= select_tag('settings[new_project_user_role_id]', options_for_select([["--- #{l(:actionview_instancetag_blank_option)} ---", '']] + Role.find_all_givable.collect {|r| [r.name, r.id]}, Setting.new_project_user_role_id)) %></p>
</div>
<%= submit_tag l(:button_save) %>