<%= error_messages_for("todo", :object_name => 'action') %>
<%= hidden_field( "todo", "id" ) -%> <%= source_view_tag( @source_view ) -%> <%= "" unless @tag_name.nil? -%> <%= text_field( "todo", "description", "size" => 30, "tabindex" => 8, "maxlength" => 100) %> <%= text_area( "todo", "notes", "cols" => 29, "rows" => 4, "tabindex" => 9) %>
" />
<%= text_field_tag 'tag_list', tag_list_text, :id => dom_id(@todo, 'tag_list'), :size => 30, :tabindex => 12 %>
<%= date_field_tag("todo[due]", dom_id(@todo, 'due'), format_date(@todo.due), "tabindex" => 13) %> <%= image_tag("delete_off.png", :alt => "Clear due date") %>
<%= date_field_tag("todo[show_from]", dom_id(@todo, 'show_from'), format_date(@todo.show_from), "tabindex" => 14) %> <%= image_tag("delete_off.png", :alt => "Clear show from date") %>
<% if controller.controller_name == "project" || @todo.deferred? -%> <% end -%>
<%=image_tag("cancel.png", :alt => "") %> Cancel
<%= calendar_setup( dom_id(@todo, 'due') ) %> <%= calendar_setup( dom_id(@todo, 'show_from') ) %>