/
_outcomes.html.erb
35 lines (34 loc) · 1 KB
/
_outcomes.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<table>
<tr>
<th> </th>
<th>Description</th>
<th> </th>
<th> </th>
</tr>
<% course.outcomes.each do |outcome| %>
<tr id="outcome-<%=outcome.id %>">
<td><%= outcome.name%></td>
<td><%= outcome.description%></td>
<td>
<% if policy(outcome).create_assessments? %>
<%= link_to "Add new assessment",
new_outcome_assessment_path(outcome) %>
<% end %>
</td>
<td><%= link_to "Details", outcome_path(outcome)%></td>
</tr>
<% end %>
</table>
<% if course.has_custom_outcomes? %>
<div id="unassociated-outcomes">
<h4>The Following Standard Outcomes have not been associated to any custom outcomes:</h4>
<ul>
<% unassociated_outcomes.each do |outcome| %>
<li><%=outcome.name %>: <%=outcome.description %></li>
<% end %>
</ul>
</div>
<% if policy(course).create_outcomes? %>
<%= link_to "New custom outcome", new_course_outcome_path(course), class: "button" %>
<% end %>
<% end %>