52 lines
2.7 KiB
Plaintext
52 lines
2.7 KiB
Plaintext
<h4><%=t("personal_selected_course.assignment_delivery_area")%>-<%=@course.title rescue "" %>-<%=@course_assignment.name rescue "" %></h4>
|
|
<!-- <h4><%=t("personal_course.name")%>:<%=@course_assignment.name rescue "" %></h4> -->
|
|
<fieldset>
|
|
<legend style="color: green;"><%= t("personal_selected_course.already_deliver") %></legend>
|
|
<table class="table main-list">
|
|
<thead>
|
|
<tr>
|
|
<th class="span2"><%= t("personal_course.students") %></th>
|
|
<th class="span2"><%= t("personal_selected_course.assignment_content") %></th>
|
|
<th class="span2"><%= t("personal_selected_course.student_assignment_file") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody_writing_journals" class="sort-holder">
|
|
<% @student_assignments.each do |student_assignment| %>
|
|
<% member_profile = student_assignment.member_profile %>
|
|
<tr>
|
|
<td>
|
|
<%= member_profile.name %>
|
|
<div class="quick-edit">
|
|
<ul class="nav nav-pills hide">
|
|
<li><%= link_to t('personal_selected_course.view'), edit_assignment_admin_selected_courses_path(:uid=>@course_assignment.uid,:name=>@course_assignment.name,:page => params[:page],:id=>student_assignment.id,:type=>"view",:member_profile_name=>member_profile.name, :member_profile_uid=>member_profile.uid) %></li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
<td><%= student_assignment.assignment_content %></td>
|
|
<td><%= student_assignment.display_student_assignment_files %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
<% if @student_assignments.to_a.count < 10 %>
|
|
<fieldset>
|
|
<legend style="color: red;"><%= t("personal_selected_course.not_yet_deliver") %></legend>
|
|
<div style="font-size: 1.3em;">
|
|
<%= MemberProfile.where(:id.in=>@not_yet_deliver_student_ids).map{|m| link_to( m.name,admin_member_path(m))}.join(",").html_safe %>
|
|
</div>
|
|
</fieldset>
|
|
<% end %>
|
|
<div class="bottomnav clearfix">
|
|
<div class="action pull-right">
|
|
<%#= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:new_), new_assignment_admin_courses_path(:id=>params[:id]), :class => 'btn btn-primary' %>
|
|
</div>
|
|
<div class="pagination pagination-centered">
|
|
<%= content_tag :div, paginate(@student_assignments), class: "pagination pagination-centered" %>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$('.modal .close').click(function(){
|
|
$("#"+$(this).attr("data-target")).modal('hide');
|
|
})
|
|
</script> |