浏览代码

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
tags/0.9.0
Jean-Philippe Lang 15 年前
父节点
当前提交
3183445aea
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      app/views/custom_fields/_form.rhtml

+ 2
- 1
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>

正在加载...
取消
保存