kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.2 KiB
30 lines
1.2 KiB
14 years ago
|
<%= error_messages_for 'role' %>
|
||
17 years ago
|
|
||
17 years ago
|
<% unless @role.builtin? %>
|
||
19 years ago
|
<div class="box">
|
||
17 years ago
|
<p><%= f.text_field :name, :required => true %></p>
|
||
17 years ago
|
<p><%= f.check_box :assignable %></p>
|
||
17 years ago
|
<% if @role.new_record? && @roles.any? %>
|
||
13 years ago
|
<p><label for="copy_workflow_from"><%= l(:label_copy_workflow_from) %></label>
|
||
17 years ago
|
<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></p>
|
||
|
<% end %>
|
||
17 years ago
|
</div>
|
||
17 years ago
|
<% end %>
|
||
17 years ago
|
|
||
17 years ago
|
<h3><%= l(:label_permissions) %></h3>
|
||
17 years ago
|
<div class="box" id="permissions">
|
||
17 years ago
|
<% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
|
||
|
<% perms_by_module.keys.sort.each do |mod| %>
|
||
16 years ago
|
<fieldset><legend><%= mod.blank? ? l(:label_project) : l_or_humanize(mod, :prefix => 'project_module_') %></legend>
|
||
17 years ago
|
<% perms_by_module[mod].each do |permission| %>
|
||
17 years ago
|
<label class="floating">
|
||
17 years ago
|
<%= check_box_tag 'role[permissions][]', permission.name, (@role.permissions.include? permission.name) %>
|
||
16 years ago
|
<%= l_or_humanize(permission.name, :prefix => 'permission_') %>
|
||
17 years ago
|
</label>
|
||
17 years ago
|
<% end %>
|
||
|
</fieldset>
|
||
18 years ago
|
<% end %>
|
||
17 years ago
|
<br /><%= check_all_links 'permissions' %>
|
||
17 years ago
|
<%= hidden_field_tag 'role[permissions][]', '' %>
|
||
17 years ago
|
</div>
|