OpenProject is the leading open source project management software.
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.
openproject/app/views/roles/_form.erb

21 lines
921 B

<%= error_messages_for 'member_role' %>
<%= error_messages_for 'global_role' %>
<div class="box">
<p><%= f.text_field :name, :required => true %></p>
<p><label for='global_role'>Global role</label><%= check_box_tag "global_role"%></p>
<div id="member_attributes">
<%= render :partial => "member_attributes", :locals => { :f => f, :role => member_role, :roles => member_roles }%>
</div>
<div id="global_attributes" style="display:none">
<%= render :partial => "global_attributes", :locals => { :f => f, :role => global_role, :roles => global_roles }%>
</div>
</div>
<h3><%= l(:label_permissions) %></h3>
<div id="member_permissions">
<%= render :partial => "permissions", :locals => {:permissions => member_permissions, :role => member_role }%>
</div>
<div id="global_permissions" style="display:none">
<%= render :partial => "permissions", :locals => {:permissions => global_permissions, :role => global_role }%>
</div>