diff options
Diffstat (limited to 'app/views/custom_fields/_form.html.erb')
-rw-r--r-- | app/views/custom_fields/_form.html.erb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index ca8ebaf49..1157ab9fc 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -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) %> |