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
This commit is contained in:
lrbalt 2008-05-16 15:13:56 +00:00
parent 30f93cf71b
commit e8d3b62b1f
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,5 @@
<% @tag_list_text = ""
@tag_list_text = tag_list_text if @todo -%>
<span class="errors">
<%= error_messages_for("todo") %>
</span>
@ -14,6 +16,8 @@ if parent_container_type == 'show_mobile' -%>
<h2><label for="todo_project_id">Project</label></h2>
<%= collection_select( "todo", "project_id", @projects, "id", "name",
{:include_blank => true}, {"tabindex" => 5} ) %>
<h2><label for="tag_list">Tags (separate with commas)</label></h2>
<%= text_field_tag "tag_list", @tag_list_text, :size => 30, :tabindex => 6 %>
<h2><label for="todo_due">Due</label></h2>
<%= date_select("todo", "due", :order => [:day, :month, :year],
:start_year => this_year, :include_blank => true) %>

View file

@ -2,4 +2,4 @@
<%= render :partial => 'edit_mobile' %>
<p><input type="submit" value="Create" tabindex="6" /></p>
<% end -%>
<%= link_to "Back", formatted_todos_path(:m) %>
<%= link_to "Back", @return_path %>

View file

@ -2,4 +2,4 @@
<%= render :partial => 'edit_mobile', :locals => { :parent_container_type => "show_mobile" } %>
<p><input type="submit" value="Update" tabindex="6" /></p>
<% end -%>
<% #= link_to "Back", formatted_todos_path(:m) %>
<%= link_to "Cancel", @return_path %>