Sha256: c779bc3fe25e110e4e3b9a427e73c2caa1f4bda8f5b09ff4b60fa9a040d62afb

Contents?: true

Size: 1.28 KB

Versions: 17

Compression:

Stored size: 1.28 KB

Contents

<!-- scenarios/_scenario.html.erb -->
    <div id="<%= element_id(@scenario) %>" class="scenario">
    <% if @scenario.created_at.nil? -%>
      <% remote_form_for :scenario, @scenario, :url => iteration_story_scenarios_path(@iteration, @story) do |f| -%>
      <div class="scenario-form">
        <%= f.text_area :title, :value => "Add a scenario description here.", 
        :size => '58x2' %>
        <%= f.submit 'Save' %>
      </div>
      <% end -%>
    <% else -%>
      <div class="scenario-title">
        <%= in_place_editor_field 'scenario', 'title' %>
        <%= link_to_remote image_tag("/images/icons/delete_icon_20x19.png", :alt => "Delete"), 
        {:url => iteration_story_scenario_path(@iteration, @story,@scenario), 
        :confirm => 'Delete this scenario?', :method => :delete}, :class => "delete-small" %>
      </div>
      <div id="<%= element_id(@scenario,'preconditions') %>" class="preconditions">
        <%= link_to_remote "Preconditions",
          :url => preconditions_path(:scenario_id => @scenario.id), :method => :get %>
      </div>
      <div id="<%= element_id(@scenario,'outcomes') %>" class="outcomes">
        <%= link_to_remote "Outcomes",
          :url => outcomes_path(:scenario_id => @scenario.id), :method => :get %>
      </div>
    <% end -%>
    </div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.5 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.4 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.3 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.2 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.1 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.6.0 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.5.2 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.5.1 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.5.0 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.6 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.5 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.4 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.3 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.2 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.1 lib/branston/app/views/scenarios/_scenario.html.erb
branston-0.4.0 lib/branston/app/views/scenarios/_scenario.html.erb