|
|
@ -5,10 +5,6 @@
|
|
|
|
SearchByName_poll();
|
|
|
|
SearchByName_poll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<div class="edu-class-container edu-position">
|
|
|
|
<div class="edu-class-container edu-position">
|
|
|
|
<p class="mb10 font-14">
|
|
|
|
<p class="mb10 font-14">
|
|
|
@ -24,7 +20,7 @@
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<%= link_to "返回", poll_index_path(:course_id => @course.id), :class => "fr font-12 mr15 mt3 color-grey" %>
|
|
|
|
<%= link_to "返回", poll_index_path(:course_id => @course.id), :class => "fr font-12 mr15 mt3 color-grey" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="edu-tab clearfix mb20">
|
|
|
|
<div class="clearfix mb20">
|
|
|
|
<ul id="edu-tab-nav" class="border-bottom-orange">
|
|
|
|
<ul id="edu-tab-nav" class="border-bottom-orange">
|
|
|
|
<li id="edu-tab-nav-1" class="new-tab-nav background-orange" onclick="HoverLi(1);">
|
|
|
|
<li id="edu-tab-nav-1" class="new-tab-nav background-orange" onclick="HoverLi(1);">
|
|
|
|
<a href="javascript:void(0);" class="tab_type">答题列表</a>
|
|
|
|
<a href="javascript:void(0);" class="tab_type">答题列表</a>
|
|
|
@ -78,7 +74,7 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<div id="edu-tab-con-1">
|
|
|
|
<div id="edu-tab-con-1" class="edu-back-white">
|
|
|
|
<div id="list_count" class="user_bg_shadow bor-grey-e padding15">
|
|
|
|
<div id="list_count" class="user_bg_shadow bor-grey-e padding15">
|
|
|
|
<!--老师显示部分-->
|
|
|
|
<!--老师显示部分-->
|
|
|
|
<% if @is_teacher %>
|
|
|
|
<% if @is_teacher %>
|
|
|
@ -104,9 +100,9 @@
|
|
|
|
<span class="fl mr25">
|
|
|
|
<span class="fl mr25">
|
|
|
|
<a href="javascript:void(0);" id="poll_status_no_limit" class="<%= @status.blank? ? 'check_on' : '' %> pl5 pr5">不限</a>
|
|
|
|
<a href="javascript:void(0);" id="poll_status_no_limit" class="<%= @status.blank? ? 'check_on' : '' %> pl5 pr5">不限</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<input id="work_status_1" class="magic-checkbox fl" type="checkbox" value="0" name="poll_status[]" <%= !@status.blank? && @status.include?('0') ? 'checked' : '' %>>
|
|
|
|
<input id="work_status_1" class="magic-checkbox fl" type="checkbox" value="0" name="poll_status[]" <%= !@status.blank? && @status.include?('0') ? 'checked' : '' %> />
|
|
|
|
<label for="work_status_1" class="fl mr25">未提交(<%= un_commit_num @poll %>)</label>
|
|
|
|
<label for="work_status_1" class="fl mr25">未提交(<%= un_commit_num @poll %>)</label>
|
|
|
|
<input id="work_status_2" class="magic-checkbox fl" type="checkbox" value="1" name="poll_status[]" <%= !@status.blank? && @status.include?('1') ? 'checked' : '' %>>
|
|
|
|
<input id="work_status_2" class="magic-checkbox fl" type="checkbox" value="1" name="poll_status[]" <%= !@status.blank? && @status.include?('1') ? 'checked' : '' %> />
|
|
|
|
<label for="work_status_2" class="fl mr25">按时提交(<%= has_commit_num @poll %>)</label>
|
|
|
|
<label for="work_status_2" class="fl mr25">按时提交(<%= has_commit_num @poll %>)</label>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="clearfix mb5">
|
|
|
|
<li class="clearfix mb5">
|
|
|
@ -121,7 +117,7 @@
|
|
|
|
<% groups = @course.course_groups %>
|
|
|
|
<% groups = @course.course_groups %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% groups.each do |group| %>
|
|
|
|
<% groups.each do |group| %>
|
|
|
|
<input id="group_<%= group.id %>" class="magic-checkbox fl" type="checkbox" value="<%= group.id %>" name="poll_group[]" <%= !@group.blank? && @group.include?(group.id) ? 'checked' : '' %>>
|
|
|
|
<input id="group_<%= group.id %>" class="magic-checkbox fl" type="checkbox" value="<%= group.id %>" name="poll_group[]" <%= !@group.blank? && @group.include?(group.id) ? 'checked' : '' %> />
|
|
|
|
<label for="group_<%= group.id %>" class="fl mr25"><%= group.name %>(<%= group.members.count %>)</label>
|
|
|
|
<label for="group_<%= group.id %>" class="fl mr25"><%= group.name %>(<%= group.members.count %>)</label>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if !@group_teacher %>
|
|
|
|
<% if !@group_teacher %>
|
|
|
@ -134,7 +130,7 @@
|
|
|
|
<li class="clearfix mt5 mb10">
|
|
|
|
<li class="clearfix mt5 mb10">
|
|
|
|
<div class="edu-find fr mr20 with20 pr">
|
|
|
|
<div class="edu-find fr mr20 with20 pr">
|
|
|
|
<div class="edu-find-input">
|
|
|
|
<div class="edu-find-input">
|
|
|
|
<input type="text" class="with100 panel-box-sizing" maxlength="20" placeholder="姓名、学号关键字检索" value="<%= @name %>" id="student_user_name">
|
|
|
|
<input type="text" class="with100 panel-box-sizing" maxlength="20" placeholder="姓名、学号关键字检索" value="<%= @name %>" id="student_user_name" />
|
|
|
|
<!--<i class="fa fa-close mr5 color-grey edu-close" onclick="colse_searchbox();"></i>-->
|
|
|
|
<!--<i class="fa fa-close mr5 color-grey edu-close" onclick="colse_searchbox();"></i>-->
|
|
|
|
<span class="edu-close" onclick="clear_searchbox();" data-tip-down="关闭">×</span>
|
|
|
|
<span class="edu-close" onclick="clear_searchbox();" data-tip-down="关闭">×</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -235,11 +231,11 @@
|
|
|
|
<% poll_answers.each_with_index do |poll_answer, index| %>
|
|
|
|
<% poll_answers.each_with_index do |poll_answer, index| %>
|
|
|
|
<li class="clearfix">
|
|
|
|
<li class="clearfix">
|
|
|
|
<% if poll_answer.answer_text != '' %>
|
|
|
|
<% if poll_answer.answer_text != '' %>
|
|
|
|
<input class="magic-checkbox fl mt5 magic-checkbox_show" id="poll_<%= poll_answer.id %>_poll_answer_id" type="checkbox">
|
|
|
|
<input class="magic-checkbox fl mt5 magic-checkbox_show" id="poll_<%= poll_answer.id %>_poll_answer_id" type="checkbox"/>
|
|
|
|
<label class="fl color-grey3" for="poll_<%= poll_answer.id %>_poll_answer_id"><%= poll_answer.answer_text %></label>
|
|
|
|
<label class="fl color-grey3" for="poll_<%= poll_answer.id %>_poll_answer_id"><%= poll_answer.answer_text %></label>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<span class="fl mr5">
|
|
|
|
<span class="fl mr5">
|
|
|
|
<input class="ml-3 mr5 magic-checkbox" id="sx_<%= poll_answer.id %>" name="<%= poll_question %>" value="" type="checkbox">
|
|
|
|
<input class="ml-3 mr5 magic-checkbox" id="sx_<%= poll_answer.id %>" name="<%= poll_question %>" value="" type="checkbox"/>
|
|
|
|
<label for="sx_<%= poll_answer.id %>">其它</label>
|
|
|
|
<label for="sx_<%= poll_answer.id %>">其它</label>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<input type="text" readonly class="fl other_input with90 mt3"/>
|
|
|
|
<input type="text" readonly class="fl other_input with90 mt3"/>
|
|
|
@ -257,7 +253,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="edu-tab-con-4" class="user_bg_shadow bor-grey-e undis">
|
|
|
|
<div id="edu-tab-con-4" class="user_bg_shadow bor-grey-e undis edu-back-white">
|
|
|
|
<%= render :partial => "poll_setting" %>
|
|
|
|
<%= render :partial => "poll_setting" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|