Don't show attributes on role form for built-in roles.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@788 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-10-01 14:00:38 +00:00
parent 50096526bc
commit ca094446b3
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
<%= error_messages_for 'role' %>
<% unless @role.builtin? %>
<div class="box">
<p><%= f.text_field :name, :required => true, :disabled => @role.builtin? %></p>
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.check_box :assignable %></p>
</div>
<% end %>
<h3><%= l(:label_permissions) %></h3>
<div class="box">

View File

@ -1,4 +1,4 @@
<h2><%=l(:label_role)%></h2>
<h2><%=l(:label_role)%>: <%= @role.name %></h2>
<% labelled_tabular_form_for :role, @role, :url => { :action => 'edit' }, :html => {:id => 'role_form'} do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>