diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-07 08:05:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-07 08:05:43 +0000 |
commit | c418fab8a76b7672c4f341fb7c3e203ae92b50c0 (patch) | |
tree | 2f281eaac765994102b577c7a840f6ce6cd19d79 /app/views/issues | |
parent | 40ffde62219d348baaecb11d395e2dc6016efe37 (diff) | |
download | redmine-c418fab8a76b7672c4f341fb7c3e203ae92b50c0.tar.gz redmine-c418fab8a76b7672c4f341fb7c3e203ae92b50c0.zip |
Use HTML5 date input fields instead of text fields with jquery ui date pickers (#19468).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@15375 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_attributes.html.erb | 4 | ||||
-rw-r--r-- | app/views/issues/bulk_edit.html.erb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 63782d237..960256e44 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -52,14 +52,14 @@ <% if @issue.safe_attribute? 'start_date' %> <p id="start_date_area"> - <%= f.text_field(:start_date, :size => 10, :required => @issue.required_attribute?('start_date')) %> + <%= f.date_field(:start_date, :size => 10, :required => @issue.required_attribute?('start_date')) %> <%= calendar_for('issue_start_date') %> </p> <% end %> <% if @issue.safe_attribute? 'due_date' %> <p id="due_date_area"> - <%= f.text_field(:due_date, :size => 10, :required => @issue.required_attribute?('due_date')) %> + <%= f.date_field(:due_date, :size => 10, :required => @issue.required_attribute?('due_date')) %> <%= calendar_for('issue_due_date') %> </p> <% end %> diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb index db77431fa..37bdb6d42 100644 --- a/app/views/issues/bulk_edit.html.erb +++ b/app/views/issues/bulk_edit.html.erb @@ -147,7 +147,7 @@ <% if @safe_attributes.include?('start_date') %> <p> <label for='issue_start_date'><%= l(:field_start_date) %></label> - <%= text_field_tag 'issue[start_date]', '', :value => @issue_params[:start_date], :size => 10 %><%= calendar_for('issue_start_date') %> + <%= date_field_tag 'issue[start_date]', '', :value => @issue_params[:start_date], :size => 10 %><%= calendar_for('issue_start_date') %> <label class="inline"><%= check_box_tag 'issue[start_date]', 'none', (@issue_params[:start_date] == 'none'), :id => nil, :data => {:disables => '#issue_start_date'} %><%= l(:button_clear) %></label> </p> <% end %> @@ -155,7 +155,7 @@ <% if @safe_attributes.include?('due_date') %> <p> <label for='issue_due_date'><%= l(:field_due_date) %></label> - <%= text_field_tag 'issue[due_date]', '', :value => @issue_params[:due_date], :size => 10 %><%= calendar_for('issue_due_date') %> + <%= date_field_tag 'issue[due_date]', '', :value => @issue_params[:due_date], :size => 10 %><%= calendar_for('issue_due_date') %> <label class="inline"><%= check_box_tag 'issue[due_date]', 'none', (@issue_params[:due_date] == 'none'), :id => nil, :data => {:disables => '#issue_due_date'} %><%= l(:button_clear) %></label> </p> <% end %> |