##// END OF EJS Templates
Don't show attributes on role form for built-in roles....
Jean-Philippe Lang -
r777:ca094446b304
parent child
Show More
@@ -1,10 +1,11
1 <%= error_messages_for 'role' %>
1 <%= error_messages_for 'role' %>
2
2
3 <% unless @role.builtin? %>
3 <div class="box">
4 <div class="box">
4 <p><%= f.text_field :name, :required => true, :disabled => @role.builtin? %></p>
5 <p><%= f.text_field :name, :required => true %></p>
5 <p><%= f.check_box :assignable %></p>
6 <p><%= f.check_box :assignable %></p>
6 </div>
7 </div>
7
8 <% end %>
8
9
9 <h3><%= l(:label_permissions) %></h3>
10 <h3><%= l(:label_permissions) %></h3>
10 <div class="box">
11 <div class="box">
@@ -1,4 +1,4
1 <h2><%=l(:label_role)%></h2>
1 <h2><%=l(:label_role)%>: <%= @role.name %></h2>
2
2
3 <% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %>
3 <% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
4 <%= render :partial => 'form', :locals => { :f => f } %>
General Comments 0
You need to be logged in to leave comments. Login now