vegantech/sims

View on GitHub
app/views/grouped_progress_entries/show.html.erb

Summary

Maintainability
Test Coverage
<h1>Enter Progress Monitor Scores and Comments</h1>

<h2>
Intervention-<%=@grouped_progress_entry %>
</h2>

<h3>
  <%=@probe_definition.title %>
</h3>
<p>
  <%=@probe_definition.description %>
</p>
<%=links_and_attachments(@probe_definition, 'p') %>


<p>Min: <%=@probe_definition.minimum_score %> -  Max: <%=@probe_definition.maximum_score %></p>

<%="Benchmarks:" if  @probe_definition.probe_definition_benchmarks.any? %>
<%= @probe_definition.probe_definition_benchmarks.join('<br />') %>


<% for @student_intervention in @grouped_progress_entry.student_interventions  %>
  <table class="grouped_progress_entry" >
    <thead>
      <tr><th> <%= @student_intervention.student %> </th></tr>
    </thead>
    <tbody>
      <tr><td>
          <%=raw @student_intervention.intervention.intervention_probe_assignment.graph(params[:graph_type]).graph%>
          <% @student_intervention.intervention.comments.each do |comment| %>
            <p><%=h comment %></p>
          <% end %>
      </td></tr>

    </table>
    <hr />
<% end %>


<%= render :partial => 'grouped_progress_entries/aggregate_graph' %>


<%= link_to_if params[:graph_type], "Default Graphs", grouped_progress_entry_path(@grouped_progress_entry)  %>
<%= link_to_unless params[:graph_type] == "bar", "All Bar Graphs", grouped_progress_entry_path(@grouped_progress_entry,:graph_type => 'bar')  %>
<%= link_to_unless params[:graph_type] == "line", "All Line Graphs", grouped_progress_entry_path(@grouped_progress_entry,:graph_type => 'line')  %>
<br />
<%= link_to 'Back', grouped_progress_entries_path %>