From b5c2ca56666e79ea642df8c6e790cc60de44ccfa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 15 Feb 2013 10:45:34 +0000 Subject: [PATCH] Adds the date picker for the default value of date custom fields. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11398 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/_form.html.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index 1157ab9fc..b6f7ddb1d 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -32,6 +32,9 @@

<%= f.check_box(:default_value) %>

<% when 'text' %>

<%= f.text_area(:default_value, :rows => 8) %>

+<% when 'date' %> +

<%= f.text_field(:default_value, :size => 10) %>

+ <%= calendar_for('custom_field_default_value') %> <% when 'user', 'version' %> <% else %>

<%= f.text_field(:default_value) %>

@@ -92,3 +95,5 @@ when "IssueCustomField" %> <% end %> <%= call_hook(:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}", :custom_field => @custom_field, :form => f) %> + +<% include_calendar_headers_tags %>