<% todo = edit_form -%> <%= form_for(todo, :html=> { :name=>'todo', :id => dom_id(@todo, 'form'), :class => 'inline-form edit_todo_form' }) do |t|%>
<% if todo.errors.any? -%> <% end -%>
<%= t.hidden_field( "id" ) -%> <%= source_view_tag( @source_view ) -%> <%= content_tag(:input, "", :type=>"hidden", :name=>"_tag_name", :value=>"#{@tag_name}") if @tag_name -%> <%= t.text_field( "description", "size" => 30, "tabindex" => next_tab_index, "maxlength" => 100) %> <%= t.text_area( "notes", "cols" => 29, "rows" => 4, "tabindex" => next_tab_index) %>
<%= text_field_tag 'tag_list', tag_list_text, :id => dom_id(@todo, 'tag_list'), :size => 30, :tabindex => next_tab_index %>
<%= date_field_tag("todo[due]", dom_id(@todo, 'due'), format_date(@todo.due), "tabindex" => next_tab_index) %> <%= image_tag("blank.png", :alt => t('todos.clear_due_date'), :class => "delete_item") %>
<%= date_field_tag("todo[show_from]", dom_id(@todo, 'show_from'), format_date(@todo.show_from), "tabindex" => next_tab_index) %> <%= image_tag("blank.png", :alt => t('todos.clear_show_from_date'), :class => "delete_item") %>
<%= text_field_tag "predecessor_input", nil, :size => 30, :tabindex => next_tab_index %> <%= hidden_field_tag "predecessor_list", @todo.predecessors.map{|t| t.id.to_s}.join(', ') %>
<%=image_tag("cancel.png", :alt => "") %> <%= t('common.cancel') %>
<% end %>