% 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? -%>
<% todo.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% 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, "maxlength" => 100) %>
<%= t.text_area( "notes", "cols" => 29, "rows" => 4) %>
<%= text_field_tag 'tag_list', tag_list_text, :id => dom_id(@todo, 'tag_list'), :size => 30 %>
<%= text_field_tag "predecessor_input", nil, :size => 30 %>
<%= hidden_field_tag "predecessor_list", @todo.predecessors.map{|t| t.id.to_s}.join(', ') %>
<% end %>