<% @story = story -%>
<%= in_place_editor_field 'story', 'title', {}, :url => { :action => "set_story_title", :id => @story.id, :iteration_id => @iteration.to_param } %>   <%= clippy("branston -f -g #{@story.to_param} -b #{request.host} -p #{request.port} ", "#FFFF99") %> <%= link_to image_tag("/images/icons/delete_icon_20x19.png", :alt => "Delete"), iteration_story_path(@iteration, @story), :confirm => 'Delete this story?', :method => :delete, :class => "delete-small" %>
By <%=@story.author%>
<% remote_form_for :story, @story, :url => "#{iteration_story_path(@iteration, @story)}.js" do |f| -%> <%= hidden_field_tag '_method', 'PUT' %> <%= hidden_field_tag 'id', @story.id %>
<%= f.select :points, (1..10).to_a, {}, :id => element_id(@story,'points') %> Points
<%= f.label :status %> <%= f.select :status, ['new', 'in_progress', 'completed'], {}, :id => element_id(@story, 'status') %>
<% unless @iterations.empty? -%>
<%= f.label :iteration_id, "Iteration" %> <%= f.select :iteration_id, @iterations.map{|i|[i.name,i.id]}, {:prompt => "Assign Iteration"}, :id => element_id(@story,'iterations') %>
<% end -%> <% end -%>

<%= in_place_editor_field 'story', 'description' %>

<%= link_to_remote "Scenarios »", :method => 'GET', :url => iteration_story_scenarios_path(@iteration, @story) %>
<% content_for :page_end do -%> <% end -%>