Use a textarea instead of an input for the default value of long text custom fields (#13176).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11396 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,8 +27,14 @@
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% unless @custom_field.format_in? 'user', 'version' %>
|
||||
<p><%= @custom_field.field_format == 'bool' ? f.check_box(:default_value) : f.text_field(:default_value) %></p>
|
||||
<% case @custom_field.field_format %>
|
||||
<% when 'bool' %>
|
||||
<p><%= f.check_box(:default_value) %></p>
|
||||
<% when 'text' %>
|
||||
<p><%= f.text_area(:default_value, :rows => 8) %></p>
|
||||
<% when 'user', 'version' %>
|
||||
<% else %>
|
||||
<p><%= f.text_field(:default_value) %></p>
|
||||
<% end %>
|
||||
|
||||
<%= call_hook(:view_custom_fields_form_upper_box, :custom_field => @custom_field, :form => f) %>
|
||||
|
||||
Reference in New Issue
Block a user