summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 14:00:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 14:00:38 +0000
commitca094446b3049ea1462c9e50228e061ffb7a7707 (patch)
treeb281a094e6e0926a6ce20cec662e89d6d4ffe536 /app
parent50096526bcb0e7a91562ae15d3d97c6cab241439 (diff)
downloadredmine-ca094446b3049ea1462c9e50228e061ffb7a7707.tar.gz
redmine-ca094446b3049ea1462c9e50228e061ffb7a7707.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/roles/_form.rhtml5
-rw-r--r--app/views/roles/edit.rhtml2
2 files changed, 4 insertions, 3 deletions
diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml
index 73299293e..8dab8129a 100644
--- a/app/views/roles/_form.rhtml
+++ b/app/views/roles/_form.rhtml
@@ -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">
diff --git a/app/views/roles/edit.rhtml b/app/views/roles/edit.rhtml
index 4a591e3e4..e53a0f545 100644
--- a/app/views/roles/edit.rhtml
+++ b/app/views/roles/edit.rhtml
@@ -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 } %>