diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 08:48:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 08:48:51 +0000 |
commit | 32bf0f03efdcdfaa6314095979c82bc69f2931e8 (patch) | |
tree | 8b6d2d671aa2f62e2a5b4bf7be5fd9e16b3ba54c /app/views/custom_fields | |
parent | 9a3e4e0a519622cbfc4e793c1597e1eb80e0bb6d (diff) | |
download | redmine-32bf0f03efdcdfaa6314095979c82bc69f2931e8.tar.gz redmine-32bf0f03efdcdfaa6314095979c82bc69f2931e8.zip |
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
Diffstat (limited to 'app/views/custom_fields')
-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) %> |