From 88dce706f65e6d3d641b403c1c2bbde707332af3 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 29 Aug 2017 09:58:30 +0800 Subject: [PATCH 01/32] =?UTF-8?q?=E6=9C=80=E6=96=B0=E3=80=81=E6=9C=80?= =?UTF-8?q?=E7=83=ADtab=E5=85=AC=E7=94=A8=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shixuns/_shixun_list.html.erb | 2 +- app/views/subjects/_subject_list.html.erb | 2 +- public/stylesheets/css/edu-common.css | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/shixuns/_shixun_list.html.erb b/app/views/shixuns/_shixun_list.html.erb index 1eff29eba..595031ccc 100644 --- a/app/views/shixuns/_shixun_list.html.erb +++ b/app/views/shixuns/_shixun_list.html.erb @@ -1,4 +1,4 @@ -
" id="correct_tip"> 正确 @@ -14,8 +14,16 @@
" id="error_tip"> 错误
+1.单选题
+应在下列程序划线处填入的语句是()
+ +
<% end%>
diff --git a/app/views/challenges/_task_pass_form.html.erb b/app/views/challenges/_task_pass_form.html.erb
index db5b04874..380b9f855 100644
--- a/app/views/challenges/_task_pass_form.html.erb
+++ b/app/views/challenges/_task_pass_form.html.erb
@@ -34,66 +34,68 @@
过关任务不能为空
- <% if @st != 0 %>
- <% if params[:action] == "edit" && @challenge.challenge_questions.count > 0 %>
- <% @challenge.challenge_questions.each_with_index do |question, index| %>
+ <% if false %>
+ <% if @st != 0 %>
+ <% if params[:action] == "edit" && @challenge.challenge_questions.count > 0 %>
+ <% @challenge.challenge_questions.each_with_index do |question, index| %>
+
+
<% end %>
技能标签不能为空
+技能标签不能为空
-技能标签不能为空
+技能标签不能为空
+技能标签不能为空
-" id="correct_tip"> - 正确 -
-" id="error_tip"> - 错误 -
1.单选题
应在下列程序划线处填入的语句是()
<%= question.option_name %>
<%= question.option_name %>
+ 3/5 +
++ 5/5 全部通过 +
+ <% @game_challenge.challenge_chooses.each_with_index do |choose, index| %> +<%= (index + 1).to_s + "." + (choose.category == 1 ? "单选题" : "多选题") %>
-+ + <% if choose.category == 1 %> + + <% else %> + + + <% end %> + + +
+ <% end %> + +<%= (index + 1).to_s + "." + (choose.category == 1 ? "单选题" : "多选题") %>
-<%= (index + 1).to_s + "." + (choose.category == 1 ? "单选题" : "多选题") %>
+<% if choose.category == 1 %> - + name="answer[<%= index + 1 %>]" category="<%= choose.category %>" value="<%= (question.position + 65).chr %>" id="result_<%= index %>_<%= i %>" class="ml-3 mr5 magic-radio ml5"> <% else %> - + name="answer[]" category="<%= choose.category %>" value="<%= (question.position + 65).chr %>" id="result_<%= index %>_<%= i %>" class="ml-3 mr5 magic-checkbox ml5"> <% end %> - +
<% end %> -- 3/5 -
-- 5/5 全部通过 -
- <% @game_challenge.challenge_chooses.each_with_index do |choose, index| %> + <% unless game_challenge.choose_correct_num == nil %> + <% if game_challenge.choose_correct_num != game_challenge.challenge_chooses.count %> ++ <%= game_challenge.choose_correct_num %>/<%= game_challenge.challenge_chooses.count %>错误 +
+ <% else %> ++ <%= game_challenge.challenge_chooses.count %>/<%= game_challenge.challenge_chooses.count %> 全部通过 +
+ <% end %> + <% end %> + <% game_challenge.challenge_chooses.each_with_index do |choose, index| %>