From e8d3b62b1f5bc2fa7457435f854345fdd52a911f Mon Sep 17 00:00:00 2001 From: lrbalt Date: Fri, 16 May 2008 15:13:56 +0000 Subject: [PATCH] fixes #700. Also restores mobile navigation that got lost in the rails2 merge git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@851 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/todos/_edit_mobile.rhtml | 4 ++++ tracks/app/views/todos/new.m.erb | 2 +- tracks/app/views/todos/show.m.erb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tracks/app/views/todos/_edit_mobile.rhtml b/tracks/app/views/todos/_edit_mobile.rhtml index 7a2db546..b2c423e6 100644 --- a/tracks/app/views/todos/_edit_mobile.rhtml +++ b/tracks/app/views/todos/_edit_mobile.rhtml @@ -1,3 +1,5 @@ +<% @tag_list_text = "" + @tag_list_text = tag_list_text if @todo -%> <%= error_messages_for("todo") %> @@ -14,6 +16,8 @@ if parent_container_type == 'show_mobile' -%>

<%= collection_select( "todo", "project_id", @projects, "id", "name", {:include_blank => true}, {"tabindex" => 5} ) %> +

+<%= text_field_tag "tag_list", @tag_list_text, :size => 30, :tabindex => 6 %>

<%= date_select("todo", "due", :order => [:day, :month, :year], :start_year => this_year, :include_blank => true) %> diff --git a/tracks/app/views/todos/new.m.erb b/tracks/app/views/todos/new.m.erb index 9ce1090a..17144323 100644 --- a/tracks/app/views/todos/new.m.erb +++ b/tracks/app/views/todos/new.m.erb @@ -2,4 +2,4 @@ <%= render :partial => 'edit_mobile' %>

<% end -%> -<%= link_to "Back", formatted_todos_path(:m) %> \ No newline at end of file +<%= link_to "Back", @return_path %> \ No newline at end of file diff --git a/tracks/app/views/todos/show.m.erb b/tracks/app/views/todos/show.m.erb index f452e773..c09ac503 100644 --- a/tracks/app/views/todos/show.m.erb +++ b/tracks/app/views/todos/show.m.erb @@ -2,4 +2,4 @@ <%= render :partial => 'edit_mobile', :locals => { :parent_container_type => "show_mobile" } %>

<% end -%> -<% #= link_to "Back", formatted_todos_path(:m) %> +<%= link_to "Cancel", @return_path %>