diff --git a/tracks/app/views/context/show.rhtml b/tracks/app/views/context/show.rhtml index 5624668b..081d0691 100644 --- a/tracks/app/views/context/show.rhtml +++ b/tracks/app/views/context/show.rhtml @@ -23,7 +23,8 @@ <%= options_from_collection_for_select(@projects, "id", "name" ) %>

- <%= date_select( "new_item", "due", :include_blank => true, :start_year => 2005 ) %> + <% now = Date.today %> +<%= date_select( "new_item", "due", :include_blank => true, :start_year => now.year, "tabindex" => 5 ) %>
diff --git a/tracks/app/views/project/show.rhtml b/tracks/app/views/project/show.rhtml index 2618aa58..cfca3a50 100644 --- a/tracks/app/views/project/show.rhtml +++ b/tracks/app/views/project/show.rhtml @@ -30,7 +30,8 @@

- <%= date_select( "new_item", "due", :include_blank => true, :start_year => 2005 ) %> + <% now = Date.today %> + <%= date_select( "new_item", "due", :include_blank => true, :start_year => now.year, "tabindex" => 5 ) %>
diff --git a/tracks/app/views/todo/_item.rhtml b/tracks/app/views/todo/_item.rhtml index bd833e56..466ab782 100644 --- a/tracks/app/views/todo/_item.rhtml +++ b/tracks/app/views/todo/_item.rhtml @@ -36,6 +36,7 @@

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