2008-08-31 16:59:57 +04:00
|
|
|
<% form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
|
|
|
|
|
|
|
<div class="box tabular settings">
|
|
|
|
<p><label><%= l(:setting_default_projects_public) %></label>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[default_projects_public]', 0 %>
|
|
|
|
<%= check_box_tag 'settings[default_projects_public]', 1, Setting.default_projects_public? %>
|
|
|
|
</p>
|
2008-08-31 16:59:57 +04:00
|
|
|
|
2009-11-15 19:20:33 +03:00
|
|
|
<p><label><%= l(:setting_default_projects_modules) %></label>
|
|
|
|
<%= hidden_field_tag 'settings[default_projects_modules][]', '' %>
|
|
|
|
<% Redmine::AccessControl.available_project_modules.each do |m| %>
|
|
|
|
<label class="block">
|
|
|
|
<%= check_box_tag 'settings[default_projects_modules][]', m, Setting.default_projects_modules.include?(m.to_s) %>
|
|
|
|
<%= l_or_humanize(m, :prefix => "project_module_") %>
|
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
|
2008-08-31 16:59:57 +04:00
|
|
|
<p><label><%= l(:setting_sequential_project_identifiers) %></label>
|
2009-09-13 21:14:35 +04:00
|
|
|
<%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %>
|
|
|
|
<%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %>
|
|
|
|
</p>
|
2009-05-17 18:35:00 +04:00
|
|
|
|
|
|
|
<p><label><%= l(:setting_new_project_user_role_id) %></label>
|
2009-06-13 13:32:23 +04:00
|
|
|
<%= 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.to_i)) %></p>
|
2008-08-31 16:59:57 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|