mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
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:
parent
30f93cf71b
commit
e8d3b62b1f
3 changed files with 6 additions and 2 deletions
|
|
@ -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) %>
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue