From cd1984ad224014ea5f3e370969ce5096e82d5583 Mon Sep 17 00:00:00 2001 From: bsag Date: Sun, 27 Feb 2005 21:32:21 +0000 Subject: [PATCH] Set date selectors for due date to start at 2005 (can't think of any reason someone would want to set a due date in the past). git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@33 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/context/show.rhtml | 2 +- tracks/app/views/project/show.rhtml | 2 +- tracks/app/views/todo/_item.rhtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tracks/app/views/context/show.rhtml b/tracks/app/views/context/show.rhtml index 8d4aaed5..5624668b 100644 --- a/tracks/app/views/context/show.rhtml +++ b/tracks/app/views/context/show.rhtml @@ -23,7 +23,7 @@ <%= options_from_collection_for_select(@projects, "id", "name" ) %>

- <%= date_select( "new_item", "due", :include_blank => true ) %> + <%= date_select( "new_item", "due", :include_blank => true, :start_year => 2005 ) %>
diff --git a/tracks/app/views/project/show.rhtml b/tracks/app/views/project/show.rhtml index 52a77f52..2618aa58 100644 --- a/tracks/app/views/project/show.rhtml +++ b/tracks/app/views/project/show.rhtml @@ -30,7 +30,7 @@

- <%= date_select( "new_item", "due", :include_blank => true ) %> + <%= date_select( "new_item", "due", :include_blank => true, :start_year => 2005 ) %>
diff --git a/tracks/app/views/todo/_item.rhtml b/tracks/app/views/todo/_item.rhtml index d1736f7b..48d3c50b 100644 --- a/tracks/app/views/todo/_item.rhtml +++ b/tracks/app/views/todo/_item.rhtml @@ -36,6 +36,6 @@

-<%= date_select( "item", "due", :include_blank => true, "tabindex" => 5 ) %> +<%= date_select( "item", "due", :include_blank => true, :start_year => 2005, "tabindex" => 5 ) %>