Revision 2475
Added by Jean-Philippe Lang over 16 years ago
trunk/app/views/custom_fields/_form.rhtml | ||
---|---|---|
54 | 54 |
|
55 | 55 |
<div class="box"> |
56 | 56 |
<p><%= f.text_field :name, :required => true %></p> |
57 |
<p><%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();" %></p> |
|
57 |
<p><%= f.select :field_format, custom_field_formats_for_select, {}, :onchange => "toggle_custom_field_format();", |
|
58 |
:disabled => !@custom_field.new_record? %></p> |
|
58 | 59 |
<p><label for="custom_field_min_length"><%=l(:label_min_max_length)%></label> |
59 | 60 |
<%= f.text_field :min_length, :size => 5, :no_label => true %> - |
60 | 61 |
<%= f.text_field :max_length, :size => 5, :no_label => true %><br>(<%=l(:text_min_max_length_info)%>)</p> |
Also available in: Unified diff
Makes the "type" field disabled when updating a custom field (#2744).