2015-11-17 17:34:50 +08:00
|
|
|
<ul>
|
|
|
|
<li><span class="relatedListName fb fl">名称</span><span class="relatedListOption fb fl">操作</span></li>
|
|
|
|
<% orgs.each do |org| %>
|
2015-11-18 10:57:17 +08:00
|
|
|
<li>
|
|
|
|
<a href="<%= organization_path(org) %>" class="relatedListName linkBlue fl"><%= org.name %></a>
|
|
|
|
<a href="javascript:void(0);" onclick="cancel_org_course_relation(<%= OrgCourse.where(:organization_id => org.id, :course_id => course_id).first.id %>, '<%= course_id %>');"
|
|
|
|
class = "relatedListOption fl linkGrey3">取消关联</a>
|
|
|
|
<%#= link_to "取消关联", org_course_path(:id => OrgCourse.where(:organization_id => org.id, :course_id => course_id).first.id, :course_id => course_id),
|
2015-11-17 17:34:50 +08:00
|
|
|
:method => 'delete',:remote => true, :class => "relatedListOption fl linkGrey3" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|