summaryrefslogtreecommitdiffstats
path: root/app/views/custom_fields
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-15 16:55:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-15 16:55:48 +0000
commit3183445aea1f8df0e0b6035d1d59e87b424feaab (patch)
tree3d9aaf10bcc2ebb68d72a545ddad381c20fb891c /app/views/custom_fields
parent9e4a118528119c4f9aa67ae4003f95a47a43722a (diff)
downloadredmine-3183445aea1f8df0e0b6035d1d59e87b424feaab.tar.gz
redmine-3183445aea1f8df0e0b6035d1d59e87b424feaab.zip
Makes the "type" field disabled when updating a custom field (#2744).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2475 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/custom_fields')
-rw-r--r--app/views/custom_fields/_form.rhtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/custom_fields/_form.rhtml b/app/views/custom_fields/_form.rhtml
index 874c571bf..d26af9420 100644
--- a/app/views/custom_fields/_form.rhtml
+++ b/app/views/custom_fields/_form.rhtml
@@ -54,7 +54,8 @@ function toggle_custom_field_format() {
<div class="box">
<p><%= f.text_field :name, :required => true %></p>
-<p><%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();" %></p>
+<p><%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();",
+ :disabled => !@custom_field.new_record? %></p>
<p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label>
<%= f.text_field :min_length, :size => 5, :no_label => true %> -
<%= f.text_field :max_length, :size => 5, :no_label => true %><br>(<%=l(:text_min_max_length_info)%>)</p>