Mercurial > hg > soundsoftware-site
comparison app/views/roles/_form.rhtml @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
1 <%= error_messages_for 'role' %> | 1 <%= error_messages_for 'role' %> |
2 | 2 |
3 <div class="box"> | |
3 <% unless @role.builtin? %> | 4 <% unless @role.builtin? %> |
4 <div class="box"> | |
5 <p><%= f.text_field :name, :required => true %></p> | 5 <p><%= f.text_field :name, :required => true %></p> |
6 <p><%= f.check_box :assignable %></p> | 6 <p><%= f.check_box :assignable %></p> |
7 <% end %> | |
8 <p><%= f.select :issues_visibility, Role::ISSUES_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %></p> | |
7 <% if @role.new_record? && @roles.any? %> | 9 <% if @role.new_record? && @roles.any? %> |
8 <p><label><%= l(:label_copy_workflow_from) %></label> | 10 <p><label><%= l(:label_copy_workflow_from) %></label> |
9 <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></p> | 11 <%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></p> |
10 <% end %> | 12 <% end %> |
11 </div> | 13 </div> |
12 <% end %> | |
13 | 14 |
14 <h3><%= l(:label_permissions) %></h3> | 15 <h3><%= l(:label_permissions) %></h3> |
15 <div class="box" id="permissions"> | 16 <div class="box" id="permissions"> |
16 <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> | 17 <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> |
17 <% perms_by_module.keys.sort.each do |mod| %> | 18 <% perms_by_module.keys.sort.each do |mod| %> |